Post by Runes » Tue Jan 18, 2022 5:43 am

Hello, people; I'm trying to upgrade.
Not too bad, only one error message pops up (There was a page, but changing PhP-version removed those.).

Fatal error: Uncaught Error: Undefined constant "DIR_MODIFICATION" in /customers/0/b/8/cstc5lpha/webroots/r438793/system/startup.php:51
Stack trace: #0 /customers/0/b/8/cstc5lpha/webroots/r438793/system/startup.php(90): modification('/customers/0/b/...') #1 /customers/0/b/8/cstc5lpha/webroots/r438793/index.php(17): require_once('/customers/0/b/...') #2 {main} thrown in /customers/0/b/8/cstc5lpha/webroots/r438793/system/startup.php on line 51

I've read some.... Maybe I can do some editing, and that's it?
But I'm not sure- is it only one error mentioned in this text, or???
Maybe one day I'll figure out.
Thanks for input.

New member

Posts

Joined
Tue Jul 17, 2012 6:26 pm

Post by ADD Creative » Tue Jan 18, 2022 5:48 am

Do your have the following line in your config,php?

Code: Select all

define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Runes » Wed Jan 19, 2022 3:05 am

Hello, Creative.

After checking: NO it's not in the config.php. The file was left untouched, as advised upon upgrading.

Should it be in the "// DIR"- secttion, maybe?

BTW: OpenCart 3.0.3.8 and php 8.1.

Thank you for support!

RS

New member

Posts

Joined
Tue Jul 17, 2012 6:26 pm

Post by ADD Creative » Wed Jan 19, 2022 6:04 am

Yes, it should in the //DIR section.

Just make sure it's somewhere after.

Code: Select all

define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
Add it to admin/config.php as well.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Runes » Wed Jan 19, 2022 5:43 pm

Thank you- I will make a try.

Else I need to build the store from scratch, however I do not know how I can save customers and products and get it all transfered to the new store. Maybe I can do that using my FTP client; If I only knew what files are involved. Maybe I can figure if the upgrading fails.

Thanks again.

New member

Posts

Joined
Tue Jul 17, 2012 6:26 pm

Post by Runes » Wed Jan 19, 2022 6:00 pm

Ofcourse... one updated file reveals more fults. Albeit of the same type. Definitions missing. I will need to dig further.

Fatal error: Uncaught Error: Undefined constant "DB_PORT" in /customers/0/b/8/cstc5lpha/webroots/r438793/system/config/admin.php:13 Stack trace: #0 /customers/0/b/8/cstc5lpha/webroots/r438793/system/library/config.php(59): require() #1 /customers/0/b/8/cstc5lpha/webroots/r438793/system/framework.php(8): Config->load('admin') #2 /customers/0/b/8/cstc5lpha/webroots/r438793/system/startup.php(104): require_once('/customers/0/b/...') #3 /customers/0/b/8/cstc5lpha/webroots/r438793/admin/index.php(19): start('admin') #4 {main} thrown in /customers/0/b/8/cstc5lpha/webroots/r438793/system/config/admin.php on line 13

New member

Posts

Joined
Tue Jul 17, 2012 6:26 pm

Post by ADD Creative » Wed Jan 19, 2022 6:09 pm

You need the following in config.php under the // DB section.

Code: Select all

define('DB_PORT', '3306');

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Runes » Thu Jan 20, 2022 5:25 am

Thank you.

I have found the problem, but not solved it completely yet.

At one time I upgraded. And, the "new" store is placed in between all the "normal" opencart- folders from the old store. It has all the above definitions. So; I will upgrade my "new" store and see if it runs as it should. The mistakes made me see more clearly. Good.
However; completely understand I have neglected keeping track of things, and it's hitting me hard back- right in the face.

I need all the luck I can find to get it running.
Thanks again, and if I can pinpoint a problem, I'll post up new questions.

New member

Posts

Joined
Tue Jul 17, 2012 6:26 pm
Who is online

Users browsing this forum: No registered users and 50 guests