[Skip to main content](#vessel-content)

#   public\_html/libraries/cms/html/html.php on line 96

##

- **[anlicor](/forum/user/23162-anlicor "View anlicor's Profile")**
- [![anlicor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/23162-anlicor "View anlicor's Profile") Topic Author
- [ Offline](/forum/user/23162-anlicor)

Less More

- Posts: 61
- Thank you received: 0
-
-

12 years 11 months ago [\#133960](#133960) by [anlicor](/forum/user/23162-anlicor "View anlicor's Profile")  *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#133960 "Warning: Illegal string offset 'class' in /public&#95;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?")* was created by *[anlicor](/forum/user/23162-anlicor "View anlicor's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 11 months ago [\#133978](#133978) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#133978 "Warning: Illegal string offset 'class' in /public&#95;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?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[anlicor](/forum/user/23162-anlicor "View anlicor's Profile")**
- [![anlicor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/23162-anlicor "View anlicor's Profile") Topic Author
- [ Offline](/forum/user/23162-anlicor)

Less More

- Posts: 61
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#134644](#134644) by [anlicor](/forum/user/23162-anlicor "View anlicor's Profile")  Replied by *[anlicor](/forum/user/23162-anlicor "View anlicor's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#134644 "Warning: Illegal string offset 'class' in /public&#95;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?")*

Screenshot of warning.

- [ ![h694f572.jpg](/forum/attachment/14042) ](/forum/attachment/14042 "h694f572.jpg") [ ](/forum/attachment/14042?download=1 "h694f572.jpg")

Last edit: 12 years 10 months ago by [anlicor](/forum/user/23162-anlicor "View anlicor's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 10 months ago -  12 years 10 months ago [\#134663](#134663) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#134663 "Warning: Illegal string offset 'class' in /public&#95;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?")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 12 years 10 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[anlicor](/forum/user/23162-anlicor "View anlicor's Profile")**
- [![anlicor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/23162-anlicor "View anlicor's Profile") Topic Author
- [ Offline](/forum/user/23162-anlicor)

Less More

- Posts: 61
- Thank you received: 0
-
-

12 years 10 months ago [\#134698](#134698) by [anlicor](/forum/user/23162-anlicor "View anlicor's Profile")  Replied by *[anlicor](/forum/user/23162-anlicor "View anlicor's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#134698 "Warning: Illegal string offset 'class' in /public&#95;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?")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#134751](#134751) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#134751 "Warning: Illegal string offset 'class' in /public&#95;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?")*

Hi,

[ www.hikashop.com/forum/install-update/86...et-class.html#132814](http://www.hikashop.com/forum/install-update/863433-warning-illegal-string-offset-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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tompap](/forum/user/32398-tompap "View tompap's Profile")**
- [![tompap's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32398-tompap "View tompap's Profile")
- [ Offline](/forum/user/32398-tompap)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 5 months ago [\#157554](#157554) by [tompap](/forum/user/32398-tompap "View tompap's Profile")  Replied by *[tompap](/forum/user/32398-tompap "View tompap's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#157554 "Warning: Illegal string offset 'class' in /public&#95;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?")*

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 '**i**onChange="myfield_checkDate(1);"' (length=38)

so the onChange is never called because it's ionChange

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 5 months ago [\#157577](#157577) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#157577 "Warning: Illegal string offset 'class' in /public&#95;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?")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tompap](/forum/user/32398-tompap "View tompap's Profile")**
- [![tompap's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32398-tompap "View tompap's Profile")
- [ Offline](/forum/user/32398-tompap)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 5 months ago [\#157626](#157626) by [tompap](/forum/user/32398-tompap "View tompap's Profile")  Replied by *[tompap](/forum/user/32398-tompap "View tompap's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#157626 "Warning: Illegal string offset 'class' in /public&#95;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?")*

Hello Mohamed, (we met at the joomladay last week ![;)](/media/kunena/emoticons/11.png ";)")

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-&gt;prefix.$field-&gt;field_namekey.$this-&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#157685](#157685) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[public\_html/libraries/cms/html/html.php on line 96](/forum/25-install-update/863877-public-html-libraries-cms-html-html-php-on-line-96#157685 "Warning: Illegal string offset 'class' in /public&#95;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?")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Mzg3Ny1wdWJsaWMtaHRtbC1saWJyYXJpZXMtY21zLWh0bWwtaHRtbC1waHAtb24tbGluZS05Nj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.321 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
