Page 1 of 1

Database backup stops with an error

Posted: Tue Apr 22, 2025 6:10 pm
by ReneH4
I have 1.0.7.9

When I run the database backup program, it stops with an error.

The fault log says:

Code: Select all

PHP Deprecated:  implode(): Passing glue string after array is deprecated. Swap the parameters in /home/deb128619n2/domains/honda4parts.nl/public_html/admin/backup.php on line 102\n,
Line 102 says:

Code: Select all

            $columns = implode($info['columns'], ', ');
It has worked well before, maybe PHP7.4 received an upgrade on my server?

Re: Database backup stops with an error

Posted: Tue Apr 22, 2025 8:55 pm
by burt
The fault log is telling you what to do to fix it...

Re: Database backup stops with an error

Posted: Wed Apr 23, 2025 4:07 am
by heatherbell
ReneH4 wrote: Tue Apr 22, 2025 6:10 pm Line 102 says:

Code: Select all

            $columns = implode($info['columns'], ', ');
Try changing that line to:

Code: Select all

$columns = implode(', ', $info['columns']);

Re: Database backup stops with an error

Posted: Wed Apr 23, 2025 6:44 am
by ReneH4
Edit: I changed memory_limit in PHP to a higher value, and the problem is solved now.

Edit 2: I changed the PHP code back to what it was, this also works.

So the problem I had was cause by the memory issue in PHP.

Thanks for the support.


Thanks. I had searched and found this, but was not sure of the syntax.

THAT error is gone, now I get (and had that before):

Code: Select all

Allowed memory size of 100663296 bytes exhausted
It comes from line 51, which is:

Code: Select all

        fputs($fp, $schema);
Is this a setting in Phoenix or is this provider related?