Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error once installed -


Guest

Recommended Posts

Posted

once installed i get this error when i click on catalog - admin opens correctly...

 

 

Warning: main(includes/functions/database.php) [function.main]: failed to create stream: No such file or directory in /home/augie/public_html/includes/application_top.php on line 50

 

Fatal error: main() [function.main]: Failed opening required 'includes/functions/database.php' (include_path='') in /home/augie/public_html/includes/application_top.php on line 50

 

 

any help?

Posted

Check your catalog/includes/configure.php file to ensure that your path locations are correct (most likely the FS_CATALOG entry).

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

yes, i followed the instructions on installing to my root where FS_CATALOG and FS_DOCUMENTS reads to /home/username/public_html/ now... shouldn't this be so?

 

LIKE THIS :

 

The line in the configure.php :

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 

can be changed to :

 

define('DIR_WS_CATALOG', '/'); // absolute path required

 

and change these lines:

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

to

 

define('DIR_FS_DOCUMENT_ROOT', '/home/serverusername/public_html');

define('DIR_FS_CATALOG', '/home/serverusername/public_html/');

 

Change the /admin/includes/configure.php to match this as well.

Posted

If your Admin side is working do not touch it. ;)

 

Do you have a catalog folder within your public_html folder (i.e. public_html/catalog/) or did you move the files and folders from the catalog folder to your public_html folder?

 

If the former, then you need to have the following entries:

  define('DIR_WS_CATALOG', '/catalog/');

 define('DIR_FS_DOCUMENT_ROOT', '/home/[serverusername]/public_html');

if the latter, then you need:

  define('DIR_WS_CATALOG', '/');

 define('DIR_FS_DOCUMENT_ROOT', '/home/[serverusername]/public_html');

and in both cases you should have:

  define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted
bingo. thanks

 

And to think that you doubted me. ;) LOL

 

Glad to hear that you are up and going. :)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...