PHP fatal error when calling session variable wcpbc_customer
-
Hi! I’m having trouble with the plugin.
While debugging why my wp-cron jobs aren’t firing I discovered this in my server log files when trying to manually trigger wp-cron.php:
PHP Fatal error: Call to a member function get() on a non-object in …/wp-content/plugins/woocommerce-product-price-based-on-countries/includes/class-wcpbc-customer.php on line 33
This is line 33:
$this->_data = WC()->session->get( 'wcpbc_customer' );
When I turn off your plugin, all my cron jobs start working again. So it seems this error on line 33 breaks the execution of cron jobs for the entire site, which is, as you might gather, quite serious.
Could you clarify what might be going on?
Thanks!
- The topic ‘PHP fatal error when calling session variable wcpbc_customer’ is closed to new replies.