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
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
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);
?>
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
Do you know if there is anyone out there that would be able to do this for me, as a service?
Regards,
Andy
I still have a blank page at www.platinum-place.com
Now looking for the fix to this :-)
Regards,
Andy
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
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
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
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
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?
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
Users browsing this forum: No registered users and 5 guests