• Resolved Johan WALTER

    (@johan_walter)


    HI

    Form of donation does not display on product page (It does display on page with shortcode)

    Error message in console is

    jquery.min.js?ver=3.7.1:2 jQuery.Deferred exception: Cannot read properties of undefined (reading ‘checkValidity’) TypeError: Cannot read properties of undefined (reading ‘checkValidity’)
    at HTMLDocument. (xxxxxx.com/wp-content/plugins/wc-donation-platform/assets/js/wcdp.min.js?ver=1.3.1:1:3637)
    at e (xxxxxx.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
    at t (xxxxx.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330) undefined
    jquery.min.js?ver=3.7.1:2 Uncaught
    TypeError: Cannot read properties of undefined (reading ‘checkValidity’)
    at HTMLDocument. (wcdp.min.js?ver=1.3.1:1:3637)
    at e (jquery.min.js?ver=3.7.1:2:27028)
    at t (jquery.min.js?ver=3.7.1:2:27330)

    Any. idea what is causing this ?

    NOTE : I sent to you translation in french by email on 29 May 2024 13:10:30, ,have you received it ?

    Thanks

    Regards

    Johna

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi Johan,

    Thanks for reaching out! ??

    I’ve just fixed the issue (or at least I hope so). Could you please check if the fix works for you? Here’s the link: https://wcdp.jonh.eu/documentation/support/installing-the-latest-development-version-of-donation-platform-for-woocommerce-wordpress-plugin-from-github/

    And yes, I received your translations, thank you so much. I just realized that I haven’t responded yet—sorry about that! ?? I’ve already imported the translations to WordPress and am currently working on getting them approved.

    Best,
    Jonas

    Thread Starter Johan WALTER

    (@johan_walter)

    Hi Jonas

    1- It does solve issue on product page with my main theme but I have 3 error messages

    Warning: Constant WCDP_DIR already defined in /var/www/vhosts/xxxxx.com/httpdocs/wp-content/plugins/wc-donation-platform/wc-donation-platform.php on line 21

    Warning: Constant WCDP_DIR_URL already defined in /var/www/vhosts/xxxx.com/httpdocs/wp-content/plugins/wc-donation-platform/wc-donation-platform.php on line 22

    Warning: Constant WCDP_VERSION already defined in /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/wc-donation-platform/wc-donation-platform.php on line 23

    2- I am testing bootscore, theme with Bootstrap, Donation form does not display neither on page with shortcode nor on product page
    SCREENSHOT
    https://ibb.co/9W67MWs
    https://ibb.co/kKnCgcc

    Is there any incompatibility between your plugin and Boostrap ?

    Thanks

    Regards

    Johan

    Plugin Author Jonas

    (@flinnn)

    1. Can you please check if you have accidentally installed the plugin a second time instead of replacing it?
    2. Can you please try the following steps: https://wcdp.jonh.eu/documentation/troubleshooting/css-js-files-not-added-to-page/ I think your theme might remove the JS file so you have to manually add it.

    Best,
    Jonas

    Thread Starter Johan WALTER

    (@johan_walter)

    1- You are right plugin was installed twice.
    I got plugin from Github and manually downloaded it on website, but new version (1.3.2) didn’t replace old version (1.3.1), it has been downloaded besides old version

    2- I will check this tomorrow

    Thread Starter Johan WALTER

    (@johan_walter)

    2- Can you please clarify what you mean by “…to the page” in “To manually include the necessary CSS and JS files, add the following HTML code to the page:”

    Does this mean those 2 lines of code needs to be added in the php template ?
    But it will be crashed at next update

    Is there any way to add those 2 lines with a function in child theme ?

    Plugin Author Jonas

    (@flinnn)

    Most page builders allow you to add custom HTML by using an HTML block, no template changes needed.

    Best,
    Jonas

    Thread Starter Johan WALTER

    (@johan_walter)

    Ok got It !

    I have just tried first it didn’t work I have an error Failed to load resource: the server responded with a status of 500 ()
    I solved it, I am using plugin version from github. Name of plugin on github is not wc-donation-platform but wc-donation-platform-main
    Adding -main in css and js file make it work

    That also explain issue I had yesterday when loading plugin version from github, it didn’t replace version from repository because name is different

    Plugin Author Jonas

    (@flinnn)

    Hi Johan,

    nice to hear that it is working now.
    I made a change to the dependencies yesterday hoping that this could fix the issue that JS files are accidentally removed by your theme. If you want you can install the latest development version to check if this resolved the issue: https://wcdp.jonh.eu/documentation/support/installing-the-latest-development-version-of-donation-platform-for-woocommerce-wordpress-plugin-from-github/

    Best,
    Jonas

    Thread Starter Johan WALTER

    (@johan_walter)

    Hi Jonas

    Yes it solves issue, no need to add js file on page any more with this version

    Thanks

    Regards

    Johan

    Plugin Author Jonas

    (@flinnn)

    nice, perfect.
    Someone just gave my plugin a 1-star review. If you like Donation Platform for WooCommerce and want to support the further growth and development of the donation plugin, please consider a 5-star rating on www.remarpro.com. Thank you ??

    Best,
    Jonas

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