Skip to main content
CalcBuilder logo
CalcBuilder Forum

Calcbuilder not working after updating to 6.0.9 and ListManager to 6.2.1

User Silvio De Boni

Hi
I did now update the staging website to Joomla 6.2 and so also updated calcbuilder and list manager to the newest versions.

The Calculation does not work any longer on any calculater.

The wheel just keeps turning. I tried to open and save the calculators but to no avail.

Could you please have a look at it (in an earlier support ticket you wrote the steps for the update which I followed).

Best regards

Silvio

Moonsoft support

Hi,
can you please share in the private section the user/passw so we'll enter and take a look?
Thanks, regards
Guillermo V.
Moonsoft Team

User Silvio De Boni

Yes, sure, is Administrator enough or do you need super user?

Regards

Silvio

Moonsoft support

Hi,
thanks. However with these data we're not able to pass the htaccess prompt, so we can't see the front end either, can you please check?

Thanks, regards
Guillermo V.
Moonsoft Team

User Silvio De Boni

Sorry, remove the protection now while you are working on it.

Moonsoft support

Hi,
ok, thanks. We have checked the site, and there are no problems with the new version. However, the php code of the calculators will need some upgrade because there are some core functions that change from Joomla 5 to Joomla 6 and also there are new restrictions added by php8 that the operations need to follow. We have already corrected one of the calculators (bleche), you will see a couple of blocks with the comment // Joomla 6-added, and one line removed //Joomla 6-removed. You will need to adapt the rest in the same way, please let us know if you prefer us to do the work.

Kind regards
Guillermo V.
Moonsoft Team

User Silvio De Boni

Hi
Thanks.
The weight is still not calculated on "bleche".
Do you mean this block
// 09/11/26 Joomla 6 added
use Joomla\CMS\Factory;
use Joomla\Database\DatabaseInterface;
$db = Factory::getContainer()->get(DatabaseInterface::class);

// 09/11/26 Joomla 6 removed
//$db = JFactory::getDbo();

and this block?

// 09/11/26 Joomla 6 added
$resultweight=floatval($resultweight);
$resultprice=floatval($resultprice);
$d53=floatval($d53);
$i53=floatval($i53);
$lange=floatval($lange);
$b=floatval($b);

How would I know for which variables I have to do that?

Eventually I have to do the update on the live website.

Best regards

Silvio

User Silvio De Boni

Hi

I saw now that you got weight also correctly displaying.

Meanwhile I did these changes on all other profiles and they seem to work, except these (which you also programmed originally)

Blechwanne
Blechring
Flanschplatte eckig nach Mass

Could you please have a look at this?

best regards

Silvio

Moonsoft support

Hi,
each calculator would need a closer look for the specific php upgrades required, but as most of your calculators have a similar structure, the main issue you will find with the new php8 is the number_format function (it doesn't allow to handle strings anymore). So we suggest to look for the variables that are handled by the number_format function across the code, and apply them the 'floatval' treatment just before the number format takes place. Please note this is a general tip, and it will surely solve most of your php upgrade, but in case the code is different among calculators, some other changes may be needed.

Hope this helps, regards
Guillermo V.
Moonsoft Team

User Silvio De Boni

Hi
Thank you for your help on this
.
The website had been running already a long time with php 8.x, and since a while with 8.4
This error showed up after updating from joomla 5 to 6.

Meanwhile I got all calculators working again.

Best regards

Silvio

Moonsoft support

Hi,
ok, great it worked, we close this ticket with this solution then. Then we guess the error messages thrown by php8 were already there, but maybe your error report setting at the dashboard was lower and they were not 'visible', and the upgrade to J6 showed them, together with the core change regarding Factory class.

Best regards

Silvio

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!