OpenID
Log In | Register
Skip to main content
Topic: error_log in root directory (Read 5414 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.
error_log in root directory
[28-Dec-2021 14:36:05 America/Halifax] PHP Notice:  Undefined index: result in /home/xxx/backup/resources/functions.php on line 704
[28-Dec-2021 14:47:03 America/Halifax] PHP Notice:  Undefined index: result in /home/xxx/backup/resources/functions.php on line 704

I have been having this error popup on my one host for a couple of months now.  I didn't think anything of it, then realized that not all of my accounts are being successfully backed up.  There are missing accounts.  After reading the post from today by Steve, I switched to running PHP 7.4, but the error still persists.  I also noticed that the backup file is created, but it isn't downloaded nor deleted (presumably because it wasn't downloaded). This makes the account go over-quota for diskspace as well.

To test things, I created a cron generate at 1min intervals until the log file changed, then deleted that cron and created a regular cron to force the backup as a test.

I have this same script running the same settings on another host - its been working great there for years.

Anything obvious that I've missed?

Re: error_log in root directory
Reply #1
Hi,

The PHP notices can be ignored they do not affect the running of the script. (On a side note I will be resolving these error messages shortly).

If the backup files are created but not transferred then there is a problem with your cpanel server or your FTP/SCP server. Pleas enable backup emails when running the backup and examine the emails you receive per cpanel account for any transfer errors.

Alternatively you can run the backup manually from within cpanel by creating a full account backup on an account that doesn't backup correctly.

Please note to create and transfer a backup. The account being backed up must have enough space to temporarily store the backup file. This is a limitation by cpanel itself.