class problem
Posted: Mon Oct 10, 2005 7:54 am
ok i get the Fatal error: Call to a member function on a non-object error. it seams to happen at no real specific time, really quite random i must say. would there happen to be a way to make the page refresh as soon as this error occurs? becuase if i hit refresh then it works perfectly always. any ideas as to why this happens?
edit: i think i figured it out. i had to do
$lang = new Lang;
global $lang;
but why? its not in a function, it only happened some times, why?
edit: i think i figured it out. i had to do
$lang = new Lang;
global $lang;
but why? its not in a function, it only happened some times, why?