PHP 7.4 -> 8.0 Upgrade issues

  • Posts: 303
  • Thank you received: 18
1 year 11 months ago #347359

-- HikaShop version -- : 4.7.0
-- Joomla version -- : 3.10.11
-- PHP version -- : 8.0
-- Error-message(debug-mod must be tuned on) -- : Warning: Narrowing occurred during type inference of ZEND_FETCH_DIM_W. Please file a bug report on bugs.php.net in /home/dh_gkukut/clone_9.24.22/administrator/components/com_hikashop/helpers/helper.php on line 1428

After upgrade from php 7.4 to php 8.0, i see the following warning display intermittently (e.g., reloading a page 20 times might only yield this warning 20% of the time):

Warning: Narrowing occurred during type inference of ZEND_FETCH_DIM_W. Please file a bug report on bugs.php.net in /home/dh_gkukut/clone_9.24.22/administrator/components/com_hikashop/helpers/helper.php on line 1419

I decided to upgrade to hikashop 4.7.0 since changelog indicated some php 8 fixes, but then the error just migrated further down into the helper:

Warning: Narrowing occurred during type inference of ZEND_FETCH_DIM_W. Please file a bug report on bugs.php.net in /home/dh_gkukut/clone_9.24.22/administrator/components/com_hikashop/helpers/helper.php on line 1428

I tried turning on joomla debug and have error reporting set to development. No additional details in the debugger :(

From other forum posts, it seems the above error has been detected due to other issues, but the error itself is pretty vague. Any thoughts?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 11 months ago #347363

Hi,

The error message points at a wrong file / line number. This was reported to the PHP project in April and PHP 8.1.6 now includes a fix so that it displays the proper file and line number. You can read more about this here:
github.com/php/php-src/issues/8251

With the correct file and line number, we should be able to move forward on the issue. So, if you can, please update to PHP 8.1.6 or newer and provide the new error message you'll see. That way, we can look into it and maybe report it to PHP as it might still be something that needs to be fixed in PHP.

In the mean time, you can turn off the "error reporting" and "debug" settings of the Joomla configuration and it will hide these warnings as they are not real errors and don't change the behavior of HikaShop / Joomla. They are there only for developers to act upon it, and as a user you can ignore them.

The following user(s) said Thank You: mojooutdoors-holden

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

  • Posts: 303
  • Thank you received: 18
1 year 11 months ago #347382

Understood. I plan on moving to php 8.1 in the spring when i move from joomla 3 -> 4. I will report back once i've upgraded.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum