Home arrow Forum jsmffrontend - need a little help
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 04:43:18 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  jsmffrontend - need a little help
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: jsmffrontend - need a little help  (Read 1529 times)
downunder
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
jsmffrontend - need a little help
« on: March 18, 2007, 09:40:08 PM »

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.


Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: jsmffrontend - need a little help
« Reply #1 on: March 19, 2007, 08:52:31 PM »

the instances is stored in your session and the patch to the joomla index inclues the class definition before it is ever accessed so if you are having this issue either there is a problem with your sessions of hte joomla index isn't patched.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
nisiwi
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 26


View Profile
Re: jsmffrontend - need a little help
« Reply #2 on: March 22, 2007, 09:56:15 AM »

strange  Shocked

I am getting the same problem - after porting a site over to a hosting environment which has phpSuExec
i can confirm that the index is patched correcty as its the same one used on the non phpsuexec host where everything was working

also php.ini includes
session.save_handler = files
session.cache_limiter = nocache

when the site is frist accessed its OK, if I follow the link to the forum then the problems start

it looks like a session problem then, probably something I need to add to my php.ini file

anybody sorted this one before ?  Huh
« Last Edit: March 22, 2007, 11:06:59 AM by nisiwi » Logged
Jadzia
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 12


View Profile
Re: jsmffrontend - need a little help
« Reply #3 on: March 24, 2007, 07:19:11 AM »

I'm having the same issue with the same message. Only happens when I turn SEO on in joomla configuration. My host also has phpSuExec - could that be the problem?

This worked tho - thanks

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;
« Last Edit: March 24, 2007, 07:36:11 AM by Jadzia » Logged
Livebox
Guest
Re: jsmffrontend - need a little help
« Reply #4 on: March 24, 2007, 12:00:47 PM »

When you activate SEF in Joomla! Did you also modified the Htaccess file?
Logged
Jadzia
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 12


View Profile
Re: jsmffrontend - need a little help
« Reply #5 on: March 24, 2007, 06:21:26 PM »

Yup modified the .htaccess but it was the above code hack that fixed it for me.
Logged
nisiwi
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 26


View Profile
Re: jsmffrontend - need a little help
« Reply #6 on: March 27, 2007, 06:01:52 AM »

still having troubles
i tried the hack but it just caused an SQL failure which I thought it might
have attached my index which i use without problems on other sites with no phpsuexec
any ideas ?
 Huh
Logged
xoail
Joomla Newbie
*

Karma: +0/-1
Offline Offline

Posts: 18


View Profile
Re: jsmffrontend - need a little help
« Reply #7 on: April 08, 2007, 01:24:22 AM »

I'm having the same issue with the same message. Only happens when I turn SEO on in joomla configuration. My host also has phpSuExec - could that be the problem?

This worked tho - thanks

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;

I was having the same problem. I set $mosConfig_offline == 0 and it rectified the issue. I hope this wont effect anything else.

Thanks Jadzia and everybody!
Logged
nisiwi
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 26


View Profile
Re: jsmffrontend - need a little help
« Reply #8 on: April 18, 2007, 06:04:41 AM »

OK, I have checked the forum and tried all tweaks and tips, stripped down my joomla install (removing other index.php hacks) and even used the supplied Joomla 1.0.12 prepatched index.php and I cannot get JSMF to work, even though it worked just fine for me on a non phpsuexec environment.

I have CHMODED the index.php for Joomla and SMF and the subs file to 755 making sure they were writeable (777 will cause failure on phpsuexec).

No matter what method I use I still have problems, using a manully created file I get:

Fatal error: Call to a member function on a non-object in /home/windley/public_html/index.php on line 332

Which points here: $jsmf->restorePostMessage($savedVars);


With the Joomlahack supplied index.php file I still 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 /home/windley/public_html/index.php on line 68

Which also points here (not surprising: $jsmf->restoreVars($savedVars);

The hack above does not resolve the situation, I have checked permissions and used the prepatched index as well as a maually created version and still it fails with the same errors.

I have a .htaccess fle and a php.ini only in the top level directory - I am unable to move my hosting account until I get this one resolved.

Thanks for reading this and I apreciate any constructive advice.  Could this be more related to server coniguration?

Still can't get this things sorted - I have searched and tried all sorts - I am about to give up and look at porting over to another forum.

One last cry for help to somebody who might know how to fix this one - the only difference here is I am on phpsuexec - everything else worked from the original site that was not on a phpsuexec platform ?
« Last Edit: April 26, 2007, 11:56:09 AM by nisiwi » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login