• Resolved Sean Conklin

    (@seanconklin)


    Hello, I see this error in the browser console on my home page. Why would you even be trying to load this asset on pages other than cart and checkout?

    Also, it’s a JavaScript crash so it needs to be fixed regardless:

    ReferenceError: Can't find variable: SV_WC_Payment_Form_Handler_v5_12_1
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support amberskyverge

    (@amberskyverge)

    Hey Sean,

    Amber here (again), thanks for contacting SkyVerge about our GoDaddy Payments plugin! I’m happy to help! ??

    I understand that you are seeing an error of:
    ReferenceError: Can’t find variable: SV_WC_Payment_Form_Handler_v5_12_1

    Let me reach out to my team in regards to this issue. Would you mind sending me a screenshot of this error to pass along to them?
    Thanks ??

    All the best,

    Thread Starter Sean Conklin

    (@seanconklin)

    Hi Amber,

    This one is a two parter. First is the crash, which occurs on my site’s home page (plus other pages and posts) after connecting to Poynt / GoDaddy Pay.

    Second, the plugin is loading its assets (JS and CSS files) site-wide rather than just where needed (checkout page).

    These two are related as the crash doesn’t occur on the Checkout page itself.

    Here’s a screenshot of the crash in browser console:

    Thanks,

    Plugin Support amberskyverge

    (@amberskyverge)

    Hey Sean,

    Thank you for sending over more details about what’s happening. I tested this on my local site and was not able to replicate the same issue you are having. This being said, I’m thinking there is a conflict with either another plugin or your theme.

    At this stage, I would like to test for any code conflicts that might be causing this issue. You can learn more about conflict testing here.

    This is best done using a staging site to make sure that it doesn’t affect your live site.?If you don’t have a staging site, you can also use?the free Health Check plugin?to simulate this testing on your live site. This will let you run through these steps for your user account only, without impacting what your customers see on the front end.

    Could you please try disabling all your plugins except for WooCommerce and GoDaddy Payments??
    Then run a test to see if you’re still having the issue. If this fixes the issue, you can try re-enabling your plugins one by one to find out which one is causing the issue.

    If the issue still occurs after all the plugins have been disabled, then this may be a theme conflict and you can try temporarily reverting to a default theme such as?Storefrontto see if that solves the problem.

    Would you be able to give that a try and let me know what you find?

    All the best,
    Amber ??

    Thread Starter Sean Conklin

    (@seanconklin)

    Hi Amber,

    I use a blank block theme via the plugin Create Block Theme by the WordPress core team. Themes are obsolete now that we have Block Theming!

    Please have the developers make adjustments to only load asset files (CSS and JS) where necessary (Checkout, maybe Cart and Product pages if offering express buttons there). This will prevent the crash and improve performance at the same time.

    I’ve patched the issue on my site using this code snippet to prevent Poynt’s main script from loading except on Checkout:

    add_action( 'wp_print_scripts', function() {

    if( ! function_exists( 'is_checkout' ) || is_checkout() ) {
    return;
    }

    wp_dequeue_script( 'wc-poynt' );

    } );
    Plugin Support amberskyverge

    (@amberskyverge)

    Hey Sean,

    Thank you for reaching out to us regarding this issue. I have created a bug report to get this fixed and informed my team so they are aware. Is there anything else I can assist you with in regards to our GoDaddy Payments plugin?

    All the best,

    Amber ??

    Thread Starter Sean Conklin

    (@seanconklin)

    Thanks so much! That’s all for now.

    Best regards,

    Plugin Support amberskyverge

    (@amberskyverge)

    Hey Sean,

    Thank you for verifying that for me. I hope you have a wonderful rest of your day.

    I’m going to mark this thread as “closed” for now, but if you run into any other questions or issues, please feel free to reply again to re-open it or create a follow up. We’re happy to help. ??

    All the best,

    Amber

    Plugin Support amberskyverge

    (@amberskyverge)

    Hey Sean,

    It has been a long time since we heard from you, so I’m going to mark this topic as resolved.

    If you’re still experiencing issues please take a look at our FAQs for more information and create a new thread if you have further questions.

    Thanks,
    Amber ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.