WP Rocket – WooCommerce Store links 404 errors

Home Forums BulletProof Security Pro WP Rocket – WooCommerce Store links 404 errors

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #39347
    AITpro Admin
    Keymaster

    If the wp-config.php file is locked then WP Rocket is unable to add/change the wp-config.php WP_CACHE constant value. This results in WooCommerce store links displaying 404 errors. It appears that things have significantly changed in the most recent version of WP Rocket – pending retest with BPS Pro Setup Wizard AutoSetup and AutoFix. It appears that new or different WP Rocket wp-config.php code is now being used. It also appears that AutoSetup can no longer get and add the WP Rocket htaccess code. BPS Pro 14.9 will either include adaptations to newer versions of WP Rocket or WP Rocket will be removed from the list of caching plugins that BPS Pro Setup Wizard AutoSetup automatically sets up. Pending further testing.

    Troubleshooting Info:

    Attempted to deactivate WP Rocket and saw this error message below:
    WP Rocket has not been deactivated due to missing writing permissions.
    Make .htaccess writeable and retry deactivation, or force deactivation now:

    WP Rocket has not been deactivated due to missing writing permissions.
    Make wp-config.php writeable and retry deactivation, or force deactivation now:

    Force deactivation
    Clicked the Force deactivation link.

    Checked the store links – they are working normally.
    Note: WP Rocket htaccess caching code was not in the Root htaccess file.

    This error check is incorrect. Not sure why that is. Pending WP Rocket plugin retest on my test server.
    WP Rocket is deactivated and WP Rocket htaccess code was found in your Root htaccess file
    If you have deactivated WP Rocket temporarily then disregard this message or you can run the Pre-Installation Wizard and Setup Wizard now to make this message go away now.
    If you are planning on permanently uninstalling WP Rocket then run the BPS Pre-Installation Wizard and Setup Wizard after you have uninstalled/deleted the WP Rocket plugin.

    Ran the BPS Pro Pre-Installation Wizard.
    Check the store links – 404 errors are now occurring.
    Nothing has changed in the Root htaccess file, but the WP Rocket error check is now gone?

    When I deactivate Root folder BulletProof Mode the store links still show 404 errors.
    Nothing in the root htaccess file is causing the 404 errors. At least as far as BPS htaccess code goes.

    Activated the WP Rocket plugin and your store links are working correctly.
    Note: BPS root folder BulletProof Mode is still deactivated and WP Rocket htaccess code does not exist in the Root htaccess file.

    Cause of the problem:
    WP Rocket adds or removes code in your wp-config.php file depending on if WP Rocket is activated or deactivated.
    The wp-config.php file was locked by BPS Pro F-Lock.
    Unlocked the wp-config.php file and tested activating and deactivating WP Rocket.
    The 404 store link problem no longer occurs anymore.

    WP Rocket Activated – adds/changes this wp-config.php code.
    define('WP_CACHE', true);

    WP Rocket Deactivated – adds/changes this wp-config.php code.
    define('WP_CACHE', false);

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.