wc-donation / wc-donation-platform

Donation Platform for WooCommerce unleashes the power of WooCommerce for your online fundraising, crowdfunding & crowdsponsoring
https://www.wc-donation.com/
GNU General Public License v2.0
41 stars 10 forks source link

Divi integration causes shutdown #36

Closed destrecht closed 1 year ago

destrecht commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Divi allows you to change woocommerce elements. When I use it to change the button color, I get an error.

"Only one donation form per page allowed"

All I did was enable DIVI.

To Reproduce

  1. Go to "enable visual builder"
  2. hover over module
  3. change button
  4. Save
  5. close visual builder.

If I got rid of steps 2 and 3 the result would be the same.

Expected behavior It should allow me to edit the button and behave normally.

Error Log "Only one donation form per page allowed"

Screenshots

image

Device (please complete the following information):

WordPress Environment

image
jonas-hoebenreich commented 1 year ago

Hi destrecht,

thanks for reaching out. Unfortunately I can't debug the problem very well, because I don't have a license for divi. The error message occurs whenever the function wcdp_donation_form is called twice within a page load. You would need to contact the divi support team as to why this is the case. If you want, I can implement a workaround that allows to insert as many donation forms as you want on one page. Would that help?

Best regards Jonas