• Resolved giulia65

    (@giulia65)


    Hi,

    I’m having the following error after updating to WooCommerce PayPal Payments 2.7.0:

    Error details ==================== 
    
    An E_ERROR error was caused in line 76 of the file /home/#######/#######/wp-content/plugins/woocommerce-paypal-payments/modules.php. 
    
    Error message: Uncaught Error: Class "WooCommerce\PayPalCommerce\PayLaterWCBlocks\PayLaterWCBlocksModule" not found in /home/#######/#######/wp-content/plugins/woocommerce-paypal-payments/modules.php:76 
    
    Stack traces: 
    #0 /home/#######/#######/wp-content/plugins/woocommerce-paypal-payments/bootstrap.php(27): {closure}() 
    #1 /home/#######/#######/wp-content/plugins/woocommerce-paypal-payments/woocommerce-paypal-payments.php(76): {closure}() 
    #2 /home/#######/#######/wp-content/plugins/woocommerce-paypal-payments/woocommerce-paypal-payments.php(91): WooCommerce\PayPalCommerce\init() 
    #3 /home/#######/#######/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\{closure}() 
    #4 /home/#######/#######/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 
    #5 /home/#######/#######/wp-includes/plugin.php(517): WP_Hook->do_action() 
    #6 /home/#######/#######/wp-settings.php(550): do_action() 
    #7 /home/#######/#######/wp-config.php(96): require_once('/home/#######/...') 
    #8 /home/#######/#######/wp-load.php(50): require_once('/home/#######/...') 
    #9 /home/#######/#######/wp-admin/admin.php(34): require_once('/home/#######/...') 
    #10 /home/#######/#######/wp-admin/post.php(12): require_once('/home/#######/...') 
    #11 {main} 
    thrown

    How can I solve this issue?

    Thanks,

    Giuliana

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    I do have the same problem and here is my error:

    An error of type E_COMPILE_ERROR was caused in line 58 of the file /home1/------/public_html/wp-content/plugins/woocommerce-paypal-payments1/modules/woocommerce-logging/src/Logger/WooCommerceLogger.php. Error message: Declaration of WooCommerce\WooCommerce\Logging\Logger\WooCommerceLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\LoggerTrait::log($level, Stringable|string $message, array $context = []): void

    I didn’t do anything in the website at all, just found it got bad today. I assume it is after WooCommerce update to 8.8.3 or the plugin update to 2.7.

    please solve the issue!

    here is my system report: https://pastebin.com/KCnQpJ3Q

    I don’t want to lose any settings to my website or plugins, please fix this issue since woocommerce seem to think it is on your side not theirs.

    My error:

    Fatal error: Uncaught TypeError: WooCommerce\PayPalCommerce\PayLaterConfigurator\Factory\ConfigFactory::get_or_default(): Return value must be of type string, null returned in /home/customer/www/pattyjansen.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php:140 Stack trace: #0 /home/customer/www/pattyjansen.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php(117): WooCommerce\PayPalCommerce\PayLaterConfigurator\Factory\ConfigFactory->get_or_default(Object(WooCommerce\PayPalCommerce\WcGateway\Settings\Settings), 'pay_later_cart_...', 'text') #1 /home/customer/www/pattyjansen.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php(52): WooCommerce\PayPalCommerce\PayLaterConfigurator\Factory\ConfigFactory->for_default_location(Object(WooCommerce\PayPalCommerce\WcGateway\Settings\Settings), 'cart', Array) #2 /home/customer/www/pattyjansen.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php(25): WooCommerce\PayPalCommerce\PayLaterConfigurator\Factory\ConfigFactory->for_location(Object(WooCommerce\PayPalCommerce\WcGateway\Settings\Settings), 'cart') #3 /home/customer/www/pattyjansen.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-paylater-wc-blocks/src/PayLaterWCBlocksModule.php(124): WooCommerce\PayPalCommerce\PayLaterConfigurator\Factory\ConfigFactory->from_settings(Object(WooCommerce\PayPalCommerce\WcGateway\Settings\Settings)) #4 /home/customer/www/pattyjansen.com/public_html/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\PayLaterWCBlocks\PayLaterWCBlocksModule->WooCommerce\PayPalCommerce\PayLaterWCBlocks\{closure}('') #5 /home/customer/www/pattyjansen.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home/customer/www/pattyjansen.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/customer/www/pattyjansen.com/public_html/wp-settings.php(695): do_action('init') #8 /home/customer/www/pattyjansen.com/public_html/wp-config.php(101): require_once('/home/customer/...') #9 /home/customer/www/pattyjansen.com/public_html/wp-load.php(50): require_once('/home/customer/...') #10 /home/customer/www/pattyjansen.com/public_html/wp-admin/admin.php(34): require_once('/home/customer/...') #11 /home/customer/www/pattyjansen.com/public_html/wp-admin/index.php(10): require_once('/home/customer/...') #12 {main} thrown in /home/customer/www/pattyjansen.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-paylater-configurator/src/Factory/ConfigFactory.php on line 140
    

    I cannot even get into the dashboard anymore. I’ve deleted the plugin from the subsite’s database (I’m having this problem on two subsites in multisite), but no banana. Two sites are entirely borked.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @giulia65

    thank you for reaching out to us, we are here to help.

    For your issue, we expect that this is likely only an error you see in your logs. No acute problem on the site. This error was probably triggered because site was navigated while plugin was updating; it should not affect the site, please check and verify if this is the case.

    Hello @pattyjansen and @hossammoghrabi, your errors are most likely not related and have nothing to do with each other. here is a short response to the:

    • second error: Plugin conflict – this error is a compatibility issue with another plugin implementing a more recent?psr/log?version. It should not be a widespread problem.
      This compatibility issue may also arise with some more advanced development setups like Bedrock, but it’s not something we can address at this time.
      Here is the open GitHub issue:?#1518
      In most cases, the conflicting plugin causing this error can be found by forming a?conflict test. In some cases, other plugin developers may be able to downgrade their?psr/log?implementation for improved compatibility.
      We are in ongoing discussions about increasing e.g. the minimum supported PHP and WC versions which is a requirement for us able to address these compatibility problems properly. But I expect it will take few more months before we can provide a long-term solution for this.
    • third error: The TypeError is most likely caused by a plugin conflict. You may want to perform a full conflict test to rule out eventual issues with the theme or a different plugin. We recommend temporarily activating the default theme Storefront and disabling all other plugins except for?WooCommerce and?PayPal Payments to see if the behavior persists. Here’s a guide that explains the steps in more detail: How to test for conflicts

    In summary, all three of these are separate issues and deserve a separate thread. @pattyjansen and @hossammoghrabi, if my response above does not help, please raise your own thread for this, since this thread was initially opened for the issue @giulia65 raised.

    Kind regards,
    Joost

    Thanks for responding. I wasted an entire weekend on this, could not solve it, even by disabling the plugin manually on the subsite (I run multisite). I do not use Storefront. I did disable my theme. I went into the database… no banana.

    But in case someone else here has an issue, some guardian angel wrote a plugin called Reverse Paypal Standard which solved *all* my problems in about 30 seconds flat.

    i solved it by upgrading to beta version of woocommerce, 8.9.0-beta.1

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Since we have not heard back from you for over a month, we will mark this thread as resolved. Do not hesitate to open a new thread if you still need our support on this or any other issue.

    Kind regards,
    Joost

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.