• Resolved tonai

    (@tonai)


    Hi, I’ve had a critical error twice now for the same thing. I retored it once and now it’s happened again. Details are below:

    WordPress core file modified: index.php

    The Modified Version on your WordPress system:

    <?php
    ob_start();
    define('WP_USE_THEMES', true);
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    $__content__ = ob_get_contents();
    ob_clean();
    echo preg_replace('#http\:#i', '', $__content__);
    exit(1);

    Is this something I should worry about?

    Thanks a lot!

    https://www.ads-software.com/plugins/wordfence/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter tonai

    (@tonai)

    Sorry… retored was meant to be restored!

    Hello tonai,
    the bad news is that the code should definitely not be there but the good news is that it looks like it failed to do what it was intended to do.

    You should try to figure out what is causing this. Have you tried doing an extended scan or a scan that includes files even those outside of your WordPress installation? You can find these settings on the Wordfence “Options” page.

    Thread Starter tonai

    (@tonai)

    Hey wfasa, thanks for your reply!

    No I haven’t tried that yet. Will report back as soon as I do.

    Do you think we’ve been attacked then if it’s not meant to be there?

    Hello tonai,
    I talked to a few of our developers about this code and everyone agrees it looks fairly harmless. Most likely you have a plugin that is trying (but failing) to make URLs on your site “protocol relative”. It is also possible that your host is doing this for whatever reason. This is not the way you should go about doing something like that though, so whoever did it should stop doing it. ??

    If you want me to have a quick glance at your plugin list to see if any of them could be causing it just list all your plugins here.

    Thread Starter tonai

    (@tonai)

    Hi again wfasa,

    Here’s the list of all activated plugins:

    Abandoned Cart Lite for WooCommerce
    Insert Headers and Footers
    Mobile Content Modal
    UpdraftPlus – Backup/Restore
    Virtue / Pinnacle ToolKit
    Woo Discount Coupon Popup
    Woo Soical Login
    WooCommerce
    WooCommerce AWeber Newsletter Subscription
    WooCommerce Cart Add-Ons
    WooCommerce Cart Reports
    WooCommerce Conversion Tracking
    WooCommerce Coupon Schedule
    WooCommerce Product Add-ons
    WooCommerce Subscribe to Newsletter
    WooCommerce Table Rate Shipping
    Wordfence Security
    WP-Mail-SMTP

    Thanks so much for this! ??

    Hello tonai,
    I wasn’t able to find “Mobile Content Modal” but I looked quickly at these

    Insert Headers and Footers
    UpdraftPlus – Backup/Restore
    Virtue / Pinnacle ToolKit

    Neither of them appear to be the culprit. However, there was a similar report that came in a day after yours. It would seem that something you two have in common is the use of WooCommerce. WooCommerce contains a lot of files and I’m afraid I don’t have time to verify that at the moment. However, I would suggest you post a question over at their support and see if they have any clues. Feel free to link to this thread for reference.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Getting a "Critical Error" and I can't get rid of it.’ is closed to new replies.