Page 1 of 1

[SOLVED]Upgrade gone bad

Posted: Sat Dec 13, 2014 12:47 pm
by mtechmi
Hello.

I upgraded my Opencart to the newest version and I get this error:

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 51

Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in /home/jaddbrax/public_html/system/startup.php on line 57

Then the regular screen appears. If I try to login as admin, when it lets me in, I just get this list of errors (the same one as above). Help.

Re: Upgrade gone bad

Posted: Sat Dec 13, 2014 7:08 pm
by villagedefrance
Yes, the upgrading routine is not quite ready yet. That's why this happens.

To fix it, you need to "define" DIR_MODIFICATION in your config.php files.

- Open both your "config.php" files from your server in a text editor (Notepad++);
- Add the following line in both of them:

Code: Select all

define('DIR_MODIFICATION', '/public_html/system/modification/');
- upload back your 2 "config.php" modified.

I haven't really tested but it should resolve the errors.

Re: Upgrade gone bad

Posted: Sun Dec 14, 2014 2:51 am
by mtechmi
villagedefrance wrote:Yes, the upgrading routine is not quite ready yet. That's why this happens.

To fix it, you need to "define" DIR_MODIFICATION in your config.php files.

- Open both your "config.php" files from your server in a text editor (Notepad++);
- Add the following line in both of them:

Code: Select all

define('DIR_MODIFICATION', '/public_html/system/modification/');
- upload back your 2 "config.php" modified.

I haven't really tested but it should resolve the errors.
Thanks! That fixed it!

Re: [SOLVED]Upgrade gone bad

Posted: Sun Dec 14, 2014 3:27 am
by villagedefrance
No problem. Happy to help.

Re: [SOLVED]Upgrade gone bad

Posted: Wed Feb 25, 2015 3:55 am
by platiniumhost
Hello,

thanks you, web site is perfect now !!

Re: [SOLVED]Upgrade gone bad

Posted: Thu Jul 23, 2015 5:56 pm
by bagde
Thanks a lot. This solves all my errors and issues.

Re: [SOLVED]Upgrade gone bad

Posted: Wed Jun 24, 2020 4:19 am
by qasimabbas209

Code: Select all

Notice: Use of undefined constant DIR_STORAGE - assumed 'DIR_STORAGE' in /home/gup3rseewesa/public_html/system/startup.php on line 63

Warning: require_once(DIR_STORAGEvendor/autoload.php): failed to open stream: No such file or directory in /home/gup3rseewesa/public_html/system/startup.php on line 63

Fatal error: require_once(): Failed opening required 'DIR_STORAGEvendor/autoload.php' (include_path='.:/opt/alt/php71/usr/share/pear') in /home/gup3rseewesa/public_html/system/startup.php on line 63
same error please give me a anwser.

Re: [SOLVED]Upgrade gone bad

Posted: Wed Jun 24, 2020 5:16 am
by straightlight
qasimabbas209 wrote:
Wed Jun 24, 2020 4:19 am

Code: Select all

Notice: Use of undefined constant DIR_STORAGE - assumed 'DIR_STORAGE' in /home/gup3rseewesa/public_html/system/startup.php on line 63

Warning: require_once(DIR_STORAGEvendor/autoload.php): failed to open stream: No such file or directory in /home/gup3rseewesa/public_html/system/startup.php on line 63

Fatal error: require_once(): Failed opening required 'DIR_STORAGEvendor/autoload.php' (include_path='.:/opt/alt/php71/usr/share/pear') in /home/gup3rseewesa/public_html/system/startup.php on line 63
same error please give me a anwser.
See this post: viewtopic.php?f=199&t=198781&p=699560#p699560 .