Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    getting php "ghost" errors - anyone else seen this?

    I'm experiencing a problem in which "ghost" errors (for lack of a better term) are being displayed on my development server.

    Here is what I mean by "ghost" error:

    We have four developers, each with his own revision-controlled working directory. Occasionally, when one developer produces an error in his code in his working directory, the error will start randomly popping up in other developers' working web sites, even though the other developers' working web sites are not touching the code that the error is claiming to be triggered from.

    The error will indicate that it's being caused by an unrelated page to the one being loaded, too. Our production server has done this as well, but it is extremely rare when it does happen on the production server. We suspect php or apache settings or code are to blame. A page refresh or two always gets rid of the "error", but we're hoping to avoid it altogether, as it has become very annoying.

    Three relevant factors:
    We're using php session handling.
    Our development server is debian etch with php 5.2.0
    We're using a custom error handler implemented by set_error_handler(). Our ghost errors are usually displayed through this. But the error handler does not store error messages for redisplay. Additionally, the error handler triggers an email send and a database insert or update, and when ghost messages display, neither of these occur.

    Is it possible that something is corrupting apache or php caching or session handling? Anyone else seen anything like this?

    Screen shot of "ghost" error:


  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Thats in interesting situation, and since I have never worked with another development team on php work before, I cannot say I've ever replicated something like this. Closest I've come to is dirty reads from an oracle database.
    Although a corruption of some sorts is always a possibility, consider the number of 'errors' that exist (not the generated ones, but the interpreted ones). If this is the only 'error' that php is causing, I'd bet its more on a configuration issue. With an inclusion of a shared directory, try checking the path in your configurations, perhaps its looking at a different data than you anticipate. With a custom error trigger as well, it could be something that is being used within there.
    Sorry I cannot be of more help, but hopefully you will get it solved!
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Fou-Lu View Post
    Thats in interesting situation, and since I have never worked with another development team on php work before, I cannot say I've ever replicated something like this. Closest I've come to is dirty reads from an oracle database.
    Although a corruption of some sorts is always a possibility, consider the number of 'errors' that exist (not the generated ones, but the interpreted ones). If this is the only 'error' that php is causing, I'd bet its more on a configuration issue. With an inclusion of a shared directory, try checking the path in your configurations, perhaps its looking at a different data than you anticipate. With a custom error trigger as well, it could be something that is being used within there.
    Sorry I cannot be of more help, but hopefully you will get it solved!
    I think it might be our custom error handler - going to turn it off and see if this issue persists.

    Thanks for the advice!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •