Skip to main content

Catchable fatal error

More
15 years 1 month ago #23720 by Nello
Catchable fatal error was created by Nello
Hi Nicolas,

If you try to search on my website www.hidesign.it some terms like "Radio, Illuminazione, Oggettistica...", that is the name of categories, this below is the result:

Catchable fatal error: Object of class JLanguage could not be converted to string in /web/htdocs/www.hidesign.it/home/plugins/search/hikashop_categories.php on line 149

Can you tell me something about?

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #23723 by nicolas
Replied by nicolas on topic Re: Catchable fatal error
Hi,

I can tell you that you have the search categories plugin published and that you don't have the latest version. Either update or unpublish the plugin and you won't have the error.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #23769 by Nello
Replied by Nello on topic Re: Catchable fatal error
Great!
Thank you so much!!! :)

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago - 14 years 9 months ago #32193 by jlhosch
Hi all,

I'm getting the same error when hikashop categories search plugin is published.

Using joomla 1.5.23 + hika 1.5.4 + joomfish 2.1.7

Is there an update i can do to avoid unpublish this plugin ?
Last edit: 14 years 9 months ago by jlhosch. Reason: résolu

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32194 by nicolas
Replied by nicolas on topic Re: Catchable fatal error
Could you give the exact error message ?
There is indeed the 1.5.5 version which is out since yesterday. You could try to update to see if that fixes the problem. You can download the update package on our website.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32195 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
Catchable fatal error: Object of class JLanguage could not be converted to string in /homez.41/projetse/www/TESTmonpaturageEU/plugins/search/hikashop_categories.php on line 152

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32196 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
Hi Nicolas,
I'm about to get into live in the next days. If I could avoid upgrading just now ... ;-)
I'd rather update the php file if relevant ;-) or desactivate the plugin for a short time before upgrading in my next release of the site :-D

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32197 by nicolas
Replied by nicolas on topic Re: Catchable fatal error
Could you open that file and look at the version number at the top ? It should be the same as the version of HikaShop.
If not, it means that the plugin wasn't updated when you updated HikaShop which would explain why you still have the problem. In that case, you should get its files in the install package (folder back/extensions) and replace the file of the plugin by the ones from the install package (there are just two files).

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32202 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
/**

* @package HikaShop for Joomla!

* @version 1.5.4

* @author hikashop.com

* @copyright (C) 2010-2011 HIKARI SOFTWARE. All rights reserved.

* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html

*/

IT seems to be the right version :huh:

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32204 by nicolas
Replied by nicolas on topic Re: Catchable fatal error
What do you have on that 152 line ?

I don't see why you would still have such error with the 1.5.4 version.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32205 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
if(count($types)){

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32206 by nicolas
Replied by nicolas on topic Re: Catchable fatal error
That's not possible.
That line wouldn't be able to trigger such error message.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago - 14 years 9 months ago #32209 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error

This attachment is hidden for guests.
Please log in or register to see it.

Last edit: 14 years 9 months ago by jlhosch.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32211 by nicolas
Replied by nicolas on topic Re: Catchable fatal error
Your text editor is adding extra lines between each lines.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32215 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
then line 152 is :
$query = ' SELECT * FROM '.hikashop_table('jf_content',false) . ' WHERE reference_table=\'hikashop_category\' AND language_id=\''.$lang.'\' AND published=1 AND reference_id IN ('.implode(',',array_keys($rows)).')';

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32219 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
J'ai l'impression que $lang perd sa valeur en cours de route...

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32221 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
la perte se ferait ici : $rows = $db->loadObjectList("id");

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32223 by nicolas
Replied by nicolas on topic Re: Catchable fatal error
Ce doit être à cause de joomfish qui utilise une variable globale avec le même nom...
essayez voir de changer $lang par $myLang dans ce fichier.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32226 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
Yes!!
it works !

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #32228 by jlhosch
Replied by jlhosch on topic Re: Catchable fatal error
Thank you Nicolas.
I suppose you will integrate some update in one of the next hika release. please let me know ;-)
for now, i will use my updated .....\plugins\search\hikashop_categories.php

Please Log in or Create an account to join the conversation.

Time to create page: 0.276 seconds
Powered by Kunena Forum