Welcome Guest, Not a member yet? Register   Sign In
Dropping Server Connection on migration from php4 to php5
#1

[eluser]RickRobinson[/eluser]
I have a web-based recipe book application built on CI and hosted by EH that has worked for years. It was hosted on an old server running php4. Recently, I needed to migrate to a different server with php5, and now I'm having some problems with the application that I suspect are differences between php4 and php5, or maybe something with moving from CI 1.7.3 to CI 2.0.3 (which I did at the same time as the server migration.)

The symptom is that I lose my server connection. Using Safari, I get this message:

Safari Can't Open the Page

"http:www.rickandlynne.com/recipes/new_index.php/webrecipes/search_submit"
because the server unexpectedly dropped the connection. This sometimes
occurs when the server is busy. Wait for a few minutes, and then try again.

I suspect it may be something in my code.

The "search_submit" function in my "web recipes" controller just grabs some $_POST data and then does a:

Code:
redirect('/webrecipes/index', 'refresh');

To invoke the "index" function and set up a search query.

Using debug code, I know this runs up to the "redirect" command, but then dies on that command and does not appear to enter the "index" function.

Feel free to try it out at the above URL. If you use "index" instead of "new_index" it will run on CI 1.7.3 instead of CI 2.0.3.

Any ideas of what I'm doing wrong and how to fix it?

Rick




Theme © iAndrew 2016 - Forum software by © MyBB