Link to home
Start Free TrialLog in
Avatar of Neil Thompson
Neil ThompsonFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Apache / PHP issue, 1 page on my site has suddenly stopped outputting content 1/2 way through?

Hi

I have a page within a payment system (PHP 5.6.0 served by Apache 2.4.10) which all of a sudden has literally stopped outputting 1/2 way down a page cutting off all the HTML.

Any ideas what may be suddenly causing this? The server has not been altered this week, neither has the code, i'm stumped as it has worked for the last 9+ months

Every other payment on the server (over 50 written exactly the same, although smaller amounts of HTML works fine. The page that is stopping does have around 150 <option> elements but its always worked until now.

 <option value=""></option>
          <option value="club-gaming-club-machine-permit-existing-operator" >Club Gaming Club Machine Permit Existing Operator :: &pound;100.00</option>
          <option value="club-gaming-club-machine-permit-new-operator" >Club Gaming Club Machine Permit New Operator :: &pound;200.00</option>
          <option value="club-gaming-club-machine-permit-renewal" >Club Gaming Club Machine Permit Renewal :: &pound;100.00</option>
          <option value="club-gaming-club-machine-permit-variation" >Club Gaming Club Machine Permit Variation :: &pound;50.00</option>
          <option value="club-gaming-club-machine-permit-copy" >Club Gaming Club Machine Permit Copy :: &pound;15.00</o     <---- STOPPING AT RANDOM POSITIONS

Open in new window


there are no errors in the log files or shown when "display errors" switched on. I've ruled out network issues as this does the same when logged in directly on the server via localhost.

Thanks
Neil
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Neil Thompson

ASKER

Many thanks Ray

I'll give this a go. Got to admit this has stumped me so far, mostly due to the lack of any errors, anywhere.

I've even cut out chunks of the code (where it's pure HTML) and the page works, putting it back a few lines at a time works until you reach a certain amount of code (everything I'm cutting is just <select> <options>. Deleting earlier <options> then makes it work again so I know its not the HTML.

I'll try your comments above but I'm starting to think this may be more the Apache server based.

Thanks as always for your help

Neil
Might be good to set up a test bed that has nothing but HTML - no PHP, no SQL, no JavaScript, no CSS, and see if that alone can reproduce the failure.  I've never heard of a strict limit on select-options, but there may be something "under the covers" that we've never encountered before.

Do you know the exact byte count of the output document at the point of failure?
I'll try that Ray, I was trying to work out the byte count yesterday but I'm not sure how to do that?

I tried altering the output buffering to double the standard 4096 but that had no effect last night.
For the byte count, I would use "view source" and copy / paste the result into a text editor.  Most of them can give you a document length.
Sorry for the delay in replying Ray.

Nothing seemed to give a definitive answer playing around and the count kept changing.

Seeing as there were no errors at all appearing I thought the issue may have been with Apache. Over the weekend I reinstalled exactly the same version, with the same configuration and it worked perfectly.

Weird how this has been fine for 9+ months but at least its working again now. I'll keep a closer eye on Apache from now on rather than my PHP code :)

Thanks for you help as always.

Neil