Jump to content

Admin errors


Guest DSWK

Recommended Posts

:innocent: Hello Guys,

I am new to Cube Cart. I am helping a friend to develop site. He has registered with one ASP, who allows to use oSCommerce, Cubecart and other commerce shopping cart softwares. My friend wanted to use Cube Cart.

I am developing site on my local machine. So I downloaded (via FTP to ASP), the site. Details are.

Environment : Windows 2000 Professional, with IIS installed.

SQL Server: MYSQL 5

PHP : Version 5

Created virtual directory for this site. So I can access this site locally by using.

Http://localhost/CAEHS/index.php

My global.inc.php file is as follows.

<?php

$glob['dbdatabase'] = 'caehsdb';

$glob['dbhost'] = 'localhost';

$glob['dbpassword'] = 'xxxxxxx';

$glob['dbprefix'] = '';

$glob['dbusername'] = 'caehsadmin';

$glob['installed'] = '1';

$glob['rootDir'] = '/caehsdb/';

$glob['rootRel'] = '/caehsdb';

$glob['storeURL'] = 'http://localhost/caehsdb';

?>

The provider has unix based systems, so there global.inc is different. But that should be irrelevant.

I can login to admin, but when I do, I get all

Warning: main(/caehsdb/classes/db.inc.php) [function.main]: failed to open stream: No such file or directory in .... htdocs\admin\includesauth.inc.php on line 60

Warning: main(/caehsdb/admin/includes/navigation.inc.php) [function.main]: failed to open stream: No such file or directory in ....htdocs\admin\includes\header.inc.php on line 57

Warning: main() [function.include]: Failed opening '/caehsdb/admin/includes/navigation.inc.php' for inclusion (include_path='.;C:\php5\pear') in htdocs\admin\includes\header.inc.php on line 57

I have tried to search within forums and apply several suggestions regarding rootDir and rootRel. But no luck.

Can anyone please help me?

Regards,

DSWK

Link to comment
Share on other sites

My global.inc.php file is as follows.

<?php

$glob['dbdatabase'] = 'caehsdb';

$glob['dbhost'] = 'localhost';

$glob['dbpassword'] = 'xxxxxxx';

$glob['dbprefix'] = '';

$glob['dbusername'] = 'caehsadmin';

$glob['installed'] = '1';

$glob['rootDir'] = '/caehsdb/';

$glob['rootRel'] = '/caehsdb';

$glob['storeURL'] = 'http://localhost/caehsdb';

?>

Try changing the following:

$glob['rootDir'] = 'c:\\inetpub\\wwwroot\\caehsdb';

$glob['rootRel'] = '/caehsdb/';

Link to comment
Share on other sites

roban,

Surely, it was wrong. I am new to this, so have least knowledge. But thank you.

Robsta,

Your solution did work. many thanks to you. Should this be the settings for Windows, IIS based enviroment.

Is this unusual setup, that there is no reference?

Thanks to you all. I will be glad to help other for this issue at least. Got some knowledge now.

Regards,

My global.inc.php file is as follows.

<?php

$glob['dbdatabase'] = 'caehsdb';

$glob['dbhost'] = 'localhost';

$glob['dbpassword'] = 'xxxxxxx';

$glob['dbprefix'] = '';

$glob['dbusername'] = 'caehsadmin';

$glob['installed'] = '1';

$glob['rootDir'] = '/caehsdb/';

$glob['rootRel'] = '/caehsdb';

$glob['storeURL'] = 'http://localhost/caehsdb';

?>

Try changing the following:

$glob['rootDir'] = 'c:\\inetpub\\wwwroot\\caehsdb';

$glob['rootRel'] = '/caehsdb/';

Link to comment
Share on other sites

  • 3 months later...

Hi my admin panel gives me these errors:

Warning: main(/contents5z/classes/db.inc.php) [function.main]: failed to open stream: No such file or directory in /homepages/13/d165971536/htdocs/contents5z/admin/includes/auth.inc.php on line 60

Warning: main() [function.include]: Failed opening '/contents5z/classes/db.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/13/d165971536/htdocs/contents5z/admin/includes/auth.inc.php on line 60

Warning: main(/contents5z/admin/includes/navigation.inc.php) [function.main]: failed to open stream: No such file or directory in /homepages/13/d165971536/htdocs/contents5z/admin/includes/header.inc.php on line 57

Warning: main() [function.include]: Failed opening '/contents5z/admin/includes/navigation.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/13/d165971536/htdocs/contents5z/admin/includes/header.inc.php on line 57

Could someone please help. Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...