Page 1 of 1

Cannot get to install process

Posted: Mon Sep 15, 2008 11:17 pm
by benwiggy
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.

Re: Cannot get to install process

Posted: Tue Sep 16, 2008 12:47 am
by bruce
Make sure that your config.php files are empty and run the installation again.

Re: Cannot get to install process

Posted: Tue Sep 16, 2008 5:23 am
by hm2k
I recommend you get the version from the SVN.

Re: Cannot get to install process

Posted: Tue Sep 16, 2008 10:12 pm
by david.gilbert
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