Hello, I lost the database of my opecart project due to data corruption, how do I restore the database? With the installer I managed to reinstall the database keeping the folder of my previous project so as not to lose modifications, but OpenCart no longer connects. The connection data is correct, and I get the following message
Warning: fopen(C:/xampp/storage/logs/error.log): Failed to open stream: No such file or directory in C:\xampp\htdocs\aruopen\upload\system\library\log.php on line 30
Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in C:\xampp\htdocs\aruopen\upload\system\library\log.php:32 Stack trace: #0 C:\xampp\htdocs\aruopen\upload\system\library\log.php(32): fclose(false) #1 C:\xampp\htdocs\aruopen\upload\system\framework.php(32): Opencart\System\Library\Log->__construct('error.log') #2 C:\xampp\htdocs\aruopen\upload\index.php(20): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\aruopen\upload\system\library\log.php on line 32
All the files mentioned are fine and you can see their code
Warning: fopen(C:/xampp/storage/logs/error.log): Failed to open stream: No such file or directory in C:\xampp\htdocs\aruopen\upload\system\library\log.php on line 30
Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in C:\xampp\htdocs\aruopen\upload\system\library\log.php:32 Stack trace: #0 C:\xampp\htdocs\aruopen\upload\system\library\log.php(32): fclose(false) #1 C:\xampp\htdocs\aruopen\upload\system\framework.php(32): Opencart\System\Library\Log->__construct('error.log') #2 C:\xampp\htdocs\aruopen\upload\index.php(20): require_once('C:\\xampp\\htdocs...') #3 {main} thrown in C:\xampp\htdocs\aruopen\upload\system\library\log.php on line 32
All the files mentioned are fine and you can see their code
Ask your web host to do it from their backups and job done.limberthugo wrote: ↑Mon Jan 27, 2025 2:34 pmHello, I lost the database of my opecart project due to data corruption, how do I restore the database?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
What host? He is using Xamp server on his windows in C drive.paulfeakins wrote: ↑Mon Jan 27, 2025 8:13 pmAsk your web host to do it from their backups and job done.limberthugo wrote: ↑Mon Jan 27, 2025 2:34 pmHello, I lost the database of my opecart project due to data corruption, how do I restore the database?
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
Ah yes good point, I didn't read the error messages in detail.
In that case install OpenCart somewhere else and copy that database over.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Who is online
Users browsing this forum: gunownergear and 6 guests