Hi All,
I read somewhere that upgrading to the new 2.0 of Opencart was pretty easy......so took the plunge.
Followed the instructions and got a page of errors, when trying to log into Admin and the site, including :
'Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in…'
I tried to do the config changes, as suggested, and now I just get blank pages for both the website and admin.
Am am ok with technical stuff, but this has given me a headache!
Any suggestions, now that I can't sell anything :-(
Regards,
Andy
I read somewhere that upgrading to the new 2.0 of Opencart was pretty easy......so took the plunge.
Followed the instructions and got a page of errors, when trying to log into Admin and the site, including :
'Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in…'
I tried to do the config changes, as suggested, and now I just get blank pages for both the website and admin.
Am am ok with technical stuff, but this has given me a headache!
Any suggestions, now that I can't sell anything :-(
Regards,
Andy
Hi there, and thanks for your reply.
A fatal error does not sound good :-(
I think I done the config edit correctly, but now not too sure.
What lines would it be placed into?
Regards,
Andy
A fatal error does not sound good :-(
I think I done the config edit correctly, but now not too sure.
What lines would it be placed into?
Regards,
Andy
Hi PlatinumPlace,
I would suggest two following approach in this case by making a backup of both config files (catalog and admin):
1 - To replace the following constants with these:
2 - To simply view each outputted lines of step 1 into a log file stored in your system/logs/server_path.log into a separated PHP file stored on the root folder of your store:
server_path.php (needs to be created):
Once the file executed, visit the system/logs/server_path.log file I just created and copy each of the right definitions into each right definitions of your config.php file accordingly. Once applied, simply delete server_path.php and server_path.log file and you're done.
I would suggest two following approach in this case by making a backup of both config files (catalog and admin):
1 - To replace the following constants with these:
Code: Select all
define('DIR_APPLICATION', str_replace('\\', '/', realpath(dirname(__FILE__))) . '/');
define('DIR_SYSTEM', str_replace('\\', '/', realpath(dirname(__FILE__) . '/../')) . '/system/');
define('DIR_OPENCART', str_replace('\\', '/', realpath(DIR_APPLICATION . '../')) . '/');
define('DIR_DATABASE', DIR_SYSTEM . 'database/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');
server_path.php (needs to be created):
Code: Select all
<?php
define('DIR_APPLICATION', str_replace('\\', '/', realpath(dirname(__FILE__))) . '/');
define('DIR_SYSTEM', str_replace('\\', '/', realpath(dirname(__FILE__) . '/../')) . '/system/');
define('DIR_OPENCART', str_replace('\\', '/', realpath(DIR_APPLICATION . '../')) . '/');
define('DIR_DATABASE', DIR_SYSTEM . 'database/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');
require_once(DIR_SYSTEM . 'log.php');
$log = new Log('server_path.log');
$log->write('DIR_APPLICATION: ' . DIR_APPLICATION);
$log->write('DIR_SYSTEM: ' . DIR_SYSTEM);
$log->write('DIR_CATALOG: ' . DIR_OPENCART);
$log->write('DIR_DATABASE: ' . DIR_DATABASE);
$log->write('DIR_LANGUAGE: ' . DIR_LANGUAGE);
$log->write('DIR_TEMPLATE: ' . DIR_TEMPLATE);
$log->write('DIR_CONFIG: ' . DIR_CONFIG);
$log->write('DIR_MODIFICATION: ' . DIR_MODIFICATION);
?>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks for your replies.
Do you know if there is anyone out there that would be able to do this for me, as a service?
Regards,
Andy
Do you know if there is anyone out there that would be able to do this for me, as a service?
Regards,
Andy
I copied and pasted the config file, so that they both matched, and I could then get into the admin side of things. There were a whole host of errors at the top of the screen, and the dashboard was below. I changed settings in the 'settings' area, and now can see the admin part with no errors (yet).
I still have a blank page at www.platinum-place.com
Now looking for the fix to this :-)
Regards,
Andy
I still have a blank page at www.platinum-place.com
Now looking for the fix to this :-)
Regards,
Andy
admin/config.php file and config.php file is pretty similar but are not identical. For instance, the DIR_APPLICATION must be changed to your catalog folder at the end rather than the admin folder.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
That got me a little further :-) thank you.
Now have:
Notice: Error: Could not load template /platinum-place.com/admin/view/template/default/template/common/column_left.tpl! in /platinum-place.com/system/engine/loader.php on line 45
Now have:
Notice: Error: Could not load template /platinum-place.com/admin/view/template/default/template/common/column_left.tpl! in /platinum-place.com/system/engine/loader.php on line 45
Now changed code in config
define('DIR_TEMPLATE', '/home/user/folder/www.site.com/catalog/view/theme/');
Now I can see a basic version of the site...
www.platinum-place.com
define('DIR_TEMPLATE', '/home/user/folder/www.site.com/catalog/view/theme/');
Now I can see a basic version of the site...
www.platinum-place.com
If you expect to see a custom theme rather than the default template, it would need to be adjusted under your admin settings page by switching from default to your custom theme folder.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
If error messages are provided specifically based on the custom theme but nothing unusual to report regarding the default template, then it would be best to contact the author of the contribution that developed the custom theme to resolve this issue at this point.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I now have full access to the Admin side, with no errors :-)
Now the front end is coming up, but without my old welcome message, ad with lots of items with the word 'text_' before them.
If I go to edit the welcome message, in admin, I get an error.
www.platinum-place.com
I uploaded a template that is compatible with Version 2.0.3.1 but it has the same text problems.
Any ideas on this one?
Now the front end is coming up, but without my old welcome message, ad with lots of items with the word 'text_' before them.
If I go to edit the welcome message, in admin, I get an error.
www.platinum-place.com
I uploaded a template that is compatible with Version 2.0.3.1 but it has the same text problems.
Any ideas on this one?
This issue may be caused by missing or corrupted files. I would suggest restoring your previous backup to fix these problems. Otherwise, you may end up working file-to-file until this matter gets resolved if you don't have any backup unless your host can pull up a previous backup that was done systematically through your domain that can be restored.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: Baidu [Spider] and 65 guests