• Resolved ewmedia

    (@ewmedia)


    Fatal error: Cannot redeclare class Ctct\SplClassLoader in /var/www/…/wp-content/plugins/constant-contact-forms/vendor/constantcontact/constantcontact/constantcontact/src/Ctct/SplClassLoader.php on line 23

    Tried to activate Constant Contact plugin on a WordPress 4.7.4, Genesis, Outreach-Pro theme website and when I hit ‘activate’ I got the above error message. I was not able to view the site from the front-end and could not get into my administrative area either. The only solution was to go to the back-end, via FTP, and delete the plugin from the system. I was then able to access the front and back ends. Please advise – thank you!

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I had nothing new to report other than what I had already said above.

    However, your reply about caps vs first letter gave me the idea of checking if the capitalization doesn’t matter, and it does appear to be the case.

    class CTCT {}
    

    is going to clash with

    class Ctct {}
    

    This here is a case of unintended collisions. Both ourselves and the developers of Hustle tried to do the same thing to avoid collisions, but we did it in the exact same way, causing a collision with each other.

    If you would like, I can offer a hotfixed version. I think I’m going to re-rename the class and usage and make it a lot more unique and much less likely to clash. You’d get the version right now, everyone else would get the change in the next major release.

    Thread Starter ewmedia

    (@ewmedia)

    Yes, please do provide the hotfixed version, then let me know where I can download it from – thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Here you go: https://www.dropbox.com/s/wdutplz9vylmia6/constant-contact-forms-hotfix.zip?dl=0

    It’ll still say version 1.2.5, but it should be fixed properly.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any chance to test and confirm this @ewmedia ?

    Thread Starter ewmedia

    (@ewmedia)

    Well, I activated it and it did not crash the site. This is progress!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Woo! Now to finally start accomplishing the rest of what you were aiming for.

    Plugin Author Constant Contact

    (@constantcontact)

    Going to mark as closed. If something new comes up, please start a fresh thread for that and we’ll get things looked at there. Thanks.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘fatal error when activating plugin’ is closed to new replies.