Get Fatal Error at Login after theme Instal (2 posts)

  1. anelflores
    Posted 3 years ago #

    I have just installed a theme and when I pressed activate I received this error and keep getting it when I go to mywebsite/wp-admin.

    "Fatal error: Cannot redeclare of_admin_head() (previously declared in /home/anel/public_html/wp-content/themes/OpenDoorZip/admin/admin-interface.php:185) in /home/anel/public_html/wp-content/plugins/placester/blueprint/extensions/options-framework/options-framework.php on line 192"

    I was told it was a plugin I need to remove but how can I remove the plugin if I can't even get to my admin?

  2. daniellehope
    Posted 3 years ago #

    The "Cannot redeclare" error happens when a function has already been declared in one php file, and then another php file comes along and tries to use the same function name. In your case, it's the of_admin_head() function.

    of_admin_head() was originally used in the OpenDoorZip/admin/admin-interface.php file of your OpenDoorZip theme. When the Placester plugin was activated, the error popped up because a function called of_admin_head() was used in the placester/blueprint/extensions/options-framework/options-framework.php file.

    (FYI - These two functions may or may not do the same thing. Identical naming may just be a coincidence, and they may be trying to do something completely different. You'd have to do some digging to determine this.)

    That should explain why you received that error message. However, just to solve your problem of not being able to login - go into your wp-content file under plugins, and remove the placester plugin manually.

Topic Closed

This topic has been closed to new replies.

About this Topic