Mod_Chronoforms_J1.5_V4_RC3.0 - Breaking page

cb1 08 Mar, 2012
Hey,

I have a site with both versions of Chronocontact/chronoforms on it. Chrono Contact v3.2 AND Chronoforms_V4_RC3.2_J1.5

I loaded Chronoforms_V4_RC3.2_J1.5 on the site this morning as they need a new form. I will change an old existing form on there site to this version later.

I built the form, set up the module on a hidden "special" page during development. The module exists in position "right".

When I go to the page noew - with the module enabled - I get a blank page with this error message:

Fatal error:
 Cannot redeclare class CFChronoForm in /home/mydirectory/public_html/components/com_chronoforms/libraries/chronoform.php on line 382

Any help on what is causing this?
GreyHead 08 Mar, 2012
Hi cb1,

This is a bug, here's a quick fix that should sort it. Open the file for editing and add this line at around line 19
}
if ( !class_exists('CFChronoForm') ) { // <-- add this line
class CFChronoForm extends JObject{

then go to the very end of the file and add this line
	function set_array_value($array, $indexes, $value){
		eval('$array["'.implode('"]["', $indexes).'"] = $value;');
		return $array;
	}
}
}  // <-- add this line
?> // <-- add this one to be tidy

Bob
cb1 08 Mar, 2012
I put the code in now it is not recognizing the form.

"There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management. "


Can I PM you to take a look?
mbrando 05 Jun, 2012
Hi,

Has anyone got this to work. I have web site with the same issue. I'm using Joomla 1.5.25 with Chrono Forms 4.0 RC3.4.1.

I applied the above fix and now the {chronoforms}helpform{/chronoforms} does not work.

- Mike
GreyHead 06 Jun, 2012
Hi Mike,

This thread is about the ChronoForms module; the code you posted is for the Plug-in?

Do you have the correct version of the plug-in installed and enabled?

Do you have a form named helpform and is it published?

Please check that the tag is not wrapped in <p> tags - IE doesn’t like this.

Bob
mbrando 06 Jun, 2012
Hi,

Oh, missed that Mod_ part. Sorry.

We ended up removing it and rolling back v3.1 and addressed some css issues.

Thanks for the quick reply.

We are trying to get our customers upgraded from J1.5..x to 2.5.x with current Chronoforms. Chronoform on J2.5.x seems to work fine.

- Mike
This topic is locked and no more replies can be posted.