• Hi, I am getting the following error. I believe it is related to the back up so I turned the scheduled backups off for now to see if the error clears from the log file. I made some search but I can’t see this as a known issue but I did find some sites with the same problem.

    PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /plugins/better-wp-security/core/modules/backup/class-itsec-backup.php:98
    Stack trace:
    #0 /plugins/better-wp-security/core/modules/backup/class-itsec-backup.php(62): ITSEC_Backup->do_backup()
    #1 /wp-includes/class-wp-hook.php(286): ITSEC_Backup->scheduled_callback(Object(ITSEC_Job))
    #2 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #3 /wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #4 /wp-content/plugins/better-wp-security/core/lib/class-itsec-scheduler.php(307): do_action(‘itsec_scheduled…’, Object(ITSEC_Job))
    #5 /wp-content/plugins/better-wp-security/core/lib/class-itsec-scheduler- in /plugins/better-wp-security/core/modules/backup/class-itsec-backup.php on line 98

Viewing 1 replies (of 1 total)
  • Ah, nice bug.

    There are 2 situations that lead to this error:

    1. The backup is unable to create the backup directory.
    (Usually $http_home/wp-content/uploads/ithemes-security/backups).
    Check the current value for the Database Location setting in the Database Backups module. If the location is invalid correct it.

    2. The backup is unable to write to the backup file. This may be due to a permissions or disk space issue.

    Solve the problem and you won’t run into this bug.

    To prevent any confusion, I’m not iThemes.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error in line class-itsec-backup.php:98’ is closed to new replies.