• Resolved Tim

    (@timwakeling-1)


    There seems to be a fatal error caused by your plugin attempting to declare a function with the same name as one in the Analytify Dashboard plugin; when their plugin attempts to start after your update yesterday, it gets:

    PHP Fatal error: Cannot redeclare function wpa_enqueue_js() (previously declared in /wp-content/plugins/wp-accessibility/wp-accessibility.php:341) in /wp-content/plugins/wp-analytify/inc/wpa-core-functions.php on line 97

    Please could you change your function name to be unique? I have also reported this same issue to the other plugin developer, so if at least one of you does so, we should be OK!

    Thanks

    Tim

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Thanks for reporting! I saw that Analytify had already indicated they were going to change their prefix, so it wasn’t something I’ve prioritized myself.

    It’s always difficult when two plugins have very similar naming conventions!

    Thread Starter Tim

    (@timwakeling-1)

    Thanks Joe. As a developer myself I quite understand.

    Personally, I’ve found the best way for me to avoid this is to contain all my functions within a PHP class. That way I can call them what I like and the names don’t clash outside the class. But I realise that’s quite a big job to convert over. 🙂

    Thread Starter Tim

    (@timwakeling-1)

    The Analytify developers have now changed their function so all is well. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error with Analytify Dashboard plugin’ is closed to new replies.