CalcBuilder Forum

Can't select calculator, errors

User moon_307 2012-02-25 19:04:31

Hi,

I can't select calculator in module (screen: http://www.real-logistics.pl/calc.gif)


On the page - http://www.real-logistics.pl/pl/kalkulator - I've errors:

Warning: Invalid argument supplied for foreach() in /modules/mod_calcbuilder/tmpl/user.php on line 335

Warning: Invalid argument supplied for foreach() in /modules/mod_calcbuilder/tmpl/user.php on line 374

Moonsoft support 2012-02-25 19:17:33

Hello,

To get rid of Warning messages you can change your Error Reporting level. Go to Global Configuration / Server and change the level to Simple or None.
Then try again your frontend.

Regards,

Moonsoft Team

User moon_307 2012-02-25 19:22:45

Yeah, but calculator doesn't work at all.

Moonsoft support 2012-02-25 19:34:26

Hello,

Please send us more infomation and we will try to help:

- Joomla version
- How did you installed? by Extension Manager or by ftp?
- Was any error during install?
- Did you try to reinstall module?

Thanks. Regards,

Moonsoft Team

User moon_307 2012-02-25 19:42:37

- Joomla version - 1.5.6
- How did you installed? by Extension Manager
- Was any error during install? No
- Did you try to reinstall module? Yes, it doesn't help

Moonsoft support 2012-02-25 20:01:53

Hi,
think we found your issue. Your joomla version seems to be building the module parameters in a slightly different way that the others (even 1.5.x ones). To get the list of the calculators to choose, please edit the file

joomla\modules\mod_calcbuilder\mod_calcbuilder.xml

and replace at this line


param name="prefsids" type="sql" default="-1" label="Select an article" query="SELECT id, name as title FROM #__calcbuilder_utility ORDER BY name" key_field="id" value_field="title"


(omitted open and close tags)

param name="prefsids" type="sql" default="1" label="Select a calculator" query="SELECT id AS value, name AS prefsids FROM #__calcbuilder_utility"


Tried here and solved the misconfiguration. We also attached the module rebuilt to download at customer download section.

Best regards

Edited by MSTeam - 25.02.2012 20:52

User moon_307 2012-02-26 08:13:13

Now it works :)
thanks

...
Support/development

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

Buy now!
...
Support/development 10 hours

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

Buy now!