RENO1977 Posted May 31, 2005 Share Posted May 31, 2005 getting a few errors that are driving me nuts...this is the 3rd time ive reinstalled due to errors i couldnt figure out... 1. when people try to register, this happens: Warning: Cannot modify header information - headers already sent by (output started at /home/james/public_html/includes/languages/english.php:340) in /home/james/public_html/includes/functions/general.php on line 29 though, when i press the "back" button, i am logged in!! 2. when i try to access admin this happens: Warning: mysql_connect(): Access denied for user: 'jadore_osc1@localhost' (Using password: YES) in /home/james/public_html/admin/includes/functions/database.php on line 19 Unable to connect to database server! 3. when i add a product to cart (both as registered and unregistered) this happens: Warning: Cannot modify header information - headers already sent by (output started at /home/james/public_html/includes/languages/english.php:340) in /home/james/public_html/includes/functions/general.php on line 29 though when i press the "back" button, the item is in the cart!!! are conflicting headers being sent from 2 different files? i cant figure out what the problem is after 6 days of tinkering, forum searching, wiki searching etc... >_< the url is www.citycyde.com Link to comment Share on other sites More sharing options...
crash3903 Posted May 31, 2005 Share Posted May 31, 2005 have you installed any contributions recently - if you have make sure the files edited have no blank lines at the top and bottom of the file regards Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
Dada1 Posted May 31, 2005 Share Posted May 31, 2005 Cannot modify header information - headers already sent by is caused by white space. Go to home/james/public_html/includes/functions/general.php and delete any extra space at the bottom of the file. check your config file and make sure all the information is correct for the MySQL issues. Link to comment Share on other sites More sharing options...
RENO1977 Posted June 2, 2005 Author Share Posted June 2, 2005 there arent any spaces at the beginning or end :( Link to comment Share on other sites More sharing options...
FalseDawn Posted June 2, 2005 Share Posted June 2, 2005 The error is whitespace at the end of your english.php file, after the last ?> Link to comment Share on other sites More sharing options...
RENO1977 Posted June 2, 2005 Author Share Posted June 2, 2005 aha found it...only 1 space, but guess it was enough still getting this error tho: Warning: mysql_connect(): Access denied for user: 'jadore_osc1@localhost' (Using password: YES) in /home/james/public_html/admin/includes/functions/database.php on line 19 Unable to connect to database server! is it b/c my password is wrong for the user, or is there a problem accessing the mysql database itself? i checked line 19 and all looked good...it was all working fine a week ago, and i never touched /home/james/public_html/admin/includes/functions/database.php eek! next time i'll just stick to html and add a simple shopping cart function on he side :( if i could just get this sql error straightened out, i will quit while i'm ahead and keep the store as is...if my msn would be easier, let me know and i'll send it to you in a pm thanks for all the help so far :thumbsup: almost thereeeeee Link to comment Share on other sites More sharing options...
FalseDawn Posted June 2, 2005 Share Posted June 2, 2005 catalog/includes/configure.php define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'blahblah'); define('DB_SERVER_PASSWORD', 'blahblah'); define('DB_DATABASE', 'blahblah'); (and the same in catalog/admin/includes/configure.php Just make sure the DB_DATABASE is the name of your MySQL database, and the username and password match a valid account in this database. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.