Forums

406 Not Acceptable Error

aztommyb 02 Oct, 2007
Hello! When I try to edit my form code, I keep getting this error:

406 NotAcceptable

Not Acceptable
An appropriate representation of the requested resource /administrator/index2.php could not be found on this server.

Apache/1.3.37 Server at internetmerchantforum.com Port 80

I'm not sure what to do about it.

This happened after I created a table for my first form.

My system is:
Joomla 1.0.12
ChronoForms 2.3.4

Link to my form here

It throws that error every time I edit the form html, and try to click "save"

Thanks for your help!
tom

Edited to add quote tags and url tags to long link<br><br>Post edited by: GreyHead, at: 2007/10/02 16:48
aztommyb 02 Oct, 2007
Please disregard my question. I am going to uninstall Chronoforms. I tried creating a new form,and the verification code isn't showing up, even though it's on. When the form is submitted, it says "wrong code". Along with the other problems posted here, it seems that this product has a little ways to go to be stable. I'll check back in a few months.

Thanks!
tom
Max_admin 02 Oct, 2007
Hi Tom,

I understand you had bad time with ChronoForms today, it seems your host applies a very high security policy, some users have this problem with the Joomla Core itself!!

Look here :

Joomla 1.0.13 : http://forum.siteground.com/archive/index.php/t-3468.html

Mambo : http://forum.mamboserver.com/showthread.php?t=32264

So you would get this error sooner or later!!

For problem 2, it would be caused by the same reason however If you can get chronoForms back we can work together to fix it🙂

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
clockworkcoder 18 Dec, 2007
I also think it might be something that ChronoForms is doing - perhaps what is allowed in some of the fields. I've had the same problem with ChronoForms, and now with ChronoPerfilador on two independant servers.

The error I got with ChronoPerfilador I managed to track down as it happened when I used the javascript code from the provided example sql (i.e. it worked when I first added the samples via SQL, but when I made any changes I got the "Not Acceptable" error):

function submitbutton_reg() {
            var form = document.ChronoPerfilador_wcRegister;
            var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i"«»);

            // do field validation
            if (form.username.value == ""«») {
                alert( "Please enter a User name." );
            } else if (form.name.value == ""«») {
                alert( "Please enter a Name." );
            } else if (r.exec(form.username.value) || form.username.value.length < 3) {
                alert( "Please enter a valid Username:.  More than 2 characters and contain 0-9,a-z,A-Z" );
            } else if ( form.email.value == ""«») {
                alert( "Please enter a valid e-mail address." );
            } else if (form.password.value.length < 6) {
                alert( "Please enter a valid password.  No spaces, more than 6 characters and contain 0-9,a-z,A-Z" );
            } else if (form.verifyPass.value == ""«») {
                alert( "Please verify the password." );
            } else if ((form.password.value != ""«») && (form.password.value != form.verifyPass.value)){
                alert( "Password and verification do not match, please try again." );
            } else if (r.exec(form.password.value)) {
                alert( "Please enter a valid Password:.  No spaces, more than 6 characters and contain 0-9,a-z,A-Z" );
            } else {
                form.submit();
            }
        }


The lines that caused the problem were:
r.exec(form.username.value)
r.exec(form.password.value)

Post edited by: clockworkcoder, at: 2007/12/17 23:07<br><br>Post edited by: clockworkcoder, at: 2007/12/17 23:09
clockworkcoder 18 Dec, 2007
Further to the above, autogenerated code is also causing the problem:

<?php 
	global $database;
	
$database->setQuery( "INSERT INTO #__chronoperfilador_2 VALUES  (
'' , '". date('Y-m-d')." - ".date("H:i:«»s"«»)."', '".$_SERVER['REMOTE_ADDR']."', '".$cuser_id."' , '".$_POST['firstname']."' , '".$_POST['lastname']."' , '".$_POST['username']."' , '".$_POST['email']."' , '".$_POST['cb_address']."' , '".$_POST['cb_address2']."' , '".$_POST['cb_city']."');" );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>
";
}
?>


To get around this at the moment, I'm having to copy out the code, make the changes and save them, and then paste the code back using phpMyAdmin.
clockworkcoder 19 Dec, 2007
Thanks GreyHead, I'm ahead of you😉

ee here

However, I thought it worth pointing out here for reference, as as both components have similar roots, their problems may be in some way related.

If it helps with the development process, it helps me too🙂<br><br>Post edited by: GreyHead, at: 2007/12/19 15:25
Max_admin 19 Dec, 2007
Hi clockworkcoder,

Thanks for pointing to this issue here and at ChronoJoomla, Let's try to find the reason as this doesn't happen for me here at all, first regarding the autogenerated code, if you removed the line below, does this solve the problem ?


echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>
";


Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.