Home arrow Forum Fatal error: Call to a member function on a non-object smf.class.php on line 490
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2008, 12:05:49 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)
| | | |-+  Fatal error: Call to a member function on a non-object smf.class.php on line 490
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Fatal error: Call to a member function on a non-object smf.class.php on line 490  (Read 2332 times)
Allison
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Fatal error: Call to a member function on a non-object smf.class.php on line 490
« on: November 14, 2006, 12:01:23 AM »

Hi All,

I have just installed SMF. SMF is in the same database as Joomla. When viewing the actual SMF forum, it works great. No problems. Installed all the neccessary components to bridge Joomla, SMF and Community Builder as per the Joomlahacks JSMF Version 20.0 User Guide indicated I should do.

My Info:

Version Information:
Your Joomla version is: 1.0.11
Your SMF version is: 1.1 RC3
Your Joomla-SMF version: 2.0 RC2
Latest Joomla-SMF version: 2.0RC2


I am able to log into the SMF forum and my Joomla website using my Community Builder user and password. Works fine. I am able to log out of the SMF forum without problems. HOWEVER, when I log out of the Joomla site, I get the following error on the logout page of my local installation http://localhost/yaddayadda/index.php?option=com_comprofiler&task=logout:


Fatal error: Call to a member function on a non-object in c:\documents and settings\yaddayadda\www\yaddayadda\components\com_smf\smf.class.php on line 490

If I refresh, it appears that I am still logged in. It refuses to let me log out because of the error message above.

I was doing so well. Where did I go wrong?!


Problem #2 - I created a link to component Joomla SMF-Forum. It shows up blank. No errors. Just blank. The actual SMF forum seperate from Joomla works fine.

I could really use the advice of some Joomla experts here!
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #1 on: November 14, 2006, 10:04:08 AM »

Problem #1, you are logging out of cb login module?

Problem #2, The link is created during install, what is the purpose of creating a second link?  Turn up joomla error reporting to maximum and/or check your php error log.  Blank screens are usually an indication of a fatal error.
Logged

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

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #2 on: November 14, 2006, 12:53:49 PM »

Wolverine,
Thank you for the speedy response. Yes, I am using CB Login.

I enabled dbug and this is the output on the forum link in joomla. The actual SMF installation went smoothly. I get absolultely no errors. I can log in to the SMF forum using the community builder users and passwords.

The is the result from dbug on the joomla page that should be showing the SMF forum.


Warning: Invalid argument supplied for foreach() in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.class.php on line 990

Warning: main(/index.php): failed to open stream: No such file or directory in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.php on line 114

Warning: main(): Failed opening '/index.php' for inclusion (include_path='.;C:\PROGRA~1\EASYPH~1\\php\pear\') in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.php on line 114

--------------------------------------------------------------------------------
DEBUG

--------------------------------------------------------------------------------
 
Error loading search cache
Error loading replace cache
 SMF BUFFER ARRAYS EMPTY -- REBUILDING

--------------------------------------------------------------------------------
 
Error loading headers cache
Error loading keywords cache
Error loading css cache
loading headers SEARCH: /index.php?action=register
REPLACE: http://localhost/yaddayadda/index.php?option=com_comprofiler&Itemid=83&task=registers
STATUS: Not found in buffer

--------------------------------------------------------------------------------
 
SEARCH: /index.php?action=reminder
REPLACE: http://localhost/yaddayadda/index.php?option=com_comprofiler&Itemid=83&task=lostPassword
STATUS: Not found in buffer

--------------------------------------------------------------------------------
 
SEARCH: var smf_scripturl = "";
REPLACE: var smf_scripturl = ""; var jsmf_scripturl = "http://localhost/yaddayadda/index.php?option=com_smf&Itemid=76&";
STATUS: Not found in buffer

--------------------------------------------------------------------------------
 
SEARCH: option value="?board=
REPLACE: option value="board=
STATUS: Not found in buffer

--------------------------------------------------------------------------------
 
SEARCH: smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf
REPLACE: jsmf_scripturl + this.options[this.selectedIndex].value.substr(jsmf_scripturl.indexOf
STATUS: Not found in buffer

--------------------------------------------------------------------------------
 
SEARCH: '/index.php' + this.form.jumpto.options
REPLACE: jsmf_scripturl + this.form.jumpto.options
STATUS: Not found in buffer

--------------------------------------------------------------------------------
 
SEARCH: <input type="hidden" name="hash_passwrd" value="" />
REPLACE: <input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="passwd" value="" />
STATUS: Not found in buffer

--------------------------------------------------------------------------------
 
SEARCH: this.passwd.value = this.passwrd.value; hashLoginPassword(this);
REPLACE: this.passwd.value = this.passwrd.value; this.passwd.value = this.passwrd.value; hashLoginPassword(this);
STATUS: Not found in buffer

--------------------------------------------------------------------------------
 
  time index ex time % elapsed %
Start 1163525248.69872900 - 0.00% - 0.00%
Link Replace from cache Start 1163525248.72482400 0.026095 50.12% 0.026095 50.12%
Link Replace from cache End 1163525248.72486800 0.000044 0.08% 0.026139 50.21%
Link Replace Start 1163525248.72488700 0.000019 0.04% 0.026158 50.24%
Link Replace End 1163525248.72515500 0.000268 0.51% 0.026426 50.76%
Stop 1163525248.75079200 0.025637 49.24% 0.052063 100.00%
total - 0.052063 100.00% - -

Warning: Cannot modify header information - headers already sent by (output started at c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.php:117) in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\index.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.php:117) in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\index.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.php:117) in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\index.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.php:117) in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\index.php on line 231

Warning: Cannot modify header information - headers already sent by (output started at c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.php:117) in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\index.php on line 232
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #3 on: November 14, 2006, 01:53:42 PM »

here is your problem, your SMF path is not correct.  Refer to the user guide for information on how to obtain the correct SMF path to input in the JSMF backend configuration


Warning: main(): Failed opening '/index.php' for inclusion (include_path='.;C:\PROGRA~1\EASYPH~1\\php\pear\') in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.php on line 114
Logged

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

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #4 on: November 14, 2006, 07:04:25 PM »

The big problem solved! Thank you Wolverine. For those of you that read as carelessly as I do, page 8 of the brilliant Joomlahacks JSMF user guide, states that the absolute path can be found in the SMF directory under Server Settings. So, log into SMF forum admin area, and look under Server Settings. Copy and paste into the Joomla-SMF Forum Installation in Joomla. 


When I use the mod_cblogin, I log in using my admin user and password. I receive a message Incorrect Username or password. (Of course, the user and password are correct). Please try again. I press OK. I then see the community builder info, my avatar etc. I can edit my info, etc. I am logged in! Even though I receive the message that I have entered the incorrect user password.

I then proceed to logout by clicking the Logout button using mod_cblogin. I receive the message
Fatal error: Call to a member function on a non-object in c:\documents and settings\hp_administrator\my documents\www\yaddayadda\components\com_smf\smf.class.php on line 490
I can never log out.

I then go to the smf forum. I am not logged in. I log in with the same user and password that I tried above in mod_cblogin. I login without any problems.
I logout of the smf forum. At this point, I am logged out of the mod_cblogin as well.


In admin, I have the following settings (please see screenshots).
« Last Edit: November 21, 2006, 04:04:46 PM by Allison » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #5 on: November 14, 2006, 09:22:52 PM »

hmmmmmmm, reset your password in CB in the Joomla administration and try again.  This is something that should be handled better...

Basically CB gives me two events in order to log a user into SMF.  One is before it logs them into Joomla and the other is after they have already logged them into Joomla.  Obviously I am using the latter, which is why you see yourself logged into Joomla but not SMF even after the failure.  I think there was a reason behind doing after... but I have slept since then and can't recall.  We may want to change it to before but I will need to do some testing first. 

However, the real problem is the passwords aren't matching.  This can be caused by different collations of the tables in the database.  You will find several threads about this in these forums.  Essentially, if you installed SMF with UTF-8 support it is possible that the Joomla tables(normally in a default latin collation) don't line up with the SMF tables hence the password denied.  Do you have a lot of users on this site or is it still in test?  Try resetting your password through Joomla administrator CB user managements(update user) and then see if that fixes it.
Logged

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

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #6 on: November 14, 2006, 11:29:25 PM »

I reset my admin password in Joomla. I followed the exact same procedure as described above. Logged into Joomla using the mod_cblogin with new password. Same error. Wrong password, but I WAS ACTUALLY logged in.

I then proceeded to the SMF forum, tried logging in with the admin user and new password just I did with mod_cblogin. (Keep in mind, I am still logged into cblogin). I received the error in SMF Password Incorrect. Tried my old password (before I changed my Joomla admin password) and I logged into SMF successfully.

I logged out of SMF and it also logged me out of Joomla-cblogin.

Which tells me that the passwords are the same when logging in, but somehow working together when logging out!

To answer your specific questions:

I will do some research in regard to different collations of the tables. I do know that UTF-8 was an option that I DID NOT select.

I do not have alot of users. It is strictly test at this point. Have any thoughts on something we can try since we are in a test not ye live?

If I havent said so before, thank you for your help. I have been scratching my head over this a solid 24 hours.
Logged
Allison
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #7 on: November 14, 2006, 11:30:33 PM »

All tables for Joomla and SMF are latin1_swedish_ci
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #8 on: November 15, 2006, 12:30:50 AM »

I'm brainless sometimes.  Just checked the software and found that on an update from CB to SMF the password is disregarded.  That's probably why it didn't work.  Tongue

I will fix this but in the mean time set your password back to the original value.  I need to take a look and see what might be happening while you are logging in from CB.   

The reason it worked from SMF is that the validation is done a bit different due to the more complex way SMF handles logins.  I could go into details but just trust me in that SMF is doing most of the password validation.
Logged

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

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #9 on: November 15, 2006, 09:09:17 AM »

I will change the password back. Please let me know whe you get a chance to fix this. It is so close to working...

Can't wait to introduce this on our site but afraid to do so if folks get errors when using their accounts.

Look forward to hearing from you - thanks.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #10 on: November 15, 2006, 10:10:32 AM »

I may need to take a look at your site and compare the passwords to see why it is failing.  Can you give me access?  just pm me if this is possible.
Logged

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

Karma: +0/-0
Offline Offline

Posts: 9


View Profile
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #11 on: November 15, 2006, 10:15:21 AM »

Working locally at this point.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Fatal error: Call to a member function on a non-object smf.class.php on line 490
« Reply #12 on: November 15, 2006, 10:32:51 AM »

hmmmmmmmmmmmmmmm, well the fix for password update will be in RC3 but that doesn't explain why it isn't working.  pm me your email address and I may need to send you some files with greater debug enabled so we can get a clearer picture of the problem.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
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
i-Vibe.com
Search Contact About Advertise Blogs Topsites Submit News Register Login