Support » Plugin: Solid Security – Password, Two Factor Authentication, and Brute Force Protection » errors generated by — class-itsec-file-change.php

  • I am getting the errors below (but they don’t occur with every access). They don’t cause me any trouble (that I know of) other than printing an error on the public web page, which I think is a security vulnerability.

    The web site ( http:siegeofbexar.org ) has wordpress in a subdirectory — public_html/wordpress/

    I believe the problem may be in the “home” name — the errors reference two versions: “home” and “home2”. The home directory is “/home2/username”.

    The directory structure may be important ?? The site is an add-on domain to a primary site:

    /home2/username/public_html/ — primary site
    /home2/username/subdomains/domainname.com/public_html/ — this site

    ==================================================
    error_log in “public_html/”:
    ==================================================

    PHP Warning: opendir(/home2/username/subdomains/domainname.com/public_html/wp-admin/): failed to open dir: No such file or directory in /home/username/subdomains/domainname.com/public_html/wordpress/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497

    ==================================================
    error_log in subdirectory “public_html/wordpress/”:
    ==================================================

    PHP Warning: opendir(/home2/username/subdomains/domainname.com/public_html/wp-admin/): failed to open dir: No such file or directory in /home/username/subdomains/domainname.com/public_html/wordpress/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497

    ==================================================
    error_log in “public_html/wordpress/wp-admin/”
    ==================================================

    PHP Warning: Cannot modify header information – headers already sent by (output started at /home/username/subdomains/domainname.com/public_html/wordpress/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domainname.com/public_html/wordpress/wp-includes/pluggable.php on line 1173

    https://wordpress.org/plugins/better-wp-security/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter tcloud

    (@tcloud)

    bump — please help

    Hey Tcloud,

    Thanks for the bump. I’ve pinged the developer on this. I’ll report back here when I know more.

    Thanks,

    Gerroald

    Hey Tcloud,

    I spoke with the developer and said he’s going to try to recreate this. He also mentioned that you might want to turn WP_DEBUG to false because leaving it on is a security risk.

    Thanks,

    Gerroald

    Thread Starter tcloud

    (@tcloud)

    WP_DEBUG has always been set ‘false’ — just checked and it is still disabled.

    I keep getting the errors. Is it because I have WordPress in a subdirectory? (I’m not getting any other errors).

    In root directory (public_html):
    ========================================

    [17-Nov-2014 19:15:24 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-includes/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [17-Nov-2014 19:15:24 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-includes/feed-rss2.php on line 8
    [17-Nov-2014 22:43:40 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-content/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [17-Nov-2014 22:43:40 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-includes/feed-rss2-comments.php on line 8
    [18-Nov-2014 02:19:12 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-content/uploads/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [18-Nov-2014 06:41:36 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-content/themes/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [18-Nov-2014 06:41:36 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-content/themes/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [18-Nov-2014 10:17:14 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-content/plugins/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497

    In WordPress subdirectory
    (public_html/wp):
    ========================================
    [17-Nov-2014 19:15:24 UTC] PHP Warning: opendir(/home2/username/subdomains/domain.org/public_html/wp-includes/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497

    In public_html/wp/wp-admin:
    ========================================

    [07-Nov-2014 12:22:45 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-admin/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [07-Nov-2014 12:22:45 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-includes/pluggable.php on line 1173
    [07-Nov-2014 15:49:36 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-admin/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [07-Nov-2014 15:49:36 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-admin/post.php on line 233
    [07-Nov-2014 15:49:36 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-includes/pluggable.php on line 1173
    [08-Nov-2014 20:16:26 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-admin/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [08-Nov-2014 20:16:26 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-admin/post.php on line 233
    [08-Nov-2014 20:16:26 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-includes/pluggable.php on line 1173
    [09-Nov-2014 11:36:39 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/ml-slider/ml-slider.php on line 1672
    [09-Nov-2014 12:53:29 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-content/uploads/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [09-Nov-2014 18:27:20 UTC] PHP Warning:  opendir(/home2/username/subdomains/domain.org/public_html/wp-content/themes/): failed to open dir: No such file or directory in /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497
    [09-Nov-2014 18:27:20 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-admin/post.php on line 233
    [09-Nov-2014 18:27:20 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/username/subdomains/domain.org/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php:497) in /home/username/subdomains/domain.org/public_html/wp/wp-includes/pluggable.php on line 1173

    Thread Starter tcloud

    (@tcloud)

    http:siegeofbexar.org

    I don’t know if this is relevant, but I notice that two different root paths are returned, based on the PHP function used:

    $_SERVER['DOCUMENT_ROOT'] 						/home2/username/public_html
    dirname($_SERVER['SCRIPT_FILENAME']) 			/home2/username/public_html
    
    dirname(__FILE__) 								/home/username/public_html
    realpath($_SERVER['DOCUMENT_ROOT']) 			/home/username/public_html
    realpath(dirname($_SERVER['SCRIPT_FILENAME'])) 	/home/username/public_html

    Hey Tcloud,

    Thanks for the extra information. I’ll be sure to pass this to the developer.

    Thanks,

    Gerroald

    I have the same problem on one of my sites I get the error :

    Warning: opendir(/home/username/public_html/wp-content/plugins/) [function.opendir]: failed to open dir: No such file or directory in /home/username/public_html/wp/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 497

    I also have WP in a subdirectory.

    What’s missing is the subdirectory WP is installed into. I have the exact same problem.

    Here’s what fixed it for me:

    Under Settings -> General:
    WordPress Address (URL)
    Site Address (URL)

    The first had included the /wp/ subdirectory but the seciond did not and since there is no other site, I added the /wp/ to the Site Address (URL) and saved.

    On inspection, everything seems to work.

    I also found that the wp-config.php was not writeable, so changed the persmissions to 644 and iThemes Security liked it better.

    Thread Starter tcloud

    (@tcloud)

    archerdata,

    The “Site Address” is the URL used by the public to visit your site, i.e. the URL to the WordPress home page. In my case, that is http://siegeofbexar.org/ The “WordPress Address” is the location of the WordPress files, allowing you to move them to a subdirectory, which can aid in limiting hacking and prevents conflicts with other scripts you might want in your home page directory. Also, my wp-config was already 644.

    I am ready to accept that this could be a problem at my end — I’d just like a little help finding it.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘errors generated by — class-itsec-file-change.php’ is closed to new replies.