| G'day here is one to test you. It was posted in the wrong place by another user. Installing SMF 1.1.2 and JSMF 2.02 I get the following error: Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition jsmffrontend of the object you are trying to operate on was loaded _before_ the session was started in /joomla site path/index.php on line 68: $jsmf =& jsmfFrontend::singleton(); $jsmf->restoreVars($savedVars); Everything is patched correctly and database in same db as Joomla. Tracing the problem I notice that if I force a new instantiation of jsmfFrontend here in smf.class.php by setting $mosConfig_offline to 0: function & singleton() { global $mosConfig_offline; $inst_name = "_INSTANCE_" . strtoupper(__CLASS__); if ($mosConfig_offline == 0) { $jsmf =& new jsmfFrontend(); return $jsmf; Then the whole thing works (I think). Am I doing any damage? However this only indicates that something else is causing jsmfFrontend to not be set correctly. Do you have any ideas as I am hitting a wall as JSMF works in other sites. |
Forum 





Author



Logged









