ivaylo123
Forum Replies Created
-
I have the same error.
In my case, I’m investigating why webhooks doesn’t fire.
CRITICAL Uncaught Error: Call to a member function get() on null in … /wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-checkout-handler.phpThe line which gives the error is:
$session = WC()->session->get( ‘paypal’ );
in class-wc-gateway-ppec-checkout-handler.php, public function is_started_from_checkout_page()If I bypass this function and return false, my webhooks work!
Very strange, realy. I don’t understand why this error stops webhooks to fire when customer profile is modified … or customer cretaed!!!Stack trace:
#0 … /wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/abstracts/abstract-wc-gateway-ppec.php(63): WC_Gateway_PPEC_Checkout_Handler->is_started_from_checkout_page()
#1 … /wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-with-paypal.php(12): WC_Gateway_PPEC->__construct()
#2 … /wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php(42): WC_Gateway_PPEC_With_PayPal->__construct()
#3 … /wp-includes/class-wp-hook.php(286): WCML_WC_Gateways->loaded_woocommerce_payment_gateways(Array)Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] WooCommerce checkout issueI got same problem
Forum: Plugins
In reply to: WordPress bible exampleHi,
I am also new to WP ??
I change the code and I look what happens. I used a simple text editor, but today I switched to NetBeans ??So, I am not very good adviser …
Ivaylo
Forum: Plugins
In reply to: WordPress bible examplej’ai trouvé que ?a que j’ai écrit avant ne marche pas vraiment.
La solution est:
if(isset($_POST[‘copyright_text’]))
add_action( ‘load-plugins_page_copyright-notices’, ‘save_copyright_notices’ );Ivaylo ??
Forum: Plugins
In reply to: WordPress bible exampleme, again
it works also with:
add_action(‘admin_menu’, ‘save_copyright_notices’);Ivaylo
Forum: Plugins
In reply to: WordPress bible exampleHi Luka,
I tried the same example, and finally run the plugin.
I used
….
if( update_option( ‘copyright_notices_text’, stripslashes( $_POST[‘copyright_text’] ) ) ) { …
There is a typo: copyright_notices_test of the place of “copyright_notices_text”And second, to hook that I used:
add_action( ‘load-plugins_page_copyright-notices’, ‘save_copyright_notices’ );I don’t know what that is ‘load-plugins_page_copyright-notices’.
I am trying to figure out what that is.Ivaylo