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

#   Depreciated warnings after upgrading to php 8.2

##

- **[dustinjc](/forum/user/31466-dustinjc "View dustinjc's Profile")**
- [![dustinjc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31466.jpg)](/forum/user/31466-dustinjc "View dustinjc's Profile") Topic Author
- [ Offline](/forum/user/31466-dustinjc)

Less More

- Posts: 176
- Thank you received: 5
-
-

3 years 3 months ago [\#354545](#354545) by [dustinjc](/forum/user/31466-dustinjc "View dustinjc's Profile")  *[Depreciated warnings after upgrading to php 8.2](/forum/25-install-update/906905-depreciated-warnings-after-upgrading-to-php-8-2#354545 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.2  We have errors disabled in Joomla configuration. However, after upgrading to Joomla 4 and PHP 8.2 we are getting many depreciated warnings on our Hikashop pages. How do we disable these messages?  E.g. Deprecated: Creation of dynamic property plgHikashopShopclosehours::$ranges is deprecated in /public&#95;html/plugins/hikashop/shopclosehours/shopclosehours.php on line 181  Deprecated: Creation of dynamic property checkoutController::$workflow is deprecated in /public&#95;html/components/com&#95;hikashop/controllers/checkout.php on line 57  Deprecated: Creation of dynamic property plgHikashopMarket::$discountClass is deprecated in /public&#95;html/plugins/hikashop/market/market.php on line 829")* was created by *[dustinjc](/forum/user/31466-dustinjc "View dustinjc's Profile")*

-- HikaShop version -- : 4.7.5
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.2

We have errors disabled in Joomla configuration. However, after upgrading to Joomla 4 and PHP 8.2 we are getting many depreciated warnings on our Hikashop pages. How do we disable these messages?

E.g.
Deprecated: Creation of dynamic property plgHikashopShopclosehours::$ranges is deprecated in /public_html/plugins/hikashop/shopclosehours/shopclosehours.php on line 181

Deprecated: Creation of dynamic property checkoutController::$workflow is deprecated in /public_html/components/com_hikashop/controllers/checkout.php on line 57

Deprecated: Creation of dynamic property plgHikashopMarket::$discountClass is deprecated in /public_html/plugins/hikashop/market/market.php on line 829

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 3 months ago [\#354550](#354550) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Depreciated warnings after upgrading to php 8.2](/forum/25-install-update/906905-depreciated-warnings-after-upgrading-to-php-8-2#354550 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.2  We have errors disabled in Joomla configuration. However, after upgrading to Joomla 4 and PHP 8.2 we are getting many depreciated warnings on our Hikashop pages. How do we disable these messages?  E.g. Deprecated: Creation of dynamic property plgHikashopShopclosehours::$ranges is deprecated in /public&#95;html/plugins/hikashop/shopclosehours/shopclosehours.php on line 181  Deprecated: Creation of dynamic property checkoutController::$workflow is deprecated in /public&#95;html/components/com&#95;hikashop/controllers/checkout.php on line 57  Deprecated: Creation of dynamic property plgHikashopMarket::$discountClass is deprecated in /public&#95;html/plugins/hikashop/market/market.php on line 829")*

Hi,

Make sure that the "debug" setting of the joomla configuration is also turned off.
If both are turned off and you still see the deprecated messages, it means that your server setup is forcing the display of the error messages and in that case, you'll need to check with your hosting.
Note also that next version of HikaShop will come with patches for these so most of them should not happen anymore.

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

- **[altrasoluzione](/forum/user/46157-altrasoluzione "View altrasoluzione's Profile")**
- [![altrasoluzione's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46157.png)](/forum/user/46157-altrasoluzione "View altrasoluzione's Profile")
- [ Offline](/forum/user/46157-altrasoluzione)

Less More

- Posts: 33
- Thank you received: 1
-
- [](https://www.altrasoluzione.com)
-

3 years 2 months ago -  3 years 2 months ago [\#354965](#354965) by [altrasoluzione](/forum/user/46157-altrasoluzione "View altrasoluzione's Profile")  Replied by *[altrasoluzione](/forum/user/46157-altrasoluzione "View altrasoluzione's Profile")* on topic *[Depreciated warnings after upgrading to php 8.2](/forum/25-install-update/906905-depreciated-warnings-after-upgrading-to-php-8-2#354965 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.2  We have errors disabled in Joomla configuration. However, after upgrading to Joomla 4 and PHP 8.2 we are getting many depreciated warnings on our Hikashop pages. How do we disable these messages?  E.g. Deprecated: Creation of dynamic property plgHikashopShopclosehours::$ranges is deprecated in /public&#95;html/plugins/hikashop/shopclosehours/shopclosehours.php on line 181  Deprecated: Creation of dynamic property checkoutController::$workflow is deprecated in /public&#95;html/components/com&#95;hikashop/controllers/checkout.php on line 57  Deprecated: Creation of dynamic property plgHikashopMarket::$discountClass is deprecated in /public&#95;html/plugins/hikashop/market/market.php on line 829")*

Hi,
unfortunately this incompatibility (also with PHP 8.1.23) **is preventing one of my customers from uploading product images** due to this error: *"PHP Deprecated: Implicit conversion from float 232.71653543307087 to int loses precision in components/com\_hikashop/helpers/image .php online 1518, referer: index.php?option=com\_hikashop&amp;ctrl=product"*

Please, would you quickly address this aspect with a new version?
Thank you!
Kind regards

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

Last edit: 3 years 2 months ago by [altrasoluzione](/forum/user/46157-altrasoluzione "View altrasoluzione's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 2 months ago [\#354967](#354967) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Depreciated warnings after upgrading to php 8.2](/forum/25-install-update/906905-depreciated-warnings-after-upgrading-to-php-8-2#354967 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.2  We have errors disabled in Joomla configuration. However, after upgrading to Joomla 4 and PHP 8.2 we are getting many depreciated warnings on our Hikashop pages. How do we disable these messages?  E.g. Deprecated: Creation of dynamic property plgHikashopShopclosehours::$ranges is deprecated in /public&#95;html/plugins/hikashop/shopclosehours/shopclosehours.php on line 181  Deprecated: Creation of dynamic property checkoutController::$workflow is deprecated in /public&#95;html/components/com&#95;hikashop/controllers/checkout.php on line 57  Deprecated: Creation of dynamic property plgHikashopMarket::$discountClass is deprecated in /public&#95;html/plugins/hikashop/market/market.php on line 829")*

Hi,

My answer was only for the other deprecated messages that were provided by @dustinjc before, which were specific to PHP 8.2

This new deprecated message is for something else and has nothing to do with the deprecated messages from @dustinjc besides the fact that they are deprecated messages.

I've studied the issue today for a few hours but I don't see how it's possible to get that message for the line 1518 of the adminsitrator/components/com_hikashop/helpers/image.php file (which is what is referenced by your deprecated message) of HikaShop 4.7.5
I checked your account and I can see your subscription expired 2 years ago. So I'm suspecting you're using an old version of HikaShop, and that your line 1518 is not the same as the one I'm looking at.
In fact, a similar deprecated message was reported 10 months ago here:
[ www.hikashop.com/forum/hikaauction/905366-error-php/346670.html](https://www.hikashop.com/forum/hikaauction/905366-error-php/346670.html)
So there are several things I can say to you, knowing all that:
- if you are using an old version of HikaShop from 2 years ago, no wonder you get many deprecated messages on PHP 8.1. You can search for 8.1 on our changelog ( [ www.hikashop.com/support/documentation/5...ashop-changelog.html](https://www.hikashop.com/support/documentation/56-hikashop-changelog.html) ) and you can see that we fixed many deprecated messages for PHP 8.1 in the past 2 years. Chances are that just updating HikaShop to the latest version would fix your problem.
- Since you're likely not using HikaShop 4.7.5, I can't be sure where the problem is since the line numbers don't match. Please provide your HikaShop version. With this, I can potentially look into it and check whether this problem is still in the latest version of HikaShop or it is actually fixed by a patch we made before. If it's still an issue in the latest version of HikaShop, then I will make a patch for it for the next version of HikaShop, and I can provide it to you.
- As I said to @dustinjc, if both the "error reporting" and "debug" settings of the Joomla configuration are turned off, you should not see these deprecated messages. So please check that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNjkwNS1kZXByZWNpYXRlZC13YXJuaW5ncy1hZnRlci11cGdyYWRpbmctdG8tcGhwLTgtMj90bXBsPW1hcmtkb3du) 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.064 seconds

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