Database backup stops with an error

Open to all! Ask other shopowners for help.
Post Reply
User avatar
ReneH4
Contributor
Posts: 145
Joined: Mon Oct 26, 2020 12:00 pm
Phoenix Version:
Has thanked: 13 times
Been thanked: 17 times

Database backup stops with an error

Post 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?

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4547
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Database backup stops with an error

Post by burt »

The fault log is telling you what to do to fix it...
I am not here to build for you.
I am here to build with you. Let's help each other.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Database backup stops with an error

Post 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']);
User avatar
ReneH4
Contributor
Posts: 145
Joined: Mon Oct 26, 2020 12:00 pm
Phoenix Version:
Has thanked: 13 times
Been thanked: 17 times

Re: Database backup stops with an error

Post 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?


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply