Fatal error: Class 'HTML_ChronoContact ... after upgd

randoms 04 May, 2009
I saved my forms, uninstalled Chronocontact 3.0STABLE, and mod_chronocontact 1.1.0. Then installed Chronoforms 3.1rc5 and mod_chronocontact 1.3/ V3.1 RC5, restored my two forms. I get the following error when trying to display a form module. (I've only tried the one, and only as a module).

Fatal error: Class 'HTML_ChronoContact' not found in /xxx/components/com_chronocontact/libraries/chronoform.php on line 133

I reinstalled a couple times, being sure to delete browser and server caches. I am running Joomla 1.5.9.

Any ideas what might be causing this?
GreyHead 04 May, 2009
Hi randoms,

Please check that you have the file 'components/com_chronocontact/chronocontact.html.php' in your installation and that the content is about 178 lines of code - just in case something go lost in transmission.

Bob
randoms 04 May, 2009
Hi GreyHead.

Thanks for the quick response!

Yea, the file chronocontact.html.php is there, all 178 lines. The fourth line is "* CHRONOFORMS version 3.1 ".
GreyHead 04 May, 2009
Hi randoms,

It's late here now. I'm guessing that there may be a path problem in the module code somewhere and it's not finding the class file to load.

Does the form run OK without the module?

Bob
randoms 04 May, 2009
GH,

Seems to work fine outside of the module.

/Randoms
Max_admin 04 May, 2009
Hi Randoms,

This is a bug with the module, I have applied a hotfix and uploaded a new file to the downloads area, please get the new file and install it instead of the module you have now, module ONLY, not the component😉

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
randoms 05 May, 2009
Thanks guys. That seemed to fix it.

/randoms
GreyHead 05 May, 2009
Hi randoms,

There was a bug in the module code. Max posted a hotfixed version earlier today. Please redownload the RC1.5 module, unistall the previous version and install the new one. Hopefully all will be well.

Bob
cmatte 05 May, 2009
I get a similar problem, and it's not solved with the last module (uninstalled and installed again), perhaps just because I'm not using it!
Perhaps it's because I'm experiencing a little different error, it says


        * LOADING FAILED::CustomCode Class

on the top of the form, loaded with a simple link to a chronoforms form.
I have a hint (I hope), since the form seems to generates a error about a not-found language file (.js) in the folder of the OLD default editor tiny_mce. I say old because I'm not actually using it, I'm using JCE everywhere and it's the one set as default, and it loads correctly on the page.
Thanks.
GreyHead 06 May, 2009
Hi cmatte,

Odd I can't see why you'd get that error on loading the form. From a quick scan of the code the CustomCode class should only be called when the form is submitted. At the moment I'm baffled, Max may have some clues.

I wonder if the editor is a clue - what happens if you try with a test form that doesn't use the editor? I can't see why ChronoForms woudl be calling an unused js file in that way.

Bob
cmatte 06 May, 2009
I've just another form without the editor and actually the page doesn't show that error.
If you or Max want to have a look I've done a super admin account so you can see what happens there. I'll send you details by pm in a minute.
Thanks.
GreyHead 06 May, 2009
Hi cmatte,

On the page you linked to there are some very odd things happening. The form appear to be loading twice - it's almost as if the form was loading inside itself. I couldn't untangle it.

You can see the ChronoForms form tag in the HTML at lines 702 and 866

If you link to . . ./index.php?option=com_chronocontact&chronoformname=submitcontent you can see that the form is fine without the module or plugin being used.

Bob
cmatte 06 May, 2009
Mmh, I doubted something similar. I've noticed when you continue to the confirmation page and come back to the previous page from there, the link "Joomla Professional Work" is loaded two times, and more if you do this multiple times!
I didn't get the chronoforms tag thing, I mean, I don't see any duplicate tag (I searched for chronoform in the source of the page and I don't find nothing duplicate), and seems the line of the page are 857, so I'm confused😑

Anyway, that's solved, I've simply used an external link and it just works as expected, thanks for the idea :wink:
Max_admin 08 May, 2009
Hi,

This is fixed and the new fixes will come out in RC5.1

the Loading failed message occurs when no form name is specified or its incorrect!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.