• I tried Async JS and CSS plugin I only set the minified CSS settings, it did improve the page speed to some extent.

    Next day, I did not update any other plugin or changed any settings for any plugin but I started having a Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /site/public_html/wp-includes/class-wp.php on line 204 message being displayed on my site.

    After deactivating this plugin the error message was gone.

    I wonder whats causing this issue. No disrespect to your plugin. I just felt like notifying you.

    http://ww.wp.xz.cn/plugins/async-js-and-css/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dmikam

    (@dmikam)

    It looks really strange to me, but looks like a regular expression error. I use them in detection of scripts included on wp_head and wp_footer actions, so try to disable “Detect <script> tags in wp_head” and “Detect <script> tags in wp_foot” options.

    Thread Starter rohitbhalara4

    (@rohitbhalara4)

    Hello elCHAVALdelaWEB, thanks for taking the time to reply.

    I had only minify css option checked out of all the options available.

    Plugin Author dmikam

    (@dmikam)

    It is something really strange, I was trying to provoke the same error but I couldn’t. It would be great to see you .css file to see if there some code which provokes this message. Could you send me a link to the .css file ?

    Thread Starter rohitbhalara4

    (@rohitbhalara4)

    Thanks for the reply again elCHAVALdelaWEB.

    I activated this plugin again, this time it din’t show the error I was getting earlier but my site was almost gone.

    This time, the site was virtually gone and only 1/20th of the site was showing in the left corner of the browser.

    The error that I was getting earlier could have been suppressed with following code at the end of wp-config.php.

    error_reporting(0);
    @ini_set('display_errors', 0);

    I am not sure which css file you were referring to. I have very basic editing in the custom css file.

    Please bare with me as I am quite new to this stuff.

    Thank you.

    Plugin Author dmikam

    (@dmikam)

    If you can publish a link to your site, I possibly could see something strange.
    Other thought – dry to deactivate all other plugins temporarily to discard them as a problem sources.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Deactivating Async JS and CSS removed Compilation failed message?’ is closed to new replies.