Post by wickedcaffeine » Tue Nov 24, 2020 4:52 am

Hi,

I am running into the following error when trying to upgrade opencart (by visiting /install dir)

Code: Select all

Fatal error: Uncaught Error: Call to a member function query() on null in /home2/coffeean/stage2.coffeeandtea.co.za/catalog/model/design/layout.php:4 Stack trace: #0 /home2/coffeean/systemstore2/engine/loader.php(248): ModelDesignLayout->getLayout('common/home') #1 /home2/coffeean/systemstore2/engine/proxy.php(47): Loader->{closure}(Array, Array) #2 /home2/coffeean/stage2.coffeeandtea.co.za/catalog/controller/common/column_left.php(35): Proxy->__call('getLayout', Array) #3 /home2/coffeean/systemstore2/engine/action.php(79): ControllerCommonColumnLeft->index(Array) #4 /home2/coffeean/systemstore2/engine/loader.php(48): Action->execute(Object(Registry), Array) #5 /home2/coffeean/stage2.coffeeandtea.co.za/catalog/controller/error/not_found.php(38): Loader->controller('common/column_l...') #6 /home2/coffeean/systemstore2/engine/action.php(79): ControllerErrorNotFound->index() #7 /home2/coffeean/systemstore2/engine/router.php(67): Action->execute(Object(Registry)) #8 /home2/coffeean/systemstore2/engine/router.php(56): Router-> in /home2/coffeean/stage2.coffeeandtea.co.za/catalog/model/design/layout.php on line 4
I have googled my behind off and cant seem to find how to go about fixing this.

Any help would be greatly appreciated. Trying to help a friend upgrade his store, he has fallen on tough times and black friday would really help him out


Posts

Joined
Sun Mar 03, 2019 3:00 am

Post by IP_CAM » Tue Nov 24, 2020 6:29 am

/home2/coffeean/systemstore2/engine
Well, that systemstore2 is not a default OC3 system Directory name,
no wonder, that it cannot be found by other file content... :laugh:
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by wickedcaffeine » Tue Nov 24, 2020 5:02 pm

I did update the index.php in the install directory to reflect the correct dir mappings

define('DIR_OPENCART', '/home2/coffeean/stage2.coffeeandtea.co.za/');
define('DIR_APPLICATION', '/home2/coffeean/stage2.coffeeandtea.co.za/catalog/');
define('DIR_SYSTEM', '/home/coffeean/systemstore2/');
define('DIR_DATABASE', '/home/coffeean/systemstore2/database/');
define('DIR_LANGUAGE', '/home2/coffeean/stage2.coffeeandtea.co.za/catalog/language/');
define('DIR_TEMPLATE', '/home2/coffeean/stage2.coffeeandtea.co.za/catalog/view/theme/');
define('DIR_CONFIG', '/home/coffeean/systemstore2/config/');
define('DIR_IMAGE', '/home2/coffeean/stage2.coffeeandtea.co.za/image/');
define('DIR_STORAGE','/home/coffeean/systemstore2/storage/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');

Does the upgrade script not use these constants ?


Posts

Joined
Sun Mar 03, 2019 3:00 am

Post by EvolveWebHosting » Tue Nov 24, 2020 11:45 pm

wickedcaffeine wrote:
Tue Nov 24, 2020 5:02 pm
I did update the index.php in the install directory to reflect the correct dir mappings

define('DIR_OPENCART', '/home2/coffeean/stage2.coffeeandtea.co.za/');
define('DIR_APPLICATION', '/home2/coffeean/stage2.coffeeandtea.co.za/catalog/');
define('DIR_SYSTEM', '/home/coffeean/systemstore2/');
define('DIR_DATABASE', '/home/coffeean/systemstore2/database/');
define('DIR_LANGUAGE', '/home2/coffeean/stage2.coffeeandtea.co.za/catalog/language/');
define('DIR_TEMPLATE', '/home2/coffeean/stage2.coffeeandtea.co.za/catalog/view/theme/');
define('DIR_CONFIG', '/home/coffeean/systemstore2/config/');
define('DIR_IMAGE', '/home2/coffeean/stage2.coffeeandtea.co.za/image/');
define('DIR_STORAGE','/home/coffeean/systemstore2/storage/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');

Does the upgrade script not use these constants ?
I hope that you meant to say that you updated the config.php files? Do not update the index.php file with this particular information. This does not look right at all: /home/coffeean/systemstore2/

I would suggest making a post in the commercial support section to have a qualified developer take a look at this for you.

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: OSWorX, paola_84, Semrush [Bot] and 53 guests