Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[b]Unable to connect to database server!


GAZADI

Recommended Posts

i amn't php developer so i need help to connect database.

i already create the catalog database in mysql. but i having problme connecting to database through scripts. i have installed odbc.. which file do i need add path for connection. right now i am gettig following error.. thanks

 

 

 

Notice: Undefined variable: DOCUMENT_ROOT in c:inetpubwwwrootcatalogincludesapplication_top.php on line 18

Unable to connect to database server![/b]

Link to comment
Share on other sites

i fixed the connection problme but gettit all this error

http://localhost/catalog/

 

Notice: Undefined variable: DOCUMENT_ROOT in c:inetpubwwwrootcatalogincludesapplication_top.php on line 18

 

Notice: Use of undefined constant SID - assumed 'SID' in c:inetpubwwwrootcatalogincludesapplication_top.php on line 183

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:inetpubwwwrootcatalogincludesapplication_top.php:18) in c:inetpubwwwrootcatalogincludesfunctionssessions.php on line 4

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:inetpubwwwrootcatalogincludesapplication_top.php:18) in c:inetpubwwwrootcatalogincludesfunctionssessions.php on line 4

 

Notice: Undefined variable: cart in c:inetpubwwwrootcatalogincludesapplication_top.php on line 196

 

Notice: Constant PREV_NEXT_BAR_LOCATION already defined in c:inetpubwwwrootcatalogincludesapplication_top.php on line 205

 

Notice: Undefined variable: language in c:inetpubwwwrootcatalogincludesapplication_top.php on line 212

 

Notice: Undefined variable: language in c:inetpubwwwrootcatalogincludesapplication_top.php on line 213

 

Notice: Undefined index: language in c:inetpubwwwrootcatalogincludesapplication_top.php on line 215

 

Notice: Undefined variable: currency in c:inetpubwwwrootcatalogincludesapplication_top.php on line 220

 

Notice: Undefined variable: currency in c:inetpubwwwrootcatalogincludesapplication_top.php on line 221

 

Notice: Undefined index: currency in c:inetpubwwwrootcatalogincludesapplication_top.php on line 223

 

Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in c:inetpubwwwrootcatalogincludeslanguagesenglish.php on line 12

 

Notice: Undefined index: action in c:inetpubwwwrootcatalogincludesapplication_top.php on line 244

 

Notice: Undefined index: cPath in c:inetpubwwwrootcatalogincludesapplication_top.php on line 289

 

Notice: Undefined index: manufacturers_id in c:inetpubwwwrootcatalogincludeslanguagesenglishdefault.php on line 13

Link to comment
Share on other sites

but getting all this error message now

what is this DOCUMENT_ROOT

 

Notice: Undefined variable: DOCUMENT_ROOT in c:inetpubwwwrootcatalogincludesapplication_top.php on line 18

 

Notice: Use of undefined constant SID - assumed 'SID' in c:inetpubwwwrootcatalogincludesapplication_top.php on line 183

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:inetpubwwwrootcatalogincludesapplication_top.php:1 in c:inetpubwwwrootcatalogincludesfunctionssessions.php on line 4

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:inetpubwwwrootcatalogincludesapplication_top.php:1 in c:inetpubwwwrootcatalogincludesfunctionssessions.php on line 4

Link to comment
Share on other sites

Check your /includes/configure.php files.

 

Do you have a reference to DOCUMENT_ROOT?

 

Is there a $ in front of that like $DOCUMENT_ROOT ... is you are using it there should be.

 

Note: the better thing to use than $DOCUMENT_ROOT is your actual path.

Example:

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...