Possible causes of 404 errors?

mrea 01 Dec, 2011
Hi all
I am running a form which loads OK but after submitting goes to a 404 error (page not found).
How is this possible given that it is the same page that the form was displayed upon?

http://website.com/index.php?option=com_content&view=article&id=9:create-poll&catid=5:polls&Itemid=12

http://website.com/index.php?option=com_content&view=article&id=9:create-poll&catid=5:polls&Itemid=12&chronoform=CreatePoll&event=submit

The form contains...
-an on load event (custom code)

-some user fields including one dynamically-filled box

-an on submit event (check recaptcha and custom code)

I dont see how it can fail when it is the same page - is there a way to debug the page as absolutely no info is shown on the error.??

Thanks for your help, marc
GreyHead 01 Dec, 2011
Hi mrea,

This looks to be a URL problem - if you look at the return url it includes a mixture of parameters from the Content and ChronoForms extension with maybe a bit of Polls and a Menu ID thrown in.
option=com_content
view=article
id=9:create-poll
catid=5:polls
Itemid=12
chronoform=CreatePoll
event=submit

I'm not sure what it needs to be but I can see why this is giving you a 404.

Bob
Max_admin 01 Dec, 2011
Hi Marc,

Please try to do this:

#1- Remove all actions in the "on submit" event and see if the error goes away.
#2- Disable your website's cache temporarily and retest.
#3- Set the "Error reporting" in Joomla global configuration to "Maximum" and see if you will see any error messages after you submit the form.

The URL parameters look odd as Bob mentioned BUT if you are using the Chronoforms plugin to show the form inside an article page then the URL parameters should be ok because they will be a mix of both.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mrea 02 Dec, 2011
thanks guys
i tried your suggestions but still not working and still no log output
any other ideas?
mrea 02 Dec, 2011
Hi guys
...well I figured it out - the form did not like me to have a textbox component called 'option' - i changed the name to my_option and all works fine - thanks again - and maybe you can add this to the documentation (for stupid people like me!)
marc
GreyHead 02 Dec, 2011
HI Mrea,

Hmm, well caught. That has come up before but fortunately pretty rarely. Best to avoid any of the common Joomla! URL parameter names: option, task, view, tmpl, etc

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