Support » Fixing WordPress » errors in wp-includes plugin.php file

  • Resolved claygirl76

    (@claygirl76)


    I currently have two errors plaguing me:

    Warning: Invalid argument supplied for foreach() in /data/14/2/27/83/2027409/user/2219210/htdocs/bgec/wp-includes/plugin.php on line 656

    Fatal error: Call to undefined function wp_normalize_path() in /data/14/2/27/83/2027409/user/2219210/htdocs/bgec/wp-includes/plugin.php on line 662

    I can’t access admin to disable plugins or change themes. I don’t know code well enough to fix this, and I’m about to lose my mind.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter claygirl76

    (@claygirl76)

    update…I repaired the database and now am left with only one problem, but still a fatal error:
    Fatal error: Cannot use object of type Closure as array in /data/14/2/27/83/2027409/user/2219210/htdocs/bgec/wp-includes/plugin.php on line 680

    Hi there,

    You can FTP into the site and rename your plugins directory to something like plugins-bak and see if that fixes the error. If so, rename that folder back to plugins, go into the folder and rename all plugins.

    After rename each plugin back, one by one and every time you rename each one test your site. The last one you rename to its original name that when testing the site shows the error is the culprit.

    Hope that helps.

    Thread Starter claygirl76

    (@claygirl76)

    Hi Artur,
    Thanks for this advice. I actually tried something similar…I downloaded a zip file of my plugins folder and deleted it. I then tried to reload my site and had a different fatal error.
    Do you think trying what you suggested is still worth trying?

    Thread Starter claygirl76

    (@claygirl76)

    ok, I tried it anyway, and I got that same error. It is now:
    Fatal error: Call to undefined function wp_get_theme() in /data/14/2/27/83/2027409/user/2219210/htdocs/bgec/wp-content/themes/Divi/functions.php on line 235

    (I’m just guessing that line 235 references the plugins folder)

    Ok, so you have the plugin folder renamed right now?

    Thread Starter claygirl76

    (@claygirl76)

    sorry, I got so frustrated, I had to get away from it and get a clear head. I currently have the plugins folder named “notplugins” and I had to also change the name of my theme to force a different theme to be selected. I am now able to get in to admin. I then tried installing a fresh copy of the theme. When I previewed it, it once again displayed errors. Also, when I tried changing the plugins folder back to its appropriate name, I once again got errors. I changed all of the nested files, thinking that turning off each plugin would solve that, but errors remained, even with no active plugins.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you talked to your theme’s vendors about this issue?

    Thread Starter claygirl76

    (@claygirl76)

    That’s the next step. I do at least have SOMETHING up now, using one of the standard themes and no plugins, but there’s a problem that goes beyond the theme itself…something related to plugins, because that folder, even when no actual plugins are in it, will crash the site.

    @claygirl76 I forgot to ask, what version of WordPress are you on?

    Thread Starter claygirl76

    (@claygirl76)

    4.4.1, and I updated my php to 5.6 as well.

    Thread Starter claygirl76

    (@claygirl76)

    Hallelujah, I think I got it. Thanks for the renaming suggestion. It took renaming plugins and also my theme, then working through putting everything back. Ultimately, the problem plugin seemed to be CM-answers-pro, which is now gone with the wind, and everything else seems stable.

    Awesome, yeah plugins or themes have a lot to do. I actually seen it happen when someone was using an older version of WordPress. In this case, I’m thinking the plugin is out of date (CM-answers-pro) and since WordPress got updated, it started to cause issue.

    Glad to see everything worked out. 🙂 you can mark this one as resolved.

    Have a good day!

    Just want to say that this helped me as well. I was able to discover that when I cancelled Gravity forms their plugins crashed our sites.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘errors in wp-includes plugin.php file’ is closed to new replies.