Post by benwiggy » Mon Sep 15, 2008 11:17 pm

Uploaded OpenCart to my website
Created MySQL database
Changed Unix permissions to 777
Pointed web browser at mydomain/shop/ (real address not given here)
Get the following error:

Code: Select all

Notice: Use of undefined constant DIR_LIBRARY - assumed 'DIR_LIBRARY' in ..../shop/index.php on line 37

Warning: main(DIR_LIBRARYlocator.php) [function.main]: failed to open stream: No such file or directory in .../shop/index.php on line 37

Warning: main(DIR_LIBRARYlocator.php) [function.main]: failed to open stream: No such file or directory in ..../shop/index.php on line 37

Warning: main(DIR_LIBRARYlocator.php) [function.main]: failed to open stream: No such file or directory in ..../shop/index.php on line 37

Fatal error: main() [function.require]: Failed opening required 'DIR_LIBRARYlocator.php' ..../shop/index.php on line 37
Line 37 reads:
require(DIR_LIBRARY . 'locator.php');
There is no file called locator.php in the OpenCart package.

Newbie

Posts

Joined
Mon Sep 15, 2008 11:10 pm

Post by bruce » Tue Sep 16, 2008 12:47 am

Make sure that your config.php files are empty and run the installation again.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by hm2k » Tue Sep 16, 2008 5:23 am

I recommend you get the version from the SVN.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by david.gilbert » Tue Sep 16, 2008 10:12 pm

I think your not actually triggering the installer..

did you go to yourdomain.com/shop/install/ or just yourdomain.com/shop/?

The error you speak of is because the installer has not yet been run and I'd suggest that it is because you have not gone direct to the install directory.

It's a flaw but opencart does not check if it's installed and automatically re-direct to the install directory if it is not.

-Dave

Professional Website Services - http://www.davidmgilbert.com/


Active Member

Posts

Joined
Sun Jan 06, 2008 5:02 pm
Location - Mount Compass, South Australia
Who is online

Users browsing this forum: No registered users and 3 guests