• Resolved syckness87

    (@syckness87)


    Hey there,

    I’ve been having a huge problem since yesterday.

    I’ve got a WordPress blog for 2 years now, last week I updated to WordPress 3.6 and everything went well.
    Yesterday I changed my theme (bought on Themeforest) after 2 years with the old one. Of course I deactivated all plugins to avoid any bugs. I also created a child theme to add some style.css, no problem.
    All day long I checked if everything was ok and my blog actually looked great ! I reactivate all my plugins one by one, except my cache plugins (WP Supercache et DB Cache Reloaded Fix)

    While surfing on my website I suddenly had a 500 Error. I knew it was a .htaccess issue (I’ve never had any issue until then), so I deleted it, just to see what would happen. I then got this message :

    Your server is running PHP version 4.4.9 but WordPress 3.3.1 requires at least 5.2.4.

    First time of my life I got this kind of message, so I just upload a new .htaccess with this :

    SetEnv PHP_VER 5_4

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    The website is back… Hooray ! However, after a few minutes surfing I got the same message once again, about the php version… I connect to my FTP to check if .htaccess is still here, but surprise : the first line SetEnv PHP_VER 5_4 got deleted…
    So I put this line once again and the website gets back. But a few other minutes, and the problem occurs again, and again…

    I eventually went to bed, feeling nervous about it and not knowing if the website was still online… This morning everything seemed fine so there was no problem during the night.

    However, I edited a post this morning and the bug occured once again : always the same line removed…

    So I chose to reactivate my cache plugins (WP Supercache et DB Cache Reloaded Fix) to see what happens, and upload a .htaccess backup from last week (the one I’ve been using for 2 years…)

    This .htaccess is filled with Compression data (# MOD_DEFLATE COMPRESSION), Expire headers (# BEGIN Expire headers), cache (# BEGIN WPSuperCache), files protect… I can post its content here but it’s quite huge.

    Everything goes back to normal, but a few minutes later same issue : .htaccess reset and website is offline. Still this message getting back :

    Your server is running PHP version 4.4.9 but WordPress 3.3.1 requires at least 5.2.4.

    Do you know any idea of what’s going on ?

    More info :
    .htaccess Attributes : 604
    Theme : Worldwide (child theme)
    WordPress : 3.6
    Plugins : Akismet, Anti-spam, BulletProof Security, DB Cache Reloaded Fix, Do Follow, Google Analytics for WordPress, Post Ratings, Recipe Card, SEO SearchTerms Tagging 2, Tweet, Like, Google +1 and Share, UberMenu, WordPress Database Backup, WordPress SEO, WP Sitemap Page, WP Super Cache

    Any help will be MUCH appreciated ! Thank you very much

    https://www.ads-software.com/plugins/bulletproof-security/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AITpro

    (@aitpro)

    Most likely one of the plugins you have installed is using the WordPress flush_rewrite_rules function, which ovewrites/wipes out your root .htaccess code either when you activate that plugin, save any settings in that plugin or maybe that plugin just randomly overwrites/wipes out your root .htaccess code.

    BPS includes a way to prevent this problem from occurring over and over. You can lock your root .htaccess file to prevent the root .htaccess file from being overwritten/wiped out by other plugins.

    1. Add your php/php.ini handler htaccess code: SetEnv PHP_VER 5_4 to this BPS Custom Code text box: CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE: Add php.ini handler and/or plugin cache code here

    2. Click the Save Root Custom Code button.

    3. Go to the Security Modes page, click the Create secure.htaccess File button and activate Root folder BulletProof Mode again.

    4. Go to the Edit/Upload/Download tab page and click the Lock htaccess File button and the Turn On AutoLock button.

    Your root .htaccess will now be locked to prevent this problem from reoccurring repeatedly.

    Plugin Author AITpro

    (@aitpro)

    It is also recommended that you add your caching code to this BPS Custom Code text box as well.

    Add your php/php.ini handler code above your caching code:
    php/php.ini handler code first
    plugin and/or custom caching code second

    Plugin Author AITpro

    (@aitpro)

    Is this issue/problem resolved? If so, please resolve this Thread. If not, please post a status update. Thank you.

    Thread Starter syckness87

    (@syckness87)

    Hey thanks for your help ! It seems Wp-supercache is causing the bugs ??

    Plugin Author AITpro

    (@aitpro)

    So by adding your php/php.ini handler and the WP SuperCache .htaccess code to BPS Custom Code and locking your root .htaccess file explained above solve the issue?

    Plugin Author AITpro

    (@aitpro)

    Either not a BPS issue/problem or issue/problem has already been resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘.htaccess auto reset…’ is closed to new replies.