2.5RC2 Validation Bug w/ Fix

Please post any ChronoForms bugs you found here

2.5RC2 Validation Bug w/ Fix

Postby mikemsd on Fri Apr 11, 2008 3:43 am

This bug affects ChronoForms 2.5 RC2 with users using validation for forms located underneath a subdirectory. This issue exists for mooTools, I believe it also exists for prototype, but have not looked into fixing that as we use moo. For example a form located at:

http://www.yourwebsite.com/subdir/Forms/form.html

When rendering the form, ChronoForms will render to look for the javascript at:

http://www.yourwebsite.com/subdir/compo ... idation.js

instead of:

http://www.yourwebsite.com/components/c ... idation.js

This will cause a 404 on the script as it is not located underneath the subdirectory, and cause a script error in IE indicating that 'Validation' is undefined.

In order to resolve this, the following change needs to be made to:

components/com_chronocontact/chronocontact.html.php

Change the following

From:

Code: Select all
<script src="components/com_chronocontact/js/mootools-release-1.11.js" type="text/javascript"></script>
<script src="components/com_chronocontact/js/mooValidation.js" type="text/javascript"></script>


To:

Code: Select all
<script src="/components/com_chronocontact/js/mootools-release-1.11.js" type="text/javascript"></script>
<script src="/components/com_chronocontact/js/mooValidation.js" type="text/javascript"></script>


This will cause the browser to look for the file in the root of the website always, rather than point to the subdirectory.
mikemsd
Fresh Boarder
 
Posts: 2
Joined: Thu Apr 10, 2008 8:33 pm

Re:2.5RC2 Validation Bug w/ Fix

Postby admin on Fri Apr 11, 2008 4:46 am

Thanks so much mike for sharing this!

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3173
Joined: Mon Aug 14, 2006 5:29 am

Re:2.5RC2 Validation Bug w/ Fix

Postby mikemsd on Mon May 19, 2008 7:44 pm

Hi,

Just to let you all know, this is not fixed in 2.5 RC3.1. We upgraded and I had to manually patch.
mikemsd
Fresh Boarder
 
Posts: 2
Joined: Thu Apr 10, 2008 8:33 pm

Re:2.5RC2 Validation Bug w/ Fix

Postby admin on Thu May 22, 2008 11:41 pm

Hi, I think this was posted 2 or 3 days after the 3.1 release, will fix in the next version! :)

Thanks!

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3173
Joined: Mon Aug 14, 2006 5:29 am


Return to ChronoForms Bugs

Who is online

Users browsing this forum: No registered users and 2 guests