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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    176
    Thanks
    14
    Thanked 1 Time in 1 Post

    No error reporting in upgrade to 5.3.4

    Hi,

    Lost my error reporting after upgrading apache, php and mysql.

    Now running 2.2.17, 5.3.4, and 5.5.8.

    Set the php.ini to
    error_reporting[E_ALL] and display_errors On
    Write my script with
    <?php error_reporting(E_ALL);ini_set('error_reporting', E_ALL);?>
    However, when I code an error, I get a blank screen.

    What should I check next?

    Thanks,

    Andy
    Last edited by 1andyw; 12-24-2010 at 05:20 PM. Reason: Resolved

  • #2
    Senior Coder DJCMBear's Avatar
    Join Date
    Mar 2010
    Location
    United Kindom
    Posts
    1,173
    Thanks
    14
    Thanked 136 Times in 136 Posts
    Try using this as well. Worth a shot even if it is turned on lol.
    PHP Code:
    <?php
    ini_set
    ("display_errors",true);
    ?>
    Official BinPress hand picked coder.
    For anyone worried about SQL injection go have a look at my small yet powerful script here.
    Go Pledge for Light Table, if it hit's $300,000 Python and other languages will get added.
    I am 1 of 65,608 people to get a Pebble Watch :P

  • #3
    Regular Coder
    Join Date
    Jul 2006
    Posts
    176
    Thanks
    14
    Thanked 1 Time in 1 Post
    Thanks, DJCMBear. That got me back in business.

    This is a new warning for me:
    Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST
    I didn't find a listing for timezone in php.ini or httpd.config.
    Happen to know what file I should look in?

    Thanks,

    Andy

  • #4
    Senior Coder DJCMBear's Avatar
    Join Date
    Mar 2010
    Location
    United Kindom
    Posts
    1,173
    Thanks
    14
    Thanked 136 Times in 136 Posts
    Try using this for selecting your server timezone.

    PHP Code:
    date_default_timezone_set('DST'); 
    EDIT: List of timezones can be found here - http://uk.php.net/manual/en/timezones.php
    Official BinPress hand picked coder.
    For anyone worried about SQL injection go have a look at my small yet powerful script here.
    Go Pledge for Light Table, if it hit's $300,000 Python and other languages will get added.
    I am 1 of 65,608 people to get a Pebble Watch :P

  • Users who have thanked DJCMBear for this post:

    1andyw (12-24-2010)

  • #5
    Regular Coder
    Join Date
    Jul 2006
    Posts
    176
    Thanks
    14
    Thanked 1 Time in 1 Post
    Thanks.
    I followed your suggested link and arrived at this solution:
    date_default_timezone_set('America/New_York');
    Problem solved.


  • #6
    Senior Coder DJCMBear's Avatar
    Join Date
    Mar 2010
    Location
    United Kindom
    Posts
    1,173
    Thanks
    14
    Thanked 136 Times in 136 Posts
    I'm glad you fixed your problems.
    Official BinPress hand picked coder.
    For anyone worried about SQL injection go have a look at my small yet powerful script here.
    Go Pledge for Light Table, if it hit's $300,000 Python and other languages will get added.
    I am 1 of 65,608 people to get a Pebble Watch :P


  •  

    Posting Permissions

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