• Resolved yannkyps

    (@yannkyps)


    Hi everyone,

    For a while now, I am facing issue with my woocommerce checkout page. Orders cannot be processed and this message appears:

    SyntaxError: Unexpected token ‘<‘, “

    I tried to deactivate all the plugins, leaving only woocommerce, no changes.

    I switched to a default theme like Twenty Twenty-Three, still no changes.

    I cannot locate the error, nor fix it. Please help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @yannkyps,

    For a while now, I am facing issue with my woocommerce checkout page. Orders cannot be processed and this message appears: SyntaxError: Unexpected token ‘<‘, “

    I tried to deactivate all the plugins, leaving only woocommerce, no changes. I switched to a default theme like Twenty Twenty-Three, still no changes. I cannot locate the error, nor fix it.

    From what I understand, you’re running into a SyntaxError on your WooCommerce checkout page that’s stopping orders from going through. Even after deactivating all plugins and switching to a default theme, the problem persists. I’m here to help you out!

    This kind of error typically stems from a conflict between plugins or a theme. But since you’ve already tried deactivating all plugins and changing to a default theme without any luck, we might be dealing with a more complex issue.

    Here are a few steps you could try:

    1. Clear your browser cache: It’s possible that outdated cache data is causing the problem. Clear your browser cache and see if the error still shows up.
    2. Update your plugins and themes: Make sure all your plugins and themes are up-to-date. An outdated plugin or theme could be clashing with WooCommerce.
    3. Check for JavaScript Errors: JavaScript errors can mess with functionality. Use your browser’s console to identify these errors. ?? Here’s a useful guide on Using Your Browser to Diagnose JavaScript Errors.
    4. Turn on Debugging: If the issue continues, activate debugging in WordPress. This can help pinpoint the problem. Add these lines to your wp-config.php file:
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    This will create a debug.log file in your wp-content directory, logging any PHP errors or notices. For a more detailed guide on enabling debugging in WordPress, you can visit this link: ?? Debugging in WordPress

    If the issue continues after trying these steps, please share more details, like the exact error messages you see when debug mode is on. This will help us identify and solve the problem more effectively.

    Also, we’d find it helpful if you could share your site’s System Status report. This will give us a better understanding of your site’s setup and help us pinpoint the?problem. You can find it via WooCommerce > Status. Select Get system report and then Copy for support.

    Lastly, could you share the fatal error logs (if any) under WooCommerce > Status > Logs.

    Once you’ve gathered this information, please paste it inside a Code block in your reply, or use https://pastebin.com to paste it and share the link with us.

    Thanks for your patience and cooperation in this matter! We’re here to help you get this sorted.

Viewing 1 replies (of 1 total)
  • The topic ‘SyntaxError on WooCommerce checkout page’ is closed to new replies.