HBB Posted September 25, 2009 Posted September 25, 2009 Hi I was editting the main page but I now have this coming up:- Fatal error: Call to a member function add_current_page() on a non-object in /home/hummingb/public_html/includes/application_top.php on line 313 I was copying the code each time i changed it to make sure this didnt happen so i was able to but back right but I seem to have done something worng :angry: and when I copy back what was there before its still coming up:- Fatal error: Call to a member function add_current_page() on a non-object in /home/hummingb/public_html/includes/application_top.php on line 313 Can anyone help please or is there a way to get a copy of index.php before I changed it! I'm new at this and thought I was doing well :blush: Thanks Guys!
chiger Posted September 25, 2009 Posted September 25, 2009 I'm new to this PHP stuff too, but not to writing code. Don't know the error message you're getting...but most of the time errors like this are because I've missed a bracket or comma or something when I copied and pasted the code to fix the code I was 'fixing'. lol Count all the brackets and make sure it's not a run on error. Every left...has to have a right. Also, make sure you don't miss the beginning ( or end up with 2 (( or )) of them in a row. All errors I've made many times. Sorry I can't be of more help with the error code. Also...if you do get it fixed, I'd suggest coping the whole page so you can just paste in the whole thing. Or maybe do a backup in admin panel between changes so you can just restore is another option. Hope you get it straightened out. I'll send you a copy of my index if you want, but I don't think it will work. You might be able to use it as reference though. chiger, "I am prepared to prove at any moment that I am not the man my education has conspired to make of me." Franz Kafka
Recommended Posts
Archived
This topic is now archived and is closed to further replies.