SyntaxError: Unexpected token < in JSON at position 0 into Checkout page

This topic has 6 replies, 2 voices, and was last updated 6 years ago ago by Rose Tyler

  • Avatar: pjssms
    pjssms
    Participant
    April 18, 2018 at 19:42

    Today i noticed this strange error into my Woocommerce site. When try to checkout, fill all data, and press on Paypal button (I use Paypal as payment gateway), i get this error into top:

    SyntaxError: Unexpected token < in JSON at position 0
    

    or

    Internal Server Error
    

    issue

    What i tryed to resolve:

    Disabled all plugins to identify conflict between -> No luck
    Tryed to check Inspect Element, and see this warning:

    Unable to fix malformed JSON checkout.min.js:1

    Also checked error_log into my server, and there have this error:

    [18-Apr-2018 17:04:17 UTC] PHP Fatal error:  Call to a member function get_order_number() on boolean in /home/moodmint/public_html/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php on line 77
    

    Can you help me to resolve this? i use Latest Woocommerce 3.3.5.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2018 at 09:50

    Hello,

    Please check if this issue persists only with our theme or with default Woocommerce theme (Storefront) too.

    Regards

    Avatar: pjssms
    pjssms
    Participant
    April 19, 2018 at 10:45

    Hi, i checked and problem persist also with Storefront theme.. Can you take a look what is going on pls? Thanks in advance.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2018 at 10:50

    We are theme support and we can help you with issues related strictly to our theme.
    I would recommend you to contact woocommerce support.

    Regards

    Avatar: pjssms
    pjssms
    Participant
    April 19, 2018 at 11:04

    ok will point my question there. thanks

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 19, 2018 at 15:50

    You’re welcome. Feel free to ask if you have any other questions.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.