Many thanks Skip - you saved me having to reach for the valium :D
Mike
Printable View
I've read the whole support thread but I've not yet found a similar situation...
I'm running my perfectly installed v1.0.7 version on my v1.3.9 Zen Cart installation and I'm continuosly reporting this problem:
[25-Jun-2012 20:47:25] PHP Warning: set_time_limit() [<a href='function.set-time-limit'>function.set-time-limit</a>]: Cannot set time limit in safe mode in /home/.sites/148/site6/web/[_ADMIN_]/backup_zc.php on line 305
The error repeats at line 189 if I also ask to backup the SQL files too...
On those lines there is the following statement:
set_time_limit(0); // set run for ever
Since I cannot ask my ISP to change this for me, is there any workaround ? Is there any other way ?
Does this prevent time outs of the script ? I'm not a programmer, even if I have a rough knowledge of such activity...
Thank you for your appreciated help.
mickymix
You should not be running php in safe mode.
If your host will not change this, then try and find a new host.
There are workarounds google How to turn off safe mode with htaccess
Skip
ACK!!! I messed it all up!! I can't even log in to the admin. It doesn't even show up! How can I use the back up that I made?
What needs to be done to change the date format in the saved filename from mmddyyyy to yyyymmdd?
eg from localhost_07042012-1703.zip to localhost_20120704-1703.zip.
I know I can the filename manually but I wish it done by the software.
Thanks
Thanks you sport this mod. I have a question about this one have backup database function. I don't see it has restore function also. If it has it should can upgrand system.
Due to the limitations of php with mysql it comes down to the size of the sql file for restore. This limitation is different across all servers. There are many apps that can be used to restore the sql backup file. (phpMyAdmin for one and mysql itself).
Plus it would add additional support with the restore function.
Skip
My database over 1G, use phpmyadmin need 1000times restore. I don't have idea to do it.
For large SQL imports you should use:
SSH
login host:your_username pw:your_password
Command line for import mysql sql data file
mysql -u (database_username) -p DatabaseName < path/DatabaseBackup.sql
If you do not have access to SSH then your host provider must do it.
For more information google
Skip