Skip to main content

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

More
12 years 10 months ago #133960 by anlicor
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.

More
12 years 10 months ago #133978 by Mohamed Thelji
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.

More
12 years 10 months ago - 12 years 10 months ago #134644 by anlicor
Screenshot of warning.
Last edit: 12 years 10 months ago by anlicor.

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

More
12 years 10 months ago - 12 years 10 months ago #134663 by Jerome
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.
Last edit: 12 years 10 months ago by Jerome.

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

More
12 years 10 months ago #134698 by anlicor
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.

More
12 years 10 months ago #134751 by Jerome
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.

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

More
12 years 4 months ago #157554 by tompap
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.

More
12 years 4 months ago #157577 by Mohamed Thelji
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.

More
12 years 4 months ago #157626 by tompap
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.

More
12 years 4 months ago #157685 by Jerome
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.

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

Time to create page: 0.264 seconds
Powered by Kunena Forum