CalcBuilder Forum

Errors with php 8.1 for joomla 3

User Jean Machuron 2022-04-07 19:33:56

Hello
It seems like the version for joomla 3 has not been updated for php 8.1

Error is
Exception Type: TypeError
File: /administrator/components/com_calcbuilder/models/utility.php
Line: 423
Message: count(): Argument #1 ($value) must be of type Countable|array, null given

Could you correct it and elsewhere ?

thing like (is_countable($data) && count($data)) should be ok

Moonsoft support 2022-04-08 16:37:23

Hi,
the CB for J3 works with PHP8+, although any minor change may be needed for adjust the integration with other exts, like Virtuemart on your example, thanks for reporting.
We have uploaded a new version with the proper tweak before that line, so you can upgrade and try again now.

Thank you

User Jean Machuron 2022-04-13 09:52:44

Hi
Thanks for the update, however the version is not available on CalcBuilder but only on CalcBuilder extended ??

Moonsoft support 2022-04-13 10:22:47

Hi,
right,as that code is only present at the extended version,being the integration with VM.

User Jean Machuron 2022-04-25 11:39:01

Hi
Yes I understand but that's an issue because we have renewed for CalcBuilder until end of this year and that's impossible to download CalcBuilder Extended.
It's also impossible to renew subscription to CalcBuilder extended any longer on your website.
Can you tell me if I can safely suppress CaclBuilder Extended from our website and add the simple version without loosing all of our calculators ? or is there any other thing to do ?
BTW we don't use virtuemart at all on any website.
Thanks for the hint
Best regards

Moonsoft support 2022-04-25 13:13:57

Hi,
in fact you shouldn't have any issue, because with your purchase, you already have access to all needed versions. Even if Calcbuilder is not called 'extended' anymore, you can download this version from your dashboard. Just access your Calcbuilder tab, browse the right panel 'Previous releases' and scroll down to the latest version for Joomla 3 (3.4.5). The download will provide a '_pro' installer with the update commented above, you can use this installer to upgrade your actual version for Joomla 3.

Moonsoft support 2022-05-10 10:11:18

I am getting this exact same error.

Joomla says there is an update to 3.4.6 but I can see no such update for J3.x

An error has occurred.
0 count(): Argument #1 ($value) must be of type Countable|array, null given
Return to Control Panel

In the front end I get no result just Invalid Token

I've only just bought this but am close to requesting a refund.

Setting Value

PHP Built On Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Database Type mysql
Database Version 5.7.36-log
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 8.0.18
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.10.8 Stable 30-March-2022 13:28 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36

Moonsoft support 2022-05-10 10:38:36

Hi,

This issue was reported for a previous version, so you shouldn't be seeing that message if you are using latest version. Given your comment about the update, this seems to be the problem. Please access your dashboard and double check you have available the update/installer for 3.4.6 version. Install it and try again.

If you have further problems please let us know. Of course, you are also free for asking a refund within the guarantee period.

Regards,

Moonsoft support 2022-05-13 11:44:03

3.4.6 download has now appeared however, the archive is empty! The J4 download is fine but this one not.

Moonsoft support 2022-06-21 17:26:50

Hello,
after receiving some more feedback about the php 8 update, we have created a new version that solves all issues also regarding the internal libraries. We have marked it as 'only valid for php 8 ' to avoid confusion with other releases available for Joomla 3.

Edited by MSTeam - 21.06.2022 17:32

Moonsoft support 2022-08-03 20:48:41

It is only 1 kb file. Actually both 3.46 and 3.47 are only 1 kb file. How to download it and install. Thanks

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!