Catchable fatal error

  • Posts: 251
  • Thank you received: 2
13 years 3 months ago #23720

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 3 months ago #23723

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.

  • Posts: 251
  • Thank you received: 2
13 years 3 months ago #23769

Great!
Thank you so much!!! :)

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

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32193

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: 12 years 11 months ago by jlhosch. Reason: résolu

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #32194

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.

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32195

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.

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32196

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #32197

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.

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32202

/**

* @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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #32204

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.

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32205

if(count($types)){

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #32206

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.

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32209

File Attachment:

File Name: hikashop_c...ries.txt
File Size:8 KB

Attachments:
Last edit: 12 years 11 months ago by jlhosch.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #32211

Your text editor is adding extra lines between each lines.

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

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32215

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.

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32219

J'ai l'impression que $lang perd sa valeur en cours de route...

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

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32221

la perte se ferait ici : $rows = $db->loadObjectList("id");

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #32223

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.

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32226

Yes!!
it works !

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

  • Posts: 40
  • Thank you received: 0
12 years 11 months ago #32228

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.094 seconds
Powered by Kunena Forum