Try using the php error log to debug your issue.
You can find the error log using this command in the terminal is you are using linux.
sudo su
cd /var/log/apache2/
sudo gedit error.log
Now if you debug properly you will get to know where the changes went wrong.