Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › PDF Vouchers Error On Checkout
- This topic has 3 replies, 2 voices, and was last updated 5 years, 9 months ago by WCFM Forum.
- AuthorPosts
- June 19, 2018 at 11:36 am #25119JohnGuest
Hi,
Setting up a site (WC Market Place, WCFM and WC PDF Product Vouchers)
In testing all is fine until I test purchase a Voucher Product (WooCommerce PDF Product Vouchers). The voucher PDF is generated, email with Voucher attached sent to customer and the sale is recorded as a WC order.
However on the Checkout Page where it is supposed to give a confirmation message:
1 – In FireFox I get the error “SyntaxError: JSON.parse Error: Invalid character at position:1” and the cart is still populated with the selected product.
2 – In Chrome I get the error “SyntaxError: Unexpected token < in JSON at position 0” and the cart is still populated with the selected product.I looked in the WC logs and found this “CRITICAL Call to a member function get_name() on null”
I did a search on get_name() and found 3 instances in the file class-wc-stripe-payment-request.php.
Google console says “Unable to fix malformed JSON checkout.min.js?ver=3.4.2:1”
Further looking around in Google Console using this information (https://mikejolley.com/2015/11/12/debugging-unexpected-token-in-woocommerce-2-4/), reveals:
“<b>Fatal error</b>: Call to a member function get_name() on null in <b>/home/galwayexplored/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-vendor-details.php</b> on line <b>658</b><br />”I have tested using StoreFront theme and disabled the non Woo plugins (keeping WC Market Place, WCFM enabled) – error was the same.
Any ideas on what is wrong / how I can get it to work?
Thanks, J
- June 19, 2018 at 12:14 pm #25122WCFM ForumKeymaster
Hi,
I know about this error and it’s from WC Marketplace.
Fatal error: Call to a member function get_name() on null in /home/galwayexplored/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-vendor-details.php on line 658
Check this, it’s a WC Marketplace plugin.
Kindly reach their support for the solution, and revert your WC Marketplace to the older version for the timing.
Thank You
- June 19, 2018 at 1:19 pm #25123JohnGuest
Hi,
Thank you for your speedy reply.
I found a link on their website to an update of the latest version of WC Marketplace which fixes the problem: https://github.com/dualcube/dc-woocommerce-multi-vendor/archive/master.zip
Cheers, J
- June 19, 2018 at 3:47 pm #25126WCFM ForumKeymaster
That’s great.
Hope that will resolve the issue for you 🙂
Thank You
- AuthorPosts
- The topic ‘PDF Vouchers Error On Checkout’ is closed to new replies.