Moonsoft Software Solutions

Can't select calculator, errors

Started 25 Feb 2012 · 6 replies

  1. moon_307
    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
  2. Moonsoft support
    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
  3. moon_307
    Yeah, but calculator doesn't work at all.
  4. Moonsoft support
    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
  5. moon_307
    - 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
  6. Moonsoft support
    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
  7. moon_307
    Now it works :)
    thanks

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket