• Resolved Adria

    (@kailala)


    For a while now, I’ve been seeing the following errors in the error log:

    [26-Feb-2015 18:50:52] PHP Warning: parse_url(/categoryhttps://xxx.com/blog) [function.parse-url]: Unable to parse URL in /xxx/xxx/xxx/wp-content/plugins/better-wp-security/modules/free/hide-backend/class-itsec-hide-backend.php on line 165

    [26-Feb-2015 18:50:52] PHP Warning: Cannot modify header information – headers already sent by (output started at /xxx/xxx/xxx/wp-content/plugins/better-wp-security/modules/free/hide-backend/class-itsec-hide-backend.php:165) in /xxx/xxx/xxx/wp-includes/pluggable.php on line 1178

    I’ve been doing some investigating, but can’t figure out what’s causing these errors. I’m curious if it’s related to the iThemes security plugin since both errors reference a file from that plugin. I have the latest versions of WordPress and iThemes installed. I also have almost every option of iThemes configured. I’m guessing the above relates to the ‘hide back end feature’ which I do have enabled. I’ve looked at the pluggable.php and class-itsec-hide-backend.php files and there appears to be no changes to the code in either of these. So, any help would be apprieciated.

    https://www.ads-software.com/plugins/better-wp-security/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Weird issue.
    You only get the warning messages in the error log ? Not on screen ?
    What PHP version are you using ?
    And what webserver (version) ?

    dwinden

    Thread Starter Adria

    (@kailala)

    Yep, no errors on screen or in the WordPress admin panel. The plugin and everything else seems to function just fine. However, the constant errors are a bit concerning.

    PHP Version is 5.2.17. I know it’s out of date, but it’s what I have to work with right now. Hopefully it’s not the issue. Webserver is Apache 2.2.23.

    Ok.

    Not sure whether this is any good but I created a little test script named test_parse_url.php:

    <?php
    $url_info = parse_url('/categoryhttps://xxx.com/blog');
    ?>

    When I run that test script using PHP 5.5.15 (Apache 2.4.10) I don’t get any warning messages whatsoever (screen or log).

    Create the script and test it on your env … I guess you don’t need to replace xxx with your domain name … but if you want to go right ahead … it’s your party …

    Interesting to see whether it also comes up with a PHP Warning in your log …
    If it is, it’s definately a PHP (5.2.x) issue …

    Oh I did a quick test on a PHP 5.2.14 env and guess what …

    [Fri Feb 27 22:05:28 2015] [error] [client 127.0.0.1] PHP Warning: parse_url(/categoryhttps://xxx.com/blog) [function.parse-url]: Unable to parse URL in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\test_parse_url.php on line 2

    dwinden

    It looks like this issue was related to the (old) PHP version being used.
    Anyway it’s not an iTSec plugin issue.

    If the provided info answered your question please mark this topic as ‘resolved’.

    dwinden

    Thread Starter Adria

    (@kailala)

    Solved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Warnings in Error Log’ is closed to new replies.