Deprecated: Automatic conversion of false to array is deprecated

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
6 months 1 week ago #161645 by Giang Dinh Truong
Dear Wynand,

I am not sure this is issue from EShop or not. Please submit a new ticket to EShop category to send me the super admin account to your site so I can help you to check.

Sincerely, Giang

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 months 1 week ago #161712 by Wynand Louw
Giang

Looking at the detail error log found the following showing php8.1.24 issue within the following file of Eshop:

PHP Deprecated:  round(): Passing null to parameter #1 ($num) of type int | float is deprecated in /home/mysite/public_html/modules/mod_eshop_product/tmpl/default.php on line 179
line 178 to 180 have the following code
    <p>
                                <img src="components/com_eshop/assets/images
/stars-<?php echo round(EshopHelper
::getProductRating($product->id)); ?>.png"
/>
                            </p>

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 months 1 day ago #161921 by Wynand Louw
Any suggestions how to fix this?

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
6 months 20 hours ago #161956 by Giang Dinh Truong
Hello Wynand,

Please re-download the latest package of EShop from our site and update it again to your site, then the problem will be resolved.

I am sorry for this trouble.

Sincerely, Giang
The following user(s) said Thank You: Wynand Louw

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 months 17 hours ago #161961 by Wynand Louw
Hi Giang

Redownloaded 3.8.0 but the issue is still the same error in the log.

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
5 months 1 week ago #162421 by Giang Dinh Truong
Dear Wynand,

That's strange. I fixed and updated it. Please contact with me via ticket system so I can help you to check.

Sincerely, Giang
The following user(s) said Thank You: Wynand Louw

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

  • Wynand Louw
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 months 5 days ago #162509 by Wynand Louw
Thank you Giang for sorting it out.

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
5 months 4 days ago #162555 by Giang Dinh Truong
OK no problem at all Wynand!

Sincerely, Giang

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

More
3 months 2 weeks ago #163561 by Andrew
I have the same issue with a fresh install of 3.8.0 on PHP 8.1, what was the fix?

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

More
3 months 2 weeks ago #163563 by Andrew
I can't try PHP 8.0 as it's a Joomla 5 site

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

Moderators: Giang Dinh Truong