Forums

WP Super Cache
Getting PHP warning "Empty delimiter" in Webhost logs (5 posts)

  1. anandkumar4u
    Member
    Posted 4 months ago #

    I am getting PHP warning. Their are thousands of such warning in the logs:
    The site is hosted on HostGator.

    Warning message:
    [02-Jan-2012 20:38:29] PHP Warning: stristr() [function.stristr]: Empty delimiter in /home/USER/public_html/DOMAIN.TLD/wp-content/plugins/wp-super-cache/ossdl-cdn.php on line 34

    At line 34 in ossdl-cdn.php:
    if (stristr($match, $badword) != false) {

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Posted 4 months ago #

    Do you have anything in "Exclude if substring" on the CDN settings page? Put ".php" in there if you don't.

    Otherwise this is harmless. You could add a "@" in front of the stristr command to hide the warning.

  3. anandkumar4u
    Member
    Posted 4 months ago #

    I have excluded .php, .xsl, .ico,

    Shuld i put like @.xsl, @.ico??

  4. Donncha O Caoimh
    Member
    Posted 4 months ago #

    No need, just put .php in there. The other files are static files that can be mirrored by your CDN.

  5. anandkumar4u
    Member
    Posted 4 months ago #

    I have removed .ico (which is fine) but when I remove .xsl The sitemap generated by "SEO by Yoast" gets error!! :(

Reply

You must log in to post.

About this Plugin

About this Topic