gameessentials Posted December 13, 2006 Posted December 13, 2006 I have just changed server and after uploading my old site and database to it im getting the below message when i try to view the site Parse error: parse error, unexpected '.', expecting ')' in /homepages/13/d189335800/htdocs/catalog/includes/functions/database.php on line 13 My configure files are correctly setup with the correct usernames, passwords etc.. for the new sql databse i created. Everything from the admin side works and is connecting to the database but the main pages dont. Can someone help me please?
porpoise1954 Posted December 13, 2006 Posted December 13, 2006 I have just changed server and after uploading my old site and database to it im getting the below message when i try to view the site Parse error: parse error, unexpected '.', expecting ')' in /homepages/13/d189335800/htdocs/catalog/includes/functions/database.php on line 13 My configure files are correctly setup with the correct usernames, passwords etc.. for the new sql databse i created. Everything from the admin side works and is connecting to the database but the main pages dont. Can someone help me please? We can try to help you but we will need some code in order to find the error. Please copy & paste the code from the beginning of the file down to and including line 13. That way, we won't need to try and use our crystal balls ;-) * * * * * * * * * * * * * * * * * * * * * Porpoises are most happy when wet! \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _
gameessentials Posted December 13, 2006 Author Posted December 13, 2006 This is from the database.php function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; I dont think there is anything wrong with this file. My configure files seem correct and the admin side of it works.
porpoise1954 Posted December 13, 2006 Posted December 13, 2006 This is from the database.php function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; I dont think there is anything wrong with this file. My configure files seem correct and the admin side of it works. I've just looked at the database file and you're quite correct - the problem does not lie in that file at all (it just manifests itself there). The error is in the file calling the database.php file: It has a missing ) in the file somewhere. It could be anywhere in the file so it's hunt the needle I'm afraid. * * * * * * * * * * * * * * * * * * * * * Porpoises are most happy when wet! \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _
gameessentials Posted December 13, 2006 Author Posted December 13, 2006 Thanks for your help. Problem solved now. I got www.oshelpers.com to fix it for me, Id recommend them to anyone stressing over a problem.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.