ashraf_gawdat Posted July 1, 2006 Share Posted July 1, 2006 I've made a class called "settings" to get the settings values from the database, so once the user opens the site an object of that class is created having the settings values in it instead of reading them from the database every time a page is opened, I think that would be faster.But the problem is that when I try to call a method from that object, I get an error message that says:Fatal error: html_admin_main() [<a href='function.html-admin-main'>function.html-admin-main</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "settings" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in D:\Software\XAMPP Lite\xampplite\htdocs\seif\admin\includes\output_fns.php on line 182I searched the internet for that message and I found that it appears when starting the session before including the class definition, but that is not the problem in my case because I've included the class definition file before starting the session.Do any one got an idea why this is happening? Link to comment Share on other sites More sharing options...
Little Goat Posted July 1, 2006 Share Posted July 1, 2006 I think I understand what you're saying, but I've got no Idea what went wrong. you probably wont get any answers without posting code. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now