Post by sjdeere » Fri Oct 28, 2016 7:38 pm

I'm trying to upgrade from Version to the lates ... de/upgrade

I'm getting an internal server error warning below progress

Internal Server Error Internal Server Error
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

the logg show me
[Fri Oct 28 10:33:14 2016] [warn] [client xx.xx.x.x] mod_fcgid: stderr: PHP Notice: Use of undefined constant VERSION - assumed 'VERSION' in /home/xxx/public_html/system/framework.php on line 2
[Fri Oct 28 10:33:14 2016] [warn] [client ip] mod_fcgid: stderr: PHP Notice: Use of undefined constant VERSION - assumed 'VERSION' in /home/xxx/public_html/system/framework.php on line 2
[Fri Oct 28 10:33:48 2016] [warn] [client xx.xx.x.x] mod_fcgid: read data timeout in 31 seconds, referer: ... de/upgrade
[Fri Oct 28 10:33:48 2016] [error] [client xx.xx.x.x] Premature end of script headers: index.php, referer: ... de/upgrade

so do i need to add something to my config to define Version or is it framework.php?

define('HTTP_SERVER', '');
define('HTTP_IMAGE', '');
define('HTTP_ADMIN', '');

define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');

// DIR
define('DIR_APPLICATION', '/home/xxx/public_html/catalog/');
define('DIR_SYSTEM', '/home/xxx/public_html/system/');
define('DIR_DATABASE', '/home/xxx/public_html/system/database/');
define('DIR_LANGUAGE', '/home/xxx/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/xxx/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/xxx/public_html/system/config/');
define('DIR_IMAGE', '/home/xx/public_html/image/');
define('DIR_CACHE', '/home/onitsportsoc/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/onitsportsoc/public_html/download/');
define('DIR_LOGS', '/home/onitsportsoc/public_html/system/logs/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxx');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'xxxxx');
define('DB_PREFIX', 'oc_cart');



Fri Oct 28, 2016 5:41 pm

Post by IP_CAM » Sat Oct 29, 2016 6:27 pm

In OC-2.2, at least, a typical (root) config.php PATH content would usually look like this

Code: Select all

// DIR
define('DIR_APPLICATION', '/home/jacobch/www/bigmax/oc22/catalog/');
define('DIR_SYSTEM', '/home/jacobch/www/bigmax/oc22/system/');
define('DIR_IMAGE', '/home/jacobch/www/bigmax/oc22/image/');
define('DIR_LANGUAGE', '/home/jacobch/www/bigmax/oc22/catalog/language/');
define('DIR_TEMPLATE', '/home/jacobch/www/bigmax/oc22/catalog/view/theme/');
define('DIR_CONFIG', '/home/jacobch/www/bigmax/oc22/system/config/');
define('DIR_CACHE', '/home/jacobch/www/bigmax/oc22/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/jacobch/www/bigmax/oc22/system/storage/download/');
define('DIR_LOGS', '/home/jacobch/www/bigmax/oc22/system/storage/logs/');
define('DIR_UPLOAD', '/home/jacobch/www/bigmax/oc22/system/storage/upload/');
and also contains additional DB Fields:

Code: Select all

define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_cart');
But other than that, it may not be as easy as you figured, in the first place, trying to UPGRADE a basically
un-upgradable 1.5.6.x Version and it's DB, therefore, other problems possibly still exist, besides of the config.php content.
Good Luck!

OpenCart LIGHT
OpenCart V-PRO
V-PRO Multi Theme View:
Free Github OC Downloads:
1'900+ FREE OC Extensions from the world's largest Github OC Archive.

User avatar
Legendary Member


Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 9 guests