Post by ituzd » 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

Newbie

Posts

Joined
Thu Apr 18, 2024 5:20 pm

Post by Cue4cheap » Thu Apr 18, 2024 8:45 pm

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

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by hpwebdesign » Thu Apr 25, 2024 12:26 pm

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.

HP Web Design
Powering Digital Commerce | http://hpwebdesign.io | http://opencart.id
Opencart Professional Services | Create OpenCart Online Store | OpenCart Tutorials


User avatar
Active Member

Posts

Joined
Wed Aug 15, 2018 6:58 am
Location - Yogyakarta

Post by aristides86 » Mon Jan 20, 2025 1:50 am

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.

Newbie

Posts

Joined
Mon Jan 20, 2025 1:44 am

Post by Johnathan » Mon Jan 20, 2025 11:31 pm

OpenCart has two config.php files:

/config.php
/admin/config.php

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by aristides86 » Tue Jan 21, 2025 5:01 pm

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.

Newbie

Posts

Joined
Mon Jan 20, 2025 1:44 am

Post by by mona » Tue Jan 21, 2025 5:41 pm

Thanks for getting back with your solution.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: No registered users and 1 guest