Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dataBASE PROBLEM


squarebanana

Recommended Posts

Posted

Hi all i am getting this problem when trying to log in to admin section

 

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) in /mounted-storage/home81c/sub006/sc45247-MQSG/toolcentreonline.co.uk/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

everything seems fine in the database section anyone any ideas hte sites working fine just get this when going to admin

 

thanks

Alan

 

 

ok sorted it note to ones self ........read the bl**** forums first LOL

Posted

now i have the log in screen up i am getting this error when i try to log in

 

http://localhost/newt/admin/login.php?action=process&osCAdminID=6c97287d2f745cea91dbbb9ab288c642

 

this has got me really confused

 

Alan

 

We're not seeing the error you're getting now. But, something to check. You say the public side of the website is working fine, compare the public /catalog/includes/configure.php and the admin /catalog/admin/includes/configure.php. Make sure both are using the same values in the database connection section. BACKUP FIRST....If they're the different change the admin values to match the public values, if they're the same try posting the text of error you're getting.

 

Good luck,

Frank

Posted

Hi I sorted the local host thing out, it was a copied configure.php from a template and half the stuff was wrong.

 

now i have another problem

 

images not showing in admin, there uploading to the server and products are showing i just cant seem to get the images showing in admin i have tried different paths for the images directory in configure.php in admin but still to no avail.

 

i installeed the latest version of oscommerce manually, and did away with the catalog directory is its installed at the root, i sorted the problem with the error /catalog/images directory doesnt exist, but i still cant figure out the images path for the admin, i have it set as an images folder off the route and all the oscommerce images are there and working for the store. but i cant get the admin section to find them, which is the same as in the main configure.php file in includes off the root.

 

in configure.php (includes and admin>includes have it as 'images/

 

anyone help with this as ive not much hair left LOL

 

Alan

SB

Posted

Hi I sorted the local host thing out, it was a copied configure.php from a template and half the stuff was wrong.

 

now i have another problem

 

images not showing in admin, there uploading to the server and products are showing i just cant seem to get the images showing in admin i have tried different paths for the images directory in configure.php in admin but still to no avail.

 

i installeed the latest version of oscommerce manually, and did away with the catalog directory is its installed at the root, i sorted the problem with the error /catalog/images directory doesnt exist, but i still cant figure out the images path for the admin, i have it set as an images folder off the route and all the oscommerce images are there and working for the store. but i cant get the admin section to find them, which is the same as in the main configure.php file in includes off the root.

 

in configure.php (includes and admin>includes have it as 'images/

 

anyone help with this as ive not much hair left LOL

 

Alan

SB

 

Hi,

Do a right-cliok on one of the images that aren't showing....make sure the address(URL) is showing as domain.com/admin/image-name.jpg (something like that). If it's on a local server and not the internet it may be localhost/admin/image-name.jpg. You mainly want to make sure that you /'s between the domain and 'admin' and between 'admin' and the file name. If not, look at /admin/includes/configure.php and make sure the DIR_WS_ADMIN value is '/admin/'.

 

Frank

Posted

Thanks for taking the time out Frank to answer me i sorted the problem, i did an autoinstall on another domain of RC1 outdated i know but thats all my host has, then i worked out the config file compared to my own, there were quite a few mistakes rearding the admin root address and the root of the shared server i am on

anyway its good to go now (i hope)

 

thanks

Alan SB

  • 3 weeks later...

Archived

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

×
×
  • Create New...