Page 1 of 1

Fatal Error

Posted: Thu Apr 18, 2024 5:23 pm
by ituzd
Hello,
I`ve been trying to install opencart on xampp to make some tests.
After i`ve put the database and files in xampp folder, while using localhost I see this error:
Fatal error: Uncaught Error: Undefined constant "DIR_SYSTEM" in C:\xamppp\htdocs\esklep\index.php:137 Stack trace: #0 {main} thrown in C:\xamppp\htdocs\esklep\index.php on line 137

Re: Fatal Error

Posted: Thu Apr 18, 2024 8:45 pm
by Cue4cheap
Tell us how you are trying to do the install, and what version, as that shouldn't happen on any of the recent versions for a new install.
Mike

Re: Fatal Error

Posted: Thu Apr 25, 2024 12:26 pm
by hpwebdesign
ituzd wrote:
Thu Apr 18, 2024 5:23 pm
Hello,
I`ve been trying to install opencart on xampp to make some tests.
After i`ve put the database and files in xampp folder, while using localhost I see this error:
Fatal error: Uncaught Error: Undefined constant "DIR_SYSTEM" in C:\xamppp\htdocs\esklep\index.php:137 Stack trace: #0 {main} thrown in C:\xamppp\htdocs\esklep\index.php on line 137
Try to check your config.php make sure every path is correct.

Re: Fatal Error

Posted: Mon Jan 20, 2025 1:50 am
by aristides86
Try to check your config.php make sure every path is correct.
Which config.php? There's a dozen of config.php files inside xampp folder. I have the same issue and it is extremely frustraiting for someone who's not technically literate.

Re: Fatal Error

Posted: Mon Jan 20, 2025 11:31 pm
by Johnathan
OpenCart has two config.php files:

/config.php
/admin/config.php

Re: Fatal Error

Posted: Tue Jan 21, 2025 5:01 pm
by aristides86
Thank you. In my case the problem was in permissions. I had no access to write into the opencart folder. It only worked when I set permissions to everyone. For some reason just for admin or mysql users wasn't enough.

Re: Fatal Error

Posted: Tue Jan 21, 2025 5:41 pm
by by mona
Thanks for getting back with your solution.