• I recently (as in 2 days ago) migrated my site from one hosting service to another and I am seeing this error:

    Warning: scandir(/home3/lightnm0/public_html/wp-content/uploads/ithemes-security/backups): failed to open dir: No such file or directory in /home/effect27/public_html/live-site/wp-content/plugins/better-wp-security/core/modules/backup/class-itsec-backup.php on line 261

    Warning: scandir(): (errno 2): No such file or directory in /home/effect27/public_html/live-site/wp-content/plugins/better-wp-security/core/modules/backup/class-itsec-backup.php on line 261

    It is particularly odd because it is scrawled across the top of the page as though it was generated with the PHP “echo” function. Also, it does not appear in the error log.

    My real concern is to resolve the issue and be sure backups are happening successfully. The file is definitely there. The folder has 777 permissions and the file has 644 permissions.

    Thanks! ??

    • This topic was modified 8 years, 1 month ago by mirgcire.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mirgcire

    (@mirgcire)

    Okay, I think I resolved the issue. The backup setting was pointed to my previous host. But I would still like to understand why the error message was scrawled across the top of my admin panel? Is this a feature or a bug in my hosting service. It looks like the message is generated by a PHP echo function. And there is no corresponding message in the error logs.

    @mirgcire

    Perhaps the WP_DEBUG constant is set to true in the wp-config.php file.
    PHP does not perform echo commands by itself.
    The scandir command is unable to find the folder and PHP simply signals a warning.
    Weird it does not appear in the error_log. It should.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error Message appears in Admin Panel’ is closed to new replies.