• dermatze87

    (@dermatze87)


    Hello,
    i’m using the newest version 4.5.2 with the theme Hueman. Now I installed the NewStatPress plugin in version 1.2.1. The function is perfect, but something in the optic isn’t right. On my website are the following erros printed:

    Warning: stristr(): Empty needle in /var/www/web479/html/wp-content/plugins/newstatpress/newstatpress.php on line 966

    Warning: stristr(): Empty needle in /var/www/web479/html/wp-content/plugins/newstatpress/newstatpress.php on line 967

    Warning: stristr(): Empty needle in /var/www/web479/html/wp-content/plugins/newstatpress/newstatpress.php on line 968

    Warning: stristr(): Empty needle in /var/www/web479/html/wp-content/plugins/newstatpress/newstatpress.php on line 969

    and in my dashboard is this error message:

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/web479/html/wp-content/plugins/newstatpress/includes/api/nsp_api_overview.php:101) in /var/www/web479/html/wp-content/plugins/newstatpress/includes/api/external.php on line 31

    I have no idea for an solution. I hope you can help me, thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • ice00

    (@ice00)

    hi,

    the last warning is some we are working to fixing that appears in some sites.

    The others was never seen.

    What is your version of PHP?

    Thanks

    Thread Starter dermatze87

    (@dermatze87)

    hi,

    my version of php is 5.6.20.

    best regards

    ice00

    (@ice00)

    hi,

    you should check version 1.2.2 that will be released soon and see if it resolve the problems.

    thanks

    Thread Starter dermatze87

    (@dermatze87)

    hi,

    today I’ve tried to switch in an other theme. With an other theme the 4 lines on top of the website are not there. Maybe it is a problem with interaction between newstatpress and my Hueman theme. Now I’m trying to analyze the lines 966 to 969 in newstatpress.php.

    ice00

    (@ice00)

    hi,

    those lines check if the given Url is some of blog path, like feeds.

    It seems that when get_bloginfo get an empty string the warning pop up

    try this:

    $tmp=get_bloginfo('rdf_url');
    if ($tmp) { if (stristr($url,$tmp) != FALSE) { return 'RDF'; }}

    instead of this:
    if (stristr($url,get_bloginfo('rdf_url')) != FALSE) { return 'RDF'; }

    and see if warning has gone for the first line.

    This is the solution we are try to implement for the warning in 1.2.2

    Thanks

    Thread Starter dermatze87

    (@dermatze87)

    hi,

    after changing the lines in your code, the first error line on top of the website has gone. Thank you, I will waiting for next update.

    Thread Starter dermatze87

    (@dermatze87)

    hi,

    now I’ve installed NewStatPress 1.2.2 and everything is fine. No error messages. perfect thank you

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

The topic ‘Problem with NewStatPress’ is closed to new replies.