Post by mtechmi » Sat Dec 13, 2014 12:47 pm

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.

Newbie

Posts

Joined
Sat Dec 13, 2014 12:45 pm

Post by villagedefrance » Sat Dec 13, 2014 7:08 pm

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.

OpenCart custom solutions @ https://villagedefrance.net


User avatar
Active Member

Posts

Joined
Wed Oct 13, 2010 10:35 pm
Location - UK

Post by mtechmi » Sun Dec 14, 2014 2:51 am

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!

Newbie

Posts

Joined
Sat Dec 13, 2014 12:45 pm

Post by villagedefrance » Sun Dec 14, 2014 3:27 am

No problem. Happy to help.

OpenCart custom solutions @ https://villagedefrance.net


User avatar
Active Member

Posts

Joined
Wed Oct 13, 2010 10:35 pm
Location - UK

Post by platiniumhost » Wed Feb 25, 2015 3:55 am

Hello,

thanks you, web site is perfect now !!

Newbie

Posts

Joined
Wed Feb 25, 2015 3:37 am

Post by bagde » Thu Jul 23, 2015 5:56 pm

Thanks a lot. This solves all my errors and issues.

Newbie

Posts

Joined
Wed Jul 22, 2015 5:54 pm

Post by qasimabbas209 » 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.

Newbie

Posts

Joined
Wed Jun 24, 2020 4:14 am

Post by straightlight » Wed Jun 24, 2020 5:16 am

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 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 44 guests