View Full Version : 4.2.1 - 500 error on my database but working on a new install
John Diver
02-04-2016, 06:14 PM
Hey,
I have someone working on a site and he is getting it working fine on 4.2.1 with a fresh install, when he tries it with my database, its giving a 500 error.
I had a quick look myself and the same thing is happening, so without a doubt its not a server error.
I also checked cPanel error logs, nothing coming up, checked vB error logs, nothing coming up.
I can get him to post also but I know this isnt a server error so I dont know why its giving a 500 or no errors showing in logs..
I have only ever got a 500 when it was something wrong with the actual server, but I have other sites running on different scripts as well as vb 3.7 running fine.
Does anyone know what could cause this problem?
Thanks for any help
Faulty .htaccess file perhaps?
John Diver
02-04-2016, 07:00 PM
All files are the exact same - Just when the database info is changed it doesnt work...
I did a check on cPanel and its working but I cant get into the admincp to do a vb check, I don't know what would be wrong with it though..
--------------- Added 1454621991 at 1454621991 ---------------
Im going crazy with this.
The site was working for 10 minutes but only the activity page - Going to the forum gave a 500, now even the activity / homepage isnt working and giving a 500.
Does anyone know what could be causing this?
Thanks
RichieBoy67
02-05-2016, 07:05 AM
I'm sorry but I really do not understand what you are saying.
What do you mean it works with a fresh install but not your database?
Do you have the original files for your site? Do you have the correct version of files with the database?
squidsk
02-05-2016, 08:51 AM
If there's a 500 error there has to be something in the logs. Are you checking the correct logs?
John Diver
02-05-2016, 04:04 PM
Thanks for the replies.
Yes, its the correct logs 100% - Nothing is showing.
I did a fresh install - Its working fine with a new database but once the database in the config is changed to the previous database, it gives a 500 error.
The site was working fine, nothing was changed so there has to be something to do with the database but doing a db check in cpanel all tables come up as ok
What if you open up the global.php file and add the following on the line after <?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
Then check if there are any errors on the screen?
John Diver
02-05-2016, 04:58 PM
Just did that and its still just giving a page showing a 500..
Ive reinstalled so many times and did a fresh install and its working fine on the fresh database but not the previous - I did a check on the database and its the same version - I got someone else to reinstall this for me because my server was hacked but if the fresh install works then it has to be a database problem but I cant find it.
If I could even copy my forums / threads / posts from the db to the fresh I'm thinking that should work
Thanks for your help Dave
Well another way to find out what's causing it is to add breakpoints in vBulletin's core PHP files... that would require someone who has a bit of understanding of PHP though. Basically just exit the script at certain points until the error happens, from there you can find out what function is causing it.
Of course that will only work when the error is actually caused by vBulletin.
John Diver
02-05-2016, 05:16 PM
Got a new error log:
PHP Fatal error: Class 'vBCms_Route_List' not found in /home/northwes/public_html/website/includes/functions.php on line 3667
PHP Fatal error: Class 'vBCms_Route_List' not found in /home/northwes/public_html/website/member.php on line 665
Searched google and seen a few people are getting this
vBulletin 4.2.3 is the latest version, have you tried that one?
John Diver
02-05-2016, 05:31 PM
This is just what he put in and the database is for 4.2.1 so I cant even do an upgrade because nothing works..
The more I search the more I see people saying it is a vB bug..
One example:
https://vborg.vbsupport.ru/archive/index.php/t-244900.html
HM666
02-06-2016, 12:00 AM
If the database you are using is vBulletin 4.2.1 then you need to make sure that the files you are using is vBulletin 4.2.1 as well. Perhaps you have done the fresh install with 4.2.3 instead of 4.2.1. Try checking that to see that you have all the same vBulletin version across the board first.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.