• Resolved boutzamat

    (@boutzamat)


    Hi.

    I am trying to use AME as a MU plugin, but when ever i include it in my functions where i call all the MU plugins i get this error: Fatal error: Cannot redeclare ws_ame_installation_error() in /data/home/simpleme/subdomains/ddjs/wp-content/mu-plugins/admin-menu-editor-mu.php on line 38

    I already DID move the admin-menu-editor-mu.php to the root of mu-plugins folder (wp-content/mu-plugins).

    Why do i get this error?

    I had it installed as a normal plugin before – can it be that i didnt uninstall it correctly? if yes, what table must i delete it from in the database?

    Thanks for your awesome plugin! 🙂

    https://ww.wp.xz.cn/plugins/admin-menu-editor/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    WordPress will automatically include any .php files in the mu-plugins directory. If you also include them in your plugin/theme/whatever, you might be effectively loading the plugin twice, which is probably what’s causing the error. Or did you mean something else when you said you include it in your functions?

    Thread Starter boutzamat

    (@boutzamat)

    Ah okay, i get it now.. Its because i have other plugins in the MU folder that needs to be included manually, but i guess thats because they dont have the php file in the mu folder, but in their own /mu-plugins/pluginname/file.php.

    After removing the call to your plugin it works 🙂 Thanks and sorry for being stupid (first time using MU plugins)

    Plugin Author Janis Elsts

    (@whiteshadow)

    Sure, no problem 🙂

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

The topic ‘Error installing as MU-plugin?’ is closed to new replies.