× Joomla Facebook Connect support forum

Topic-icon [Joomfish!] Error when I log in with JFBLogin

Active Subscriptions:

None
Hello!
I'm using
PHP 5.2.17
joomla 1.5.23
joomfish 2.2.1
jfbconnect 4.0.3

Test case:
- home page
- select Italian language (with English everything works fine)
- "connect with facebook"

I got the following exception:
Fatal error: Call to undefined method stdClass::get() in /home/myrunnin/public_html/administrator/components/com_joomfish/models/ContentObject.php on line 369


the mentioned file contains on line 369 the following code:
if ($field->Type == "params" && is_array($translationValue)){

could you please help me to fix this issue?

thanks
Francesco
The topic has been locked.
Support Specialist
12 years 4 months ago #16993 by alzander
Francesco,
I don't have JoomFish installed, so don't know the answer off-hand. Are you sure you copied the exact line #369? In there, I don't see the "get" call that is supposedly throwing the error. If possible, copy 5-10 lines before that error as well, which may help understand what's going on.

From a quick Google search, all I've seen for that error is that the language pack for the specific language isn't installed or available. Not sure if you don't have Italian installed, or possibly specified the wrong language string somewhere along the lines, but it's a possible starting point.

If that doesn't help, the code hopefully will. If not though, we can install and see what we can do. There are plenty of users that have JFBConnect and JoomFish working though without Fatal errors (the occasional missed translation, yes, but not crashing their site).. so it's definitely possible and likely some config error along the way.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17034 by Schettini
Hi Alex.
Thanks for your help.
You were right, actually the code is the following:
// retriev the original untranslated object for references
// this MUST be copied by value and not by reference!
$origObject = clone($dbObject);
[b]$key = $dbObject->get( '_tbl_key' );[/b]
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17036 by Schettini
here whole code of the method:
/** Reads the information out of an existing mosDBTable object into the contentObject.
	 *
	 * @param	object	instance of an mosDBTable object
	 */
	public function updateMLContent( &$dbObject ) {
		$db = JFactory::getDBO();
		if( $dbObject === null ) return;

		if( $this->published=="" ) $this->published=0;

		// retriev the original untranslated object for references
		// this MUST be copied by value and not by reference!
		$origObject = clone($dbObject);
		$key = $dbObject->get( '_tbl_key' );
		$db->setQuery( "SELECT * FROM " .$dbObject->get('_tbl'). " WHERE " .$key. "='" .$dbObject->$key. "'" );
		$origObject = $db->loadObject(  false );

		$this->copyContentToTranslation( $dbObject, $origObject );
	}
The topic has been locked.
Support Specialist
12 years 4 months ago #17089 by alzander
Thanks for the full code post. unfortunately, it doesn't give a clear answer to the question. Basically, JoomFish is calling that function and thinking it's passing in a reference to a row in the database and when it's trying to get the 'main' column from that row, it's throwing the error. If that's nonsense, it basically boils down to this:
That function is expecting info from the database. Likely a row of information about the current language (code: it_IT, site: frontend, etc). However, it appears that the row isn't passing back valid information, which means either the language isn't configured properly, or something else strange is going on.

I know you said that English works. Can you try other languages, or see if there's a difference between how your English language is configured (both in Joomla and JoomFish) and see if there's any differences that can be fixed?

I know that's extremely vague, but don't have much more to go on right now. At some point, we can try to load up JoomFish, or access your site to debug (if possible) and narrow things down further, but it may take a few days to get to it. If this is an urgent matter, please let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17189 by Schettini
Hi Alex!
Thanks again for your help and merry xMas!

I tried with another language too (Spanish) without any luck, same story!
In addition, I upgraded joomla to the last stable version 1.5.25 but the issue is still there.

I'm sure this problem derives from joomfish (in fact I'm using a test version 2.2.2 not the stable one 2.1.7) but I'm not getting any support from joomfish side :-(

Can you suggest me possible configuration values I could compare between English and another language?
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17190 by Schettini
The Joomfish documentation claims about the need to install the "joomfish content element" for each 3rd party component.
It should be just an xml file:
www.joomfish.net/en/documentation/tutori...3rd-party-extensions

I did not find it for JFBConnect. Do I actually need it?
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17193 by Schettini
I tried with Joomfish 2.1.7 too but I get the same issue.
The topic has been locked.
Support Specialist
12 years 4 months ago #17223 by alzander
Schettini,
Sorry for the delays in getting back to you. We're looking into the Joomfish issue today and investigating how to create the "Content Elements" that you linked to. We'll try to do some testing on our end first, but you'll likely bare the brunt of some testing.

I'm honestly not sure if you need the content elements (we'll figure that out today). I do know that plenty of users use Joomfish with JFBConnect successfully, but I honestly can't tell you if they somehow created their own (maybe some dummy/blank type file) or if there's some configuration option that lets you skip JFBConnect within Joomfish (since we only have 1 real page on the front-end that needs to be translated).

If you have any input, let us know. If not, hopefully later today or tomorrow, we can get you the answer you're looking for.

Thanks for your patience,
Alex
The topic has been locked.
Support Specialist
12 years 4 months ago #17314 by alzander
Francesco,
I just sent you a PM with a link to the contentelement files for JFBConnect. I don't want to make them public yet as I'd like you to test with them. We've installed Joomfish on our test sites, added many languages, and tried very hard, but we can't get the error you mention above to appear. Hopefully though, these files will fix you up. Once you download the zip file, unzip it and move the files to your /administrator/components/com_joomfish/contentelements directory.

Included in the zip are 2 files for tables that will be added in JFBConnect 4.1 (Request and Notification). It shouldn't be a problem to have these in the contentelements directory even if you don't have 4.1 installed, but if it does cause problems, just remove those two files.

If this doesn't work, we may need to get access to your site to try and understand more about your configuration and possibly try to debug Joomfish to see what tables it's trying to load, why, and how it's failing in doing so.

Hope this helps,
Alex
The topic has been locked.