Seeing logs under PHP8.1:
--> PHP Warning: Undefined array key 1 in /home/bmicpanel/public_html/client/admin/backup_mysql.php on line 157.
where that line is
if (zen_not_null($resultcodes)) list($strA, $strB) = preg_split ('/[|]/', $resultcodes);
Seeing logs under PHP8.1:
--> PHP Warning: Undefined array key 1 in /home/bmicpanel/public_html/client/admin/backup_mysql.php on line 157.
where that line is
if (zen_not_null($resultcodes)) list($strA, $strB) = preg_split ('/[|]/', $resultcodes);
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
In my version I find I modified it for that same reason,
from
list($strA, $strB) = preg_split ('/[|]/', $resultcodes);
to
[$strA, $strB] = array_pad(explode('|', $resultcodes, 2), 2, null);
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
OK, but that change didn't make it to Github.
https://github.com/torvista/Zen_Cart...mysql.php#L155
looks just like what I posted.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Hmm, no, there's so many changes in my personal version, it's difficult to push things piecemeal logically...haven't got round to it!
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
Yep, that looks like what's needed. TY.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I just tried the backup mysql on my new 2.0.1 upgrade and it just gives a blink to the admin page and returns to the admin page. Has anyone successfully install it?
Please post the debug log file from the /logs folder. It has been tested and should work.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I've long been making changes to this plugin and have finally incorporated them in GitHub, branch dev:
https://github.com/torvista/Zen_Cart...lugin/tree/dev
including:
- converted to an encapsulated plugin
- auto-finds the mysql executables (stores result in db so does not run auto-find every time).
- allow a suffix to be added to the backup filename
- allow gzip and zip compression for backup and restore
So would appreciate some testing and feedback in the issues.
Caveat Emptor, as always.
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
I only recently stumbled onto this plugin by accident.
Very nice work!
Tested on zc 2.1.0 with PHP 8.4.1 MariaDB MySQL 11.6.2
with export and restore
OldNGrey
ZC158a PHP 8.2.15
MySQL 10.6.16-MariaDB
Bookmarks