public_html/libraries/cms/html/html.php on line 96

  • Posts: 61
  • Thank you received: 0
11 years 8 months ago #133960

Warning: Illegal string offset 'class' in /public_html/libraries/cms/html/html.php on line 965

I get this warning when editing a product above the date field in
Product available from
and
Product available until

Anyone else get this warning?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #133978

Hi,

I just tested it with the last Hikashop version and it's working fine, can you download the last Hikashop version through our website, install it, and test it again ?

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

  • Posts: 61
  • Thank you received: 0
11 years 8 months ago #134644

Screenshot of warning.

Attachments:
Last edit: 11 years 8 months ago by anlicor.

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

  • Posts: 26262
  • Thank you received: 4042
  • MODERATOR
11 years 8 months ago #134663

Hi,

This bug has been already fixed.
It will be include in the next package.

Regards,

PS : It is a joomla bug that we have also, fixed.


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 11 years 8 months ago by Jerome.

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

  • Posts: 61
  • Thank you received: 0
11 years 8 months ago #134698

So is there a quick fix where I can just copy and paste the code?

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

  • Posts: 26262
  • Thank you received: 4042
  • MODERATOR
11 years 8 months ago #134751

Hi,

www.hikashop.com/forum/install-update/86...et-class.html#132814

It affect several views in HikaShop so I can't tell you which one you have to modify in order to remove your specific warning.
Like Nicolas said in his post, the best is to remove the PHP warning display just temporally in your development website (and you shouldn't have warning displayed in your production website).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #157554

Hello,

I just have the same PHP warnings.
hidden the error is not enough, because even if there is no PHP warning in 5.3 there is a bug in 5.3

Let me explain:

If you create a date field (datepicker plugin)
There is a call to :
public static function calendar($value, $name, $id, $format = '%Y-%m-%d', $attribs = null)

with $attribs = ' onChange="myfield_checkDate(1);"'

in calendar function we do:
$attribs = isset($attribs) ? $attribs : 'input-medium';

but $attribs is a string not an arrray
in PHP 5.5 you get a PHP warning
but in PHP 5.3
if you do var_dump($attribs), $attribs has been changed to :
string 'ionChange="myfield_checkDate(1);"' (length=38)

so the onChange is never called because it's ionChange

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #157577

Hello,
Firstly, can you download the last Hikashop version through our website, install it and test it again ?

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

  • Posts: 5
  • Thank you received: 0
11 years 2 months ago #157626

Hello Mohamed, (we met at the joomladay last week ;)

I discussed this afternoon with Jerome about this issue, the issue is real, but there is a workaround using the "dynamic calendar" instead of "simple datapicker".

Like this I don't have anymore problem.

P.S: The bug is in classes/field.php
line 2372:
return JHTML::_('calendar', $value, $map,$this->prefix.$field->field_namekey.$this->suffix,$format,$size);

$size is a string but on Joomla 3 should be an array. That is the problem. But with the other calendar it's working. so it's ok for me.

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

  • Posts: 26262
  • Thank you received: 4042
  • MODERATOR
11 years 2 months ago #157685

Hi Thomas,

Yes we are still talking about this problem in the "Joomla Bug and Fun" Skype group.
I don't know when this patch will be applied in Joomla but some elements are now break and does not allow us to use the "date restriction" features that we used before (but which are still working on J1.5 and J2.5)

Hope that it will be fixed/improved soon.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum