1.

__PHP_Incomplete_Class when do we get this? How to solve this problem?

Answer»

Sometime when we try to access session object we GET the object class as __PHP_Incomplete_Class.
This happens when we try to initialize the session before loading the class definitions for the object we are trying to save into the session.

  • To SAY it in simple, if class definitions are not defined, PHP CREATES incomplete objects of the class __PHP_Incomplete_Class.
  • To avoid __php_incomplete_class object session error, every class definition must be included or defined before STARTING the session


Discussion

No Comment Found