Conflict with another plugin | WordPress.org

[ad_1]

Hi @dejonda

Do you receive that message on the checkout page when processing an order?

What was your process for determining that conflict was caused by the PayPal plugin?

That error message occurs when some plugin generated unexpected output when the browser is expecting a JSON response. It can happen if a plugin triggers a notice or log entry that is echoed to the client.

Do you have a staging site where this can be re-created?

Kind Regards,

Hey @mrclayton,

thank you for your prompt response.

It appears that the issue is occurring only on the checkout page when processing an order after clicking on the PayPal button. The log indicates a PHP Notice and a PHP Fatal Error related to trying to access array offset on a null value and calling a member function on null. The error seems to originate from the ItemsFactory.php file on line 90 and 93.

[20-Feb-2023 18:44:59 UTC] PHP Notice:  Trying to access array offset on value of type null in /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ItemsFactory.php on line 90
[20-Feb-2023 18:44:59 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_id() on null in /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ItemsFactory.php:93
Stack trace:
#0 /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ItemsFactory.php(45): PaymentPlugins\WooCommerce\PPCP\Factories\ItemsFactory->get_cart_item(2.9988, 'Darf es eine Ka...', 1, NULL)
#1 /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/PurchaseUnitFactory.php(28): PaymentPlugins\WooCommerce\PPCP\Factories\ItemsFactory->from_cart()
#2 /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/OrderFactory.php(22): PaymentPlugins\WooCommerce\PPCP\Factories\PurchaseUnitFactory->from_cart()
#3 /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Rest/Routes/AbstractCart.php(40): PaymentPlugins\WooCommerce\PPCP\Factories\OrderFactory->from_cart('capture')
#4 /usr/www/users/agnesek/shop/wp-content/plugins/p in /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ItemsFactory.php on line 93
[20-Feb-2023 18:46:24 UTC] No treemates orders found
[20-Feb-2023 18:46:44 UTC] PHP Notice:  Trying to access array offset on value of type null in /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ItemsFactory.php on line 90
[20-Feb-2023 18:46:44 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_id() on null in /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ItemsFactory.php:93
Stack trace:
#0 /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ItemsFactory.php(45): PaymentPlugins\WooCommerce\PPCP\Factories\ItemsFactory->get_cart_item(2.9988, 'Darf es eine Ka...', 1, NULL)
#1 /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/PurchaseUnitFactory.php(28): PaymentPlugins\WooCommerce\PPCP\Factories\ItemsFactory->from_cart()
#2 /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/OrderFactory.php(22): PaymentPlugins\WooCommerce\PPCP\Factories\PurchaseUnitFactory->from_cart()
#3 /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Rest/Routes/AbstractCart.php(40): PaymentPlugins\WooCommerce\PPCP\Factories\OrderFactory->from_cart('capture')
#4 /usr/www/users/agnesek/shop/wp-content/plugins/p in /usr/www/users/agnesek/shop/wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ItemsFactory.php on line 93
[20-Feb-2023 18:47:00 UTC] No treemates orders found

I have also provided a staging site for further investigation: http://staging.agnes-blumenladen.de.www550.your-server.de

Thank you very much for your help!

  • This reply was modified 4 hours, 16 minutes ago by dejonda.

Hi @dejonda

Thank you for that info. Can you use our contact us page so we can follow up with testing?

Kind Regards

Version 1.0.23 released. The issue was related to a bug introduced in version 1.0.22

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer