Forums

Chronoforms Deactivates Plugin On Save.

Segellion 29 Oct, 2011
For some reason, on this particular site i'm working on, the plugins become deactivated. When the form submits with all the plugins turned off it throws a 500 error.

I've already retried uninstalling, and reinstalling the component.. which includes deleting the SQL tables left-over from install. Removing all the forms and adding them again. These forms were working, but I have no idea why they stopped.

I've been scratching my head at this for the past couple days, can anyone help?





GreyHead 31 Oct, 2011
Hi Segellion ,

Sounds like an issue with server security settings that are being triggered by the ChronoForms queries. Please check with your ISP to see if you can pin down the exact cause.

Bob
Segellion 01 Nov, 2011
But I do have some forms that are submitting.. it's just the ones that are writing to the database that don't seem to be working. Despite that you still think it's a server security issue?
GreyHead 02 Nov, 2011
Hi Segellion,

Sorry, I assumed that you were talking about saving forms from the Forms Manager. Please describe the problem in more detail. Are these Joomla Plugins that get disabled, or ChronoForms plugins?

Bob
Segellion 08 Nov, 2011
Sorry, let me clarify.

Also just a side note, I contacted my hosting company and they only informed me that the form is throwing the error
Call to undefined method stdClass::save() in /home5/sachalon/public_html/dustin/components/com_chronocontact/libraries/customcode.php(64)


So back on topic. I have 3 forms that are essentially registration forms. When I enable the "Joomla Registration" form, or "CB Registration" plugin, the form throws a 500 error. Also I thought it was worth mentioning that when the plugin is enabled, it disappears from the list of plugins.

I hope that straightens it out..

Thanks
GreyHead 08 Nov, 2011
Hi segellion,

As far as I can see Line 64 doesn't call a save() method - it does appear to be the line that evaluates the OnSubmit Before Email code box. Do you have any PHP in there?

Bob
Segellion 08 Nov, 2011
No i haven't put any coding into the form, or component. In fact i've uninstalled and re installed the component and all forms since I started experiencing this error. And i've never had this problem on any of my other websites either..
GreyHead 08 Nov, 2011
Hi Segellion,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

This is ChronoForms 3.2?

Bob
GreyHead 09 Nov, 2011
Hi Segellion,

Thanks for the backups.

Here's the code snippet that you have in the OnSubmit Before Email box that is causing the error:
<?php
$user->usertype = "Author"; 
$user->gid=19;
$user->save(); 
?>

I'm not completely sure what this is intended to do but it should probably be
<?php
$user =& JFactory::getUser();
$user->usertype = "Author"; 
$user->gid=19;
$user->save(); 
?>

Bob
Segellion 11 Nov, 2011
Ridiculous.. I put that code in there a year ago and totally forgot about it.. *facepalm*

So sorry about that Greyhead, thanks very much for your help.
This topic is locked and no more replies can be posted.