Uncaught Error: Call to a member function get_name() on bool
-
Hi, I installed woocommerce paypal plugin, and when i try to make a payment gives me an error as follow: “Something went wrong. Please try again or choose another payment source.” I enabled the debug log mode and this is what appears on the log:
CRITICAL Uncaught Error: Call to a member function get_name() on bool in /home/eve/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/class-itemfactory.php:129
Stack trace:
#0 /home/eve/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/class-itemfactory.php(89): WooCommerce\PayPalCommerce\ApiClient\Factory\ItemFactory->from_wc_order_line_item(Object(WC_Order_Item_Product), Object(Automattic\WooCommerce\Admin\Overrides\Order))
#1 [internal function]: WooCommerce\PayPalCommerce\ApiClient\Factory\ItemFactory->WooCommerce\PayPalCommerce\ApiClient\Factory\{closure}(Object(WC_Order_Item_Product))
#2 /home/eve/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/class-itemfactory.php(91): array_map(Object(Closure), Array)
#3 /home/eve/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/class-amountfactory.php(104): WooCommerce\PayPalCommerce\ApiClient\Fa in /home/eve/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/class-itemfactory.php on line 129
- The topic ‘Uncaught Error: Call to a member function get_name() on bool’ is closed to new replies.