• i see the following warning and stack trace on basically every page of my site – it does not seem to impact correct rendering but is playing havoc with my monitoring – can anyone comment on what i might need to look for?

    Stack trace
    E_WARNING: preg_match(): Compilation failed: nothing to repeat at offset 0
    in preg_match called at /var/www/html/wp-content/plugins/w3-total-cache/BrowserCache_Plugin.php (218)
    in W3TC\BrowserCache_Plugin::_url_has_to_be_replaced called at /var/www/html/wp-content/plugins/w3-total-cache/BrowserCache_Plugin.php (142)
    in W3TC\BrowserCache_Plugin::link_replace_callback called at ? (?)
    in preg_replace_callback called at /var/www/html/wp-content/plugins/w3-total-cache/BrowserCache_Plugin.php (127)
    in W3TC\BrowserCache_Plugin::ob_callback called at ? (?)
    in call_user_func called at /var/www/html/wp-content/plugins/w3-total-cache/Util_Bus.php (21)
    in W3TC\Util_Bus::do_ob_callbacks called at /var/www/html/wp-content/plugins/w3-total-cache/Generic_Plugin.php (517)
    in W3TC\Generic_Plugin::ob_callback called at ? (?)
    in ob_end_flush called at /var/www/html/wp-includes/functions.php (3719)
    in wp_ob_end_flush_all called at ? (?)
    in call_user_func_array called at /var/www/html/wp-includes/class-wp-hook.php (298)
    in WP_Hook::apply_filters called at /var/www/html/wp-includes/class-wp-hook.php (323)
    in WP_Hook::do_action called at /var/www/html/wp-includes/plugin.php (453)
    in do_action called at /var/www/html/wp-includes/load.php (677)
    in shutdown_action_hook called at ? (?)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you solved this? If yes – how? I’ve got the same Problem.

    I’m also getting this and would love a way to stop it outside of editing core plugin code.

    Hi

    I solved this by disabling the option “Prevent caching of objects after settings change” in browser cache settings (general, js & css and media & other files sections).

    Didn’t figure why it happen tough.

    Hi all
    I did with Renanno suggestion disabling “Prevent caching of objects after settings change” didnt work
    so I reset all setting to the depault and start all over again in W3 Total cache.
    then the warning gone.
    Good Luck

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘preg_match(): Compilation failed: nothing to repeat at offset 0’ is closed to new replies.