CalcBuilder Forum

Can't install new version - calculators don't work

User TheFencepedia 2024-11-11 21:33:11

Hi,

Not sure what you changed, but when I upgrade to the new version, my calculators don't work.

Any idea what might be causing that?

Good thing I backed up before I updated. I had to roll back to the backup to keep my site working.

User TheFencepedia 2024-11-11 21:38:37

Hi again,

I have Shack Error Notify installed, so I got this error report when I tried to run the calculator after upgrading Calcbuilder.

Seems like an issue with the custom PHP on the calculator, but they were all working with the version of Calcbuilder I have installed, and I really don't want to have to fix ALL my calculators because you changed something.

I assume there's an easy fix for this?

Moonsoft support 2024-11-12 09:25:01

Hi,

That's a very weird issue indeed and we are not able to reproduce here. Could you please provide at the private data section of the ticket, administrator url and any temp user with permission to access both the calculator and the backend? We'll debug at your site and we'll let you know how to fix asap.

Thanks. Regards,
Moonsoft team

User TheFencepedia 2024-11-12 16:22:42

That was a random generator that I ran after I updated to the latest version.

Since I have a LIVE site and I cannot have calculators that don't work, I have rolled back to the backed-up version I made BEFORE I updated it, so you cannot recreate the issue on the site.

I cannot upgrade to the latest version until this is fixed, so accessing my site won't solve the problem.

Please advise, and please also advise on my other ticket about the duplicated inputs. I need to fix that ASAP, too.

User TheFencepedia 2024-11-12 17:12:42

That was a random generator that I ran after I updated to the latest version.

Since I have a LIVE site and I cannot have calculators that don't work, I have rolled back to the backed-up version I made BEFORE I updated it, so you cannot recreate the issue on the site.

I cannot upgrade to the latest version until this is fixed, so accessing my site won't solve the problem.

Please advise, and please also advise on my other ticket about the duplicated inputs. I need to fix that ASAP, too.

User TheFencepedia 2024-11-12 17:13:16

Also, duplicate posting here too. Just like my calculator issue.

Moonsoft support 2024-11-13 09:47:27

Hi,
already posted on the other ticket but I copy again here so we can follow support in this open thread:


well, it's true that sometimes we manually close duplicated tickets, because some users open the same subject several times, but this is not the case. The system has not duplicated your thread, because the second one is being inserted almost an hour later, so we think maybe you refreshed the page afterwards or something similar, sending the same message twice, (not sure why it was showing closed though, as we have not closed any ticket regarding your user).

This forum has nothing to do with the Calcbuilder extension (this site is not even a Joomla site), so your problem with the duplicated options must have been a different issue in your specific site. Hard to tell without an access and no way to reproduce here, but maybe any file not loading, database records migrated from another version...if exporting/importing does the work, then we'd suggest to save again the fields on the 'working' one just to ensure it doesn't happen again, that would point out to a script not loading properly or conflicting with any other at that page.

Now the about pending issue (calculator not working on latest version), it should be easier to find, we only need you to export the affected calculator, and attach it to this ticket, we'll test it in the latest version and we'll let you know our findings.


Best regards
Silvia Martín
Moonsoft Team

User TheFencepedia 2024-11-13 19:28:35

Here's the calculator. I only tried one before I rolled back, but I assume they're all affected.

Here's the error report again:

Error Code 0
Error Type TypeError
Message explode(): Argument #2 ($string) must be of type string, array given
File /home/customer/www/drawafence.com/public_html/components/com_calcbuilder/Model/CalcbuilderModel.php
Line 1611
Protocol https
Host www.drawafence.com
Request /drawing-generators/commercial-industrial-chain-link-drawings/commercial-or-industrial-chain-link-fence/with-bottom-rail-in-concrete/commercial-or-industrial-chain-link-fence-with-bottom-rail-and-brace-in-concrete
Referrer https://www.drawafence.com/drawing-generators/commercial-industrial-chain-link-drawings/commercial-or-industrial-chain-link-fence/with-bottom-rail-in-concrete/commercial-or-industrial-chain-link-fence-with-bottom-rail-and-brace-in-concrete
Method POST
Remote 70.72.37.59 (S01063c2d9edfa746.dh.shawcable.net)
User Admin (325)


Type Function Class Line File
N/A explode N/A 1611 /components/com_calcbuilder/Model/CalcbuilderModel.php
D getEnvioWrapper Moonsoft\Component\Calcbuilder\Site\Model\CalcbuilderModel 1039 /components/com_calcbuilder/Model/CalcbuilderModel.php
D getCalculoWrapper Moonsoft\Component\Calcbuilder\Site\Model\CalcbuilderModel 400 /components/com_calcbuilder/Model/CalcbuilderModel.php
D getCalculo Moonsoft\Component\Calcbuilder\Site\Model\CalcbuilderModel 159 /libraries/src/MVC/View/AbstractView.php
D get Joomla\CMS\MVC\View\AbstractView 97 /components/com_calcbuilder/View/Calcbuilder/RawView.php
D display Moonsoft\Component\Calcbuilder\Site\View\Calcbuilder\RawView 697 /libraries/src/MVC/Controller/BaseController.php
D display Joomla\CMS\MVC\Controller\BaseController 75 /components/com_calcbuilder/Controller/CalcbuilderController.php
D display Moonsoft\Component\Calcbuilder\Site\Controller\CalcbuilderController 730 /libraries/src/MVC/Controller/BaseController.php
D execute Joomla\CMS\MVC\Controller\BaseController 143 /libraries/src/Dispatcher/ComponentDispatcher.php
D dispatch Joomla\CMS\Dispatcher\ComponentDispatcher 361 /libraries/src/Component/ComponentHelper.php
S renderComponent Joomla\CMS\Component\ComponentHelper 218 /libraries/src/Application/SiteApplication.php
D dispatch Joomla\CMS\Application\SiteApplication 261 /libraries/src/Application/SiteApplication.php
D doExecute Joomla\CMS\Application\SiteApplication 306 /libraries/src/Application/CMSApplication.php
D execute Joomla\CMS\Application\CMSApplication 58 /includes/app.php
N/A require_once N/A 32 /index.php


This is working the current version that's on my site, which is 5.3.0, so whatever is causing it came after that.

Moonsoft support 2024-11-14 11:11:41

Hi,
ok, we've tried your calculator here and it worked without problems with latest version, but we tracked the execution and found your system is not sending the email using the default Joomla framework classes. For such cases we added versions ago a function that tries to send it using an alternate method, that is the one you seem to have working at your site, but with the latest update it was facing a problem trying to handle the bcc parameter, because the new version now allows variables from the form both at the cc and bcc configuration parameters.

We have introduced a change in this function and now you should be able to send the emails again from the calculator without using your Joomla classes, so you can try now the upgrade to version 5.5.2, but anyway we suggest to check your Joomla email configuration or security settings of the server, in order to avoid problems with another components of functions of your site that may not include this 'emergency' function.

Best regards
Silvia Martín
Moonsoft Team



User TheFencepedia 2024-11-14 16:20:17

Hi,

My site sends emails through SMTP, which is vastly superior to PHP mail and is fairly common on Joomla sites.

I will back up and try the upgrade again later today.

Moonsoft support 2024-11-18 09:34:46

Hi,
right, smtp is the right way to send messages. However, when the extension tries to use the default core Joomla classes (so they would send using your configured/preferred system method), they throw an error, and that's way the alternative method is used. Not a real calcbuilder issue, but in case you want to investigate further, an access to check the logs would be needed, so we could take a quick look and point out the origin of the problem.

Regards
Silvia Martín
Moonsoft Team

...
CalcBuilder

Create dynamic calculators

Buy now!
...
Support/development

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

Buy now!