PHP does not report errors!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • thegreatpain@gmail.com

    PHP does not report errors!

    I have no idea how this happened, but PHP (5.1.2) on my dev server
    stopped telling me about errors. There's nothing in the server log
    either.
    I redownloaded PHP and used php.ini-recommended (only setting
    display_errors = On). After restarting, it still returned blank pages
    rather than error messages.
    So I deleted php.ini and restarted the server, and suddenly error
    reporting came alive!

    Where have I buggered up?

  • Carl Vondrick

    #2
    Re: PHP does not report errors!

    thegreatpain@gm ail.com wrote:[color=blue]
    > I have no idea how this happened, but PHP (5.1.2) on my dev server
    > stopped telling me about errors. There's nothing in the server log
    > either.
    > I redownloaded PHP and used php.ini-recommended (only setting
    > display_errors = On). After restarting, it still returned blank pages
    > rather than error messages.
    > So I deleted php.ini and restarted the server, and suddenly error
    > reporting came alive!
    >
    > Where have I buggered up?
    >[/color]
    Odd -- the exact same thing happened to me on 5.1.1 today. When did it
    start for you? I smell a conspiracy! :p

    I guess I'll just delete it rather than fixing my .ini file.

    --
    Carl Vondrick
    Professor of Computer Science at Columbia University, researching computer vision, machine learning, and AI applications.

    usenet [at] carlsoft [dot] net

    Comment

    • rlee0001

      #3
      Re: PHP does not report errors!

      Just a guess but, you may have more than one copy of php.ini. If you
      have one in WinNT for example, and one in your php folder, the one in
      WinNT gets used IIRC. But in any case, a change to the PATH search
      order could have switched them. When you delete one of them, PHP is
      forced to use the other. Did you install any new software that might
      have changed or reset the PATH?

      Comment

      • thegreatpain@gmail.com

        #4
        Re: PHP does not report errors!

        This must've started a few days ago, as I haven't seen any error
        messages in a good while. What did you do?

        Deleting the file is no solution though. I need the extensions, and who
        knows what the default values are..

        Comment

        • thegreatpain@gmail.com

          #5
          Re: PHP does not report errors!

          Already checked. There is no other php.ini on the drive, not in the
          Windows dir or any of the system dirs. I even did a search on php.ini,
          but all it found was php.ini-dist and php.ini-recommended.
          The path variable remains unchanged - it still points to the PHP dir.
          And it obviously works too, put a php.ini in the PHP dir, and it'll
          read it alright.

          As I wrote in my original post, even if I take the original file -
          php.ini-recommended - rename it php.ini, turn on display_errors and
          restart the server, it still won't honour my humble request.

          Comment

          • Carl Vondrick

            #6
            Re: PHP does not report errors!

            thegreatpain@gm ail.com wrote:[color=blue]
            > This must've started a few days ago, as I haven't seen any error
            > messages in a good while. What did you do?
            >
            > Deleting the file is no solution though. I need the extensions, and who
            > knows what the default values are..
            >[/color]
            Hmm.. I simply did this:

            # mv php.ini php.ini~
            -- restart server --
            # mv php.ini~ php.ini
            -- restart version --

            And it worked! Odd.

            --
            Carl Vondrick
            Professor of Computer Science at Columbia University, researching computer vision, machine learning, and AI applications.

            usenet [at] carlsoft [dot] net

            Comment

            Working...