Internal Server Error with chronocontact content plugin

si sinemac 13 Oct, 2009
I'm getting a dreaded Internal Server Error when loading one of my forms into an article using the chronocontact content plugin.
http://www.tapintu.com/index.php?option=com_content&view=article&id=37

The odd thing is that the same form works fine when accessed directly:
http://www.tapintu.com/pre-release-testing

Another odd thing is that the chronocontact content plugin works fine with other forms... so it's not just the plugin, there's got to be something about the form. The only thing I can think of off-hand that I know is different than other forms I've had that work is that it's using some javascript to do the country/state change (i.e., Canada/US with the state/province field dynamically changing depending on country).

Could the javascript be conflicting with the plugin? If so, is there a way to fix it (other than getting rid of the javascript)?

Could it be something else?

Thanks,
Scott
Gr GreyHead 13 Oct, 2009
Hi Scott,

I don't see anything obvious, and your JavScript looks innocent enough.

I think that the debug approach is to remove things until the problem goes away. I'd feel tempted to start with the ReCaptcha :-(

Bob

PS The Plugin works OK with the ReCaptcha but without the template
si sinemac 13 Oct, 2009
Thanks Bob!

Hmmm... interesting observation.

Okay, so I've tested...

The problem is the following combination:

javascript for the country/state change + embedded in article using plugin + template

The following all work:
[list]
  • javascript for country/state change + embedded in article - no template

  • javascript for country/state change - not embedded in article + template

  • no javascript for country/state change + embedded in article + template
  • [/list]

    So, it appears to be some weird combination of that javascript, my template, and the content plugin - remove any one of those elements, and the form works just fine.

    So, I can work around this... but if there's a fix possible, I'd prefer trying that route.

    Thanks,
    Scott
    si sinemac 13 Oct, 2009
    After lots more testing, I found the problem...

    First, I found that it worked with other templates, but not any of the RocketTheme templates I had (my main template is a heavily modified RocketTheme template).

    Looking around the template files and doing a lot of trial and error testing by disabling various bits, I wasn't getting anywhere, so I looked to the RocketTheme plugins. After more trial and error, I discovered two plugins that were conflicting with the javascript + chronocontact plugin + template.

    Disabling the RokCandy and RokZoom plugins fixed the problem (RokZoom should have been disabled anyway, as it's been replaced by RokBox, which works fine). But, with either of those plugins enabled, there's a conflict somewhere that will lead to that Internal Server Error. Fortunately, I can live without RokCandy.

    Scott
    Gr GreyHead 13 Oct, 2009
    Hi Scott,

    Thanks for that detective work, I'll take a note. We are in contact with Rocket Theme about a conflict with the forum theme here, we might ask about this one too.

    Bob
    si sinemac 14 Oct, 2009
    Hi Bob,

    Well, if they do find something with RokCandy + RT themes + chronocontact plugin + a little javascript to do country/state switches, let me know. :wink:

    Take care,
    Scott
    This topic is locked and no more replies can be posted.