• Resolved Blaze Miskulin

    (@blazemiskulin)


    I just triggered the suggested update to 4.2.6, and our site disappeared, to be replaced with this:

    Class 'W3_Config' not found in [...]/wp-content/plugins/wptouch/core/class-cache-smash.php on line 96

    I manually deleted the plugin and reinstalled from inside WP. When trying to activate, WP refused to do so because the plugin “triggered a fatal error”, followed by the same error code as above. (Note, I put the […] in to replace server directories and domain name)

    Just wondering if anyone else is seeing this, and if there’s a solution.

    We have a lot of other plugins activated, but the site does business internationally, and I can’t afford to deactivate them all to look for conflicts.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yeah, I’m getting exactly the same error here. I’m looking for a solution…

    This issue was caused by the upgrade of the plugin W3 Total Cache.
    I upgraded it to latest 0.9.5 just now and found my website did not work anymore, and from the error log I got the same error as yours.

    Below is a temporary workaround, hope it is helpful to you.
    1. login the server directly and go to the WordPress Plugin folder(wp-content/plugins), then to wptouch/core folder
    2. make a backup of file class-cache-smash.php first
    3. edit the file class-cache-smash.php
    line 96: $w3_config = new W3_Config( true );
    to: $w3_config = w3_instance(‘W3_Config’);
    line 99: if ( $w3_config->get_cache_option( ‘pgcache.enabled’ ) ) {
    to: if ( $w3_config->get_boolean( ‘pgcache.enabled’ ) ) {
    line 101: $rejected_user_agents = $w3_config->get_cache_option( ‘pgcache.reject.ua’ );
    to $rejected_user_agents = $w3_config->get_array( ‘pgcache.reject.ua’ );

    then try to activate the ‘WPtouch Mobile Plugin’ again.

    Hope the next update will fix this issue.

    Thanks for the temporary fix! However, I now get this:

    Call to undefined function w3_instance() in [………]/wp-content/plugins/wptouch/core/class-cache-smash.php on line 96

    Any thoughts?

    • This reply was modified 8 years, 5 months ago by xbodygr.

    Hi,

    Please upgrade to version 4.3 of WPtouch. The update includes a fix for this issue.

    Regards,
    [ Signature moderated ]

    • This reply was modified 8 years, 5 months ago by Jan Dembowski.
    Thread Starter Blaze Miskulin

    (@blazemiskulin)

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Update to 4.2.6 breaks website’ is closed to new replies.