gammada Posted March 4, 2007 Share Posted March 4, 2007 Yesterday I found an error on my page that my hosting provider said was due to a corrupt database. After repairing the database everything went fine for a few hours but then the following error started to appear on my main page: Parse error: parse error, unexpected $ in /home/leslibro/public_html/catalog/index.php on line 1 This time I was told that my file was corrupt and that I should upload it again. Also, they mentioned that did a modification to that file yesterday -which I did not. After uploading the file 3 times all I see on my store is a blank page!! Anyone knows what's going on here? Please help me! Link to comment Share on other sites More sharing options...
Guest Posted March 4, 2007 Share Posted March 4, 2007 You have a bad command somewhere did you add anything to the application_top.php or the config.php or the language.php file in the past few days ? Also please post url. Yesterday I found an error on my page that my hosting provider said was due to a corrupt database. After repairing the database everything went fine for a few hours but then the following error started to appear on my main page: Parse error: parse error, unexpected $ in /home/leslibro/public_html/catalog/index.php on line 1 This time I was told that my file was corrupt and that I should upload it again. Also, they mentioned that did a modification to that file yesterday -which I did not. After uploading the file 3 times all I see on my store is a blank page!! Anyone knows what's going on here? Please help me! Link to comment Share on other sites More sharing options...
jonquil Posted March 4, 2007 Share Posted March 4, 2007 I see this: 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] From the knowledge base: http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/69 1046 - No Database Selected This indicates that either no database has been created or the wrong database name DB_DATABASE exists in the configure.php files. select configuration_key as cfgKey, configuration_value as cfgValue from configuration 1046 - No Database Selected Solution Check to make sure the database has been created and the catalog/includes/configure.php and catalog/admin/includes/configure.php files for correct database name. jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
Guest Posted March 4, 2007 Share Posted March 4, 2007 your includes/config.php file or your admin/includes/config.php file doesn't have the right database information. Could be the location dbusername dbpassword or the dbname you need to look and see if it is correct. I see this: 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] From the knowledge base: http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/69 1046 - No Database Selected This indicates that either no database has been created or the wrong database name DB_DATABASE exists in the configure.php files. select configuration_key as cfgKey, configuration_value as cfgValue from configuration 1046 - No Database Selected Solution Check to make sure the database has been created and the catalog/includes/configure.php and catalog/admin/includes/configure.php files for correct database name. jon Link to comment Share on other sites More sharing options...
gammada Posted March 5, 2007 Author Share Posted March 5, 2007 Thank you very much for having a look at this. The store appears to be operating back at normal now but tech support at my hosting company claims that my application -meaning osCommerce- is corrupting my database! All the mods that I've done on that store have been working there for the past 2 years without any problems. There's nothing new added except for new products and the index page which was modified at the beginning of February. How could this be? BTW the url is: www.leslibros.com/catalog Link to comment Share on other sites More sharing options...
jonquil Posted March 5, 2007 Share Posted March 5, 2007 The people at your hosting service need to hear ¡Estás despedido! Just a thought: Have you changed the name of your data base to something other than oscommerce? Maybe, if you're on a shared server, some wires are getting crossed. jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
gammada Posted March 5, 2007 Author Share Posted March 5, 2007 The people at your hosting service need to hear ¡Estás despedido! Just a thought: Have you changed the name of your data base to something other than oscommerce? Maybe, if you're on a shared server, some wires are getting crossed. jon Nope, I have not. There's a couple of databases there: one for osCommerce and another for PHPbb but I've done nothing to them except repairing the osCommerce one yesterday. I suspect just as you that someone needs to hear that! BTW Watch out for Lostroute, em, meant Hostroute.com! Link to comment Share on other sites More sharing options...
jonquil Posted March 5, 2007 Share Posted March 5, 2007 You might consider changing the name. I don't know is that will help but it couldn't hurt :) jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.