• Uncaught ReferenceError: wccpf_opt is not defined – After updating the plugin it created a javascript issue and prevented our checkout from working – I deactivated the plugin and the error message went and the checkout process worked again – please can you take a look at this please?

    Kind regards
    Dan

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m having the same issue. See screenshot below.

    https://cl.ly/jcpW

    Me too… any solution? Thanks.

    I just rolled back a couple minor versions and it got rid of the error. It’s not ideal but better than it blocking ALL checkouts…

    This is a simple fix…

    /wp-content/plugins/wc-fields-factory/classes/wcff-product-form.php : line 1020

    wp_register_script( 'wccpf-front-end', wcff()->info['dir'] . 'assets/js/wccpf-front-end.js' );

    This seems to call an old version of the js. Add a separate query string as a TEMP fix. Would like to see the real solution from plugin author in next update at least..

    Temp fixed line becomes…

    wp_register_script( 'wccpf-front-end', wcff()->info['dir'] . 'assets/js/wccpf-front-end.js?fixme' );

    Save, and you’re done. On your way!

    To clarify: It’s a temp fix because if the issue is not adddressed by the plugin author in the next update, it will break again. If that does happen, simply apply the same (or similar) fix and you should be good again.

    • This reply was modified 7 years, 8 months ago by Joshua4550.
    • This reply was modified 7 years, 8 months ago by Joshua4550. Reason: code blocks and clarification

    Thanks so much worked for me too. I wonder if it’s simply that the script is cached on the local pc and not being updated?

    • This reply was modified 7 years, 6 months ago by jane-taubman.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught ReferenceError: wccpf_opt is not defined’ is closed to new replies.