WordPress.org

Ready to get started?Download WordPress

Forums

Donation Thermometer
[resolved] Conflict with another Donation Plugin (2 posts)

  1. StandardExcellence
    Member
    Posted 2 years ago #

    I get the following fatal error when trying to activate Donation Thermometer:

    Fatal error: Cannot redeclare my_admin_scripts() (previously declared in {%domain%}/testpress/wp-content/plugins/donate-goal/donation-goal.php:288) in {%domain}/testpress/wp-content/plugins/donation-thermometer/donation_therm.php on line 82

    I masked the domain structure for security reasons, but the idea is there. When I deactivated the other plugin (Donate Goal) the problem was resolved.

    Note: I have been testing various thermometer style progress meters, hence the duplication.

    http://wordpress.org/extend/plugins/donation-thermometer/

  2. henryp
    Member
    Plugin Author

    Posted 2 years ago #

    It looks like there's a conflict with similar function names within the two plugins..if you want to use both plugins and are happy to edit the donation_therm.php file, simply rename the function on line 76 to something more unique e.g. function therm_scripts(){. You would also need to change the call on line 67 respectively too.

    I will make sure this is fixed in the next release!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic