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

#   deprecated message : Creation of dynamic property hikaserialPackType::$app

##

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

Less More

- Posts: 49
- Thank you received: 8
-
-

2 years 1 month ago [\#363517](#363517) by [sl1200mk2](/forum/user/44915-sl1200mk2 "View sl1200mk2's Profile")  *[deprecated message : Creation of dynamic property hikaserialPackType::$app](/forum/16-serial-bug-report/908669-deprecated-message-creation-of-dynamic-property-hikaserialpacktype-app#363517 "-- HikaShop version -- : 5.1.1 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.2.23 -- Browser(s) name and version -- : chrome  Hi,  using hikaserial, we got this message :  Deprecated: Creation of dynamic property hikaserialPackType::$app is deprecated in /home/zzzzzz/public&#95;html/administrator/components/com&#95;hikaserial/types/pack.php on line 16  even if error reporting is set to &quot;none&quot;. It shows up while modifying end of subscription date on save (administrator/index.php?option=com&#95;hikaserial&amp;ctrl=subscription) :  According to this post :   stackoverflow.com/questions/74878889/php...operty-is-deprecated  there are solutions.  Waiting the correction, which one do you suggest to implement ?  Thanks  Laurent p/o Nicolas")* was created by *[sl1200mk2](/forum/user/44915-sl1200mk2 "View sl1200mk2's Profile")*

-- HikaShop version -- : 5.1.1
-- HikaSerial version -- : 5.0.0
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.2.23
-- Browser(s) name and version -- : chrome

Hi,

using hikaserial, we got this message :

Deprecated: Creation of dynamic property hikaserialPackType::$app is deprecated in /home/zzzzzz/public_html/administrator/components/com_hikaserial/types/pack.php on line 16

even if error reporting is set to "none". It shows up while modifying end of subscription date on save (administrator/index.php?option=com_hikaserial&amp;ctrl=subscription) :

[ ![Capture.PNG](/forum/attachment/59807) ](/forum/attachment/59807 "Capture.PNG")

According to this post : [ stackoverflow.com/questions/74878889/php...operty-is-deprecated](https://stackoverflow.com/questions/74878889/php-warning-deprecated-creation-of-dynamic-property-is-deprecated) there are solutions.

Waiting the correction, which one do you suggest to implement ?

Thanks

Laurent p/o Nicolas

- [ ![Capture.PNG](/forum/attachment/59807) ](/forum/attachment/59807 "Capture.PNG") [ ](/forum/attachment/59807?download=1 "Capture.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE2LXNlcmlhbC1idWctcmVwb3J0LzkwODY2OS1kZXByZWNhdGVkLW1lc3NhZ2UtY3JlYXRpb24tb2YtZHluYW1pYy1wcm9wZXJ0eS1oaWthc2VyaWFscGFja3R5cGUtYXBwP3RtcGw9bWFya2Rvd24=) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

2 years 1 month ago [\#363538](#363538) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[deprecated message : Creation of dynamic property hikaserialPackType::$app](/forum/16-serial-bug-report/908669-deprecated-message-creation-of-dynamic-property-hikaserialpacktype-app#363538 "-- HikaShop version -- : 5.1.1 -- HikaSerial version -- : 5.0.0 -- Joomla version -- : 5.1.4 -- PHP version -- : 8.2.23 -- Browser(s) name and version -- : chrome  Hi,  using hikaserial, we got this message :  Deprecated: Creation of dynamic property hikaserialPackType::$app is deprecated in /home/zzzzzz/public&#95;html/administrator/components/com&#95;hikaserial/types/pack.php on line 16  even if error reporting is set to &quot;none&quot;. It shows up while modifying end of subscription date on save (administrator/index.php?option=com&#95;hikaserial&amp;ctrl=subscription) :  According to this post :   stackoverflow.com/questions/74878889/php...operty-is-deprecated  there are solutions.  Waiting the correction, which one do you suggest to implement ?  Thanks  Laurent p/o Nicolas")*

Hello,

Thank you for the feedback.
The patch is simple, the best is to simply remove the __construct function Code:

public function __construct() { $this-&gt;app = JFactory::getApplication(); }

Since the Joomla Application is not used anymore in the rest of that class.

Regards,

---

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

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.059 seconds

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