coves Posted April 2, 2008 Share Posted April 2, 2008 I just moved over to a new server, moved all my files, everything is working, databases and all but I get this error when trying to log into my admin area. ******** Warning: require(includes/functions/database.php) [function.require]: failed to open stream: No such file or directory in /home/mywebsite/public_html/modshopplace/admin/includes/application_top.php on line 103 Fatal error: require() [function.require]: Failed opening required 'includes/functions/database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mywebsite/public_html/modshopplace/admin/includes/application_top.php on line 103 ******** Any suggestions? Coves Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2008 Share Posted April 2, 2008 could be various things, i would find out though if php version is the same Link to comment Share on other sites More sharing options...
coves Posted April 15, 2008 Author Share Posted April 15, 2008 I just moved over to a new server, moved all my files, everything is working, databases and all but I get this error when trying to log into my admin area. ******** Warning: require(includes/functions/database.php) [function.require]: failed to open stream: No such file or directory in /home/mywebsite/public_html/modshopplace/admin/includes/application_top.php on line 103 Fatal error: require() [function.require]: Failed opening required 'includes/functions/database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mywebsite/public_html/modshopplace/admin/includes/application_top.php on line 103 ******** Any suggestions? Coves I am still stuck with this, I think it is in the configuration.php file, the database had to be renamed when it was moved over, this worked in the includes\configuration.php area but is not working in the admin\includes\configuration.php file, it's as if the password and database names are different, but I have tried everything I can think of.... Link to comment Share on other sites More sharing options...
markg-uk Posted April 15, 2008 Share Posted April 15, 2008 why don't you post the configure files (minus passwords) so we can take a look (and also line 103 of application_top.php from the admin dir) Link to comment Share on other sites More sharing options...
coves Posted April 15, 2008 Author Share Posted April 15, 2008 Here is the admin/includes/configure.php file // define our database connection define('DB_SERVER', '127.0.0.1'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'mypassword'); define('DB_SERVER_PASSWORD', 'mypassword'); define('DB_DATABASE', 'my_database'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Here is line 19 per the error that I receive when I try to access the admin area. function tep_db_connect($server = DB_SERVER, $username = 'covetime', $password = 'wad2006', $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'false') { (19) $$link = mysql_pconnect($server, $username, $password); Thanks very much! Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted April 15, 2008 Share Posted April 15, 2008 Nice one, hid your password at the top of the post and then showed it at the bottom. Might be a good idea to change it in phpmy admin and your 2 configure.php files. If that is all that is in your config file that explains the problem. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
coves Posted April 18, 2008 Author Share Posted April 18, 2008 Good catch, I guess I am typing faster than I am thinking (I changed the password). Still missing something, I have went over and over the password areas in the configure.php and they are the same. The result from the browser appears to still be pointing to a password issue.... Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'covetime'@'localhost' (using password: YES) in /home/covetime/public_html/modshop/admin/includes/functions/database.php on line 17 Unable to connect to database server! Thanks... Nice one, hid your password at the top of the post and then showed it at the bottom. Might be a good idea to change it in phpmy admin and your 2 configure.php files. If that is all that is in your config file that explains the problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.