• Resolved taela87

    (@taela87)


    I hope someone can help because I’ve no idea how to fix this nightmare short of deleting months of work.

    I’m working on a dev site on my server, and a file keeps appearing at the root called: error_log.ico. The file spams my server so much that it fills up ALL my diskspace. Then it stops, no doubt culled by my host.

    If I delete the file, it instantly reappears and starts clocking up drive space again like a frikkin virus!

    I managed to get it open and look inside. These are the errors it’s looping over and over again:

    PHP Warning:  current() expects parameter 1 to be array, boolean given in /wp-includes/plugin.php on line 523
    
    PHP Warning:  next() expects parameter 1 to be array, boolean given in /wp-includes/plugin.php on line 527

    I’ve tried disabling all the plugins, and that didn’t do anything. It still logs errors at a crazy speed.

    I tried changing:

    while ( next($wp_filter[$tag]) !== false );

    to:

    while ( is_array($wp_filter[$tag]) && next($wp_filter[$tag]) !== false );

    in the plugin.php file, but that didn’t stop it either.

    I even renamed the plugins file to plugins-old to wipe them all out. I also downloaded the plugins folder and completely deleted it off my server, and the error_log still persisted like some kind of website nightmare.

    Any ideas how to stop that error log? It’s killing my server right now.

    I’m using Sensible Pro 2.0 theme, and I’m using a lot of plugins, here’s a list:

    AddFunc Head & Footer Code
    Advanced Custom Fields
    Akismet
    BackWPup
    Black Studio TinyMCE Widget
    BuddyPress
    Category Featured Images
    Category Posts in Custom Menu
    CloudFlare
    Compress JPEG & PNG images
    Contact Form 7
    Dequeue Font Awesome
    Enhanced Media Library
    Enhanced Text Widget
    HTML in Category Descriptions
    I Recommend This
    MailChimp for WordPress
    Maintenance Mode
    oik Weight/Country Shipping
    P3 (Plugin Performance Profiler)
    Paid Memberships Pro
    Paid Memberships Pro – WooCommerce Add On
    Regenerate Thumbnails
    RokBox
    Scroll Top
    Shortcodes Ultimate
    Simple Custom CSS
    Smart Slider 3
    TinyMCE Advanced
    Widget Logic
    WooCommerce
    WooCommerce Colors
    WooCommerce Coming Soon
    WooCommerce Customizer
    WooCommerce Digital Download Free Shipping
    WooCommerce Product Archive Customiser
    WooSidebars
    Wordfence Security
    WordPress Importer
    WP Favorite Posts
    WP Post Navigation
    WP-CopyProtect [Protect your blog posts]
    WP-Optimize
    YITH WooCommerce Wishlist
    Yoast SEO
    ZenCache

    Since deactivating the plugins has no effect, all I can figure is that it’s outside the plugins folder.

    Also, I use a child theme. There are no plugins.php file or any plugin files in my child theme, so I don’t think it’s coming from there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would try updating wordpress again.

    In dashboard -> updates, there is an option to “re-download” and install WordPress. Hopefully, it can reinstall that file with the most current.

    To be absolutely sure, I’d download wordpress locally, find the file (plugins.php) and manually upload and overwrite the file.

    Then, I’d install gotmls plugin and run a scan to see if you have been hacked.

    Then perhaps turn on debug mode (https://premium.wpmudev.org/blog/debugging-wordpress-how-to-use-wp_debug/) and see if you’ve generate more info on the issue.

    Thread Starter taela87

    (@taela87)

    Thanks Shannon. I made a backup of the plugin.php file, and then messed around with it, which didn’t help. But when I pasted in the backup and hit save to restore it, it seemed to fix the issue. It appears to be working so far (error log is as 1.92KB rather than 6840MB)

    I guess I just needed to refresh the file.

    I’m going to get the gotmls plugin just to be certain though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Loop error_log file won't stop growing.’ is closed to new replies.