Buttons not working after moving CI code to another server |
[eluser]wokdonka[/eluser]
Hi, all - I've just moved the CI code that I've been working with to another machine with a very similar setup (my laptop, actually) - Apache, PHP, etc. versions are the same on both - and now I can't get past the login page: clicking any of the buttons ('Submit', 'Forgot password', etc.), produces no results. There are no errors, no warnings, setting E_ALL doesn't show anything, setting $config['uri_protocol'] to any of the five available values doesn't change anything, and I have no idea what to try next. Again, all the MySQL stuff is set up correctly - I've double-checked the hostname, username, password, and database settings in database.php, and they're correctly set for my machine. The login page HTML looks just fine: Code: <h2>Please Log In Below</h2> I'd *really* appreciate some help!
[eluser]n0xie[/eluser]
Code: <form action="http://localhost/phone/index.php?/login/validate"
[eluser]wokdonka[/eluser]
[quote author="n0xie" date="1268453820"] Code: <form action="http://localhost/phone/index.php?/login/validate" And what is your guess, please? Just to forestall the obvious: 'http://localhost/phone/index.php' is a valid URL; '/var/www/phone/system/application/controllers/login.php' does exist, and the permissions are set correctly; 'validate()' exists in login.php and works fine on the "came from" server. The 'index.php?/foo' syntax seems to work fine on this machine (tested with a clean CI installation), and my $config['index_page'] is set to "index.php?". If your guess is *not* one of the above, I'd appreciate knowing what it is.
[eluser]danmontgomery[/eluser]
What do you mean "produces no results"? Nothing happens at all? Loads a white screen?
[eluser]wokdonka[/eluser]
[quote author="noctrum" date="1268456335"]What do you mean "produces no results"? Nothing happens at all? Loads a white screen?[/quote] Nothing happens at all. I click the 'Submit' button, release it, and nothing changes: no error, no blank screen - absolutely no response.
[eluser]jáquer[/eluser]
Not even a page load? Does the form submit and then return you back to where you where? edit: Wait, I got it. There's no submit button. You have a button named submit, but it has type="button" on it. You need to change that to type="submit". I don't see how it would have worked on a different server and not here though... edit2: It's the browser. Internet Explorer will accept it the way you have specified above, but all other browsers (and the W3C standard) call for a "submit" type. Source.
[eluser]wokdonka[/eluser]
Nothing - the form does not submit at all. I've even tried shoving a 'print_r($_POST)' into 'validate()', just to see if it would do anything (even throwing an header error would be *some* kind of an indication.) If I watch the Apache log with "tail -n 0 -f /var/log/apache2/access.log", it shows no activity whatsoever. I'm just completely befuddled by it.
[eluser]wokdonka[/eluser]
I hate to argue with you - thanks for the help, by the way - but it definitely does work: take a look at http://phoneutoo.com/index.php?/login . I'm using FF3.5.8, and nobody's ever complained about being unable to log in at the site. I'll try changing the type to 'submit', but that'll be taking it away from a known working configuration.
[eluser]jáquer[/eluser]
Hehehe. Hate to argue with you too, but the site you've linked clearly has: Code: <button name="submit" type="submit" >Submit</button> as the submit button. |
Welcome Guest, Not a member yet? Register Sign In |