Title: errors generated by &#8212; class-itsec-file-change.php
Last modified: August 22, 2016

---

# errors generated by — class-itsec-file-change.php

 *  [tcloud](https://wordpress.org/support/users/tcloud/)
 * (@tcloud)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/)
 * 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/](https://wordpress.org/plugins/better-wp-security/)

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

 *  Thread Starter [tcloud](https://wordpress.org/support/users/tcloud/)
 * (@tcloud)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5466963)
 * bump — please help
 *  [iThemes Support](https://wordpress.org/support/users/ithemes-support/)
 * (@ithemes-support)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5466995)
 * Hey Tcloud,
 * Thanks for the bump. I’ve pinged the developer on this. I’ll report back here
   when I know more.
 * Thanks,
 * Gerroald
 *  [iThemes Support](https://wordpress.org/support/users/ithemes-support/)
 * (@ithemes-support)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467019)
 * 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](https://wordpress.org/support/users/tcloud/)
 * (@tcloud)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467043)
 * 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](https://wordpress.org/support/users/tcloud/)
 * (@tcloud)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467052)
 * [http:siegeofbexar.org](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/siegeofbexar.org?output_format=md)
 * 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
       ```
   
 *  [iThemes Support](https://wordpress.org/support/users/ithemes-support/)
 * (@ithemes-support)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467053)
 * Hey Tcloud,
 * Thanks for the extra information. I’ll be sure to pass this to the developer.
 * Thanks,
 * Gerroald
 *  [G74un3](https://wordpress.org/support/users/g74un3/)
 * (@g74un3)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467054)
 * 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.
 *  [archerdata](https://wordpress.org/support/users/archerdata/)
 * (@archerdata)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467068)
 * What’s missing is the subdirectory WP is installed into. I have the exact same
   problem.
 *  [archerdata](https://wordpress.org/support/users/archerdata/)
 * (@archerdata)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467069)
 * 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](https://wordpress.org/support/users/tcloud/)
 * (@tcloud)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467072)
 * 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/](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.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

 * [error_log](https://wordpress.org/support/topic-tag/error_log/)
 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)
 * [subdomain](https://wordpress.org/support/topic-tag/subdomain/)

 * 10 replies
 * 4 participants
 * Last reply from: [tcloud](https://wordpress.org/support/users/tcloud/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/errors-generated-by-class-itsec-file-changephp/#post-5467072)
 * Status: not resolved