Post by limberthugo » Mon Jan 27, 2025 2:34 pm

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

Newbie

Posts

Joined
Tue Jan 21, 2025 6:26 pm

Post by paulfeakins » Mon Jan 27, 2025 8:13 pm

limberthugo wrote:
Mon Jan 27, 2025 2:34 pm
Hello, I lost the database of my opecart project due to data corruption, how do I restore the database?
Ask your web host to do it from their backups and job done.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by khnaz35 » Wed Jan 29, 2025 11:54 am

paulfeakins wrote:
Mon Jan 27, 2025 8:13 pm
limberthugo wrote:
Mon Jan 27, 2025 2:34 pm
Hello, I lost the database of my opecart project due to data corruption, how do I restore the database?
Ask your web host to do it from their backups and job done.
What host? He is using Xamp server on his windows in C drive.

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 ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by paulfeakins » Wed Jan 29, 2025 8:45 pm

khnaz35 wrote:
Wed Jan 29, 2025 11:54 am
What host? He is using Xamp server on his windows in C drive.
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


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: gunownergear and 6 guests