Page 1 of 1

Error: Could not load config default!

Posted: Thu Oct 05, 2017 6:07 pm
by Jawabri
Hello All,

I have installed Opencart for my website, and it was working perfectly! suddenly my site stopped and it started giving the following error if I try to access the homepage:
Notice: Error: Could not load config default! in /hermes/bosnacweb02/bosnacweb02ae/b2006/ipg.bloozarcom/99symbols/system/library/config.php on line 63

anyone can help please ?

Re: Error: Could not load config default!

Posted: Thu Oct 05, 2017 10:36 pm
by yodapt
Check if this file exists : system/config/default.php

Re: Error: Could not load config default!

Posted: Sat Oct 07, 2017 4:37 pm
by Jawabri
Yes it is there !

Re: Error: Could not load config default!

Posted: Sat Oct 07, 2017 4:52 pm
by bumcarks
Please check the file exist system/library/config.php

Re: Error: Could not load config default!

Posted: Sat Oct 07, 2017 5:52 pm
by Jawabri
Yes it is also there, I didnt touch anything, it was working perfectly !

Re: Error: Could not load config default!

Posted: Sat Oct 07, 2017 8:56 pm
by straightlight
This issue may be caused by FTP uploads whether the transfer was not completed or the files were uploaded with the wrong file header mode. Reupload all files (without deleting any files but by simply replacing them) through your host's file manager console with the ZIP file and make a backup of your config.php and admin/config.php file before you do so. Clear your browsing cache and the Opencart cache. Re-upload your config.php file and admin/config.php file. Reload the platform.

This should resolved the problem.

Re: Error: Could not load config default!

Posted: Tue Oct 31, 2017 9:05 pm
by rymann76
Hello,
So just wanting to make sure the correct fix to this problem is to reinstall my version of open cart 3.0.2.0? This would be the only solution to the error

"Notice: Error: Could not load config default! in /home/xxxxxxx/public_html/system/library/config.php on line 63"

Thank You

Re: Error: Could not load config default!

Posted: Tue Oct 31, 2017 9:10 pm
by straightlight
There is nowhere to be said that Opencart needs to be completely reinstalled on this topic. However, if the system/config/default.php file does exist on your FTP, then the issue is with the setting database table. You may have missing entries. From PHPMyAdmin, in the setting table, ensure to have the: theme key defined to default. If the key exists but is defined to something else than default, ensure this custom theme actually exist on the server. If it does exist and the catalog/view/theme/default folder does not exist, re-upload that folder name to your server at that location. If the default folder name is there but the theme key in the setting has a different value than default, change it back to default .

Re: Error: Could not load config default!

Posted: Tue Oct 31, 2017 9:26 pm
by straightlight
In addition, ensure in your layout table that you have the default theme as well as the config_theme key in your setting table that is defined to default (if not defined to something else already). If defined to something else and the config_theme key does exist, switch the value back to: default .

Re: Error: Could not load config default!

Posted: Tue Oct 31, 2017 9:56 pm
by rymann76
Hi,
Thanks for the info. In PHPmyadmin under appearance and settings section the theme is set to pmahomme with the other option being original. Not sure if this is what you are referring to, please excuse my ignorance.

Thank you for your time

Re: Error: Could not load config default!

Posted: Tue Oct 31, 2017 10:05 pm
by straightlight
Rename the pmahomme back to default and clear the browser cache. Then, close the browser, re-enter the admin store and see if the error message persists. Also ensure to have read my above's instructions to the letter before re-entering into the admin.

Re: Error: Could not load config default!

Posted: Fri Nov 03, 2017 6:39 am
by rymann76
Hello,
So this is what I have. The default folder is located in the catalog/view/theme/default within my cpanel. The options I have in PHPmyadmin are the pmahomme version mentioned earlier and original no default option. So I need to rename the pmahomme theme to default is this correct? I am searching online how to make this change back to the default theme as this is all new to me. Thanks, againg for your help.
Ryan

Re: Error: Could not load config default!

Posted: Fri Nov 03, 2017 6:45 am
by straightlight
No, the default folder should remain as is. You just need to ensure that the pmahomme folder also exist as a custom theme folder in the catalog/view/theme folder but from the database, ensure to rename the pmahomme back to default.

Re: Error: Could not load config default!

Posted: Thu Mar 22, 2018 1:59 am
by straightlight
Thanks to the forum user: rhorne regarding pnahomme. This seem to be a PHPMyAdmin skin and not an Opencart theme. However, the provided steps on the above are valid regarding the keys and the values to look for where the default theme can be reloaded without having the error message on the topic subject in order to regain control of the store.

So to add, the pnahomme theme subject is off-topic based on the reported error message Opencart provides in this case.