Closed Thread
Results 1 to 4 of 4

Thread: Strict Standards: require() error

  1. #1
    nick19kvm19 is offline x10Hosting Member nick19kvm19 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    5

    Post Strict Standards: require() error

    i get the following error frequently!! (on my SMF)


    Strict Standards: require() [function.require]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'EDT/-4.0/DST' instead in /home/freeforu/public_html/Sources/Load.php on line 2788

    Warning: require(/home/freeforu/public_html/cache/data_734b3f20f8d1e7dcecc3028a465f95e9-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /home/freeforu/public_html/Sources/Load.php on line 2788

    Strict Standards: require() [function.require]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'EDT/-4.0/DST' instead in /home/freeforu/public_html/Sources/Load.php on line 2788

    Fatal error: require() [function.require]: Failed opening required '/home/freeforu/public_html/cache/data_734b3f20f8d1e7dcecc3028a465f95e9-SMF-modSettings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/freeforu/public_html/Sources/Load.php on line 2788

    that is while making changes in the forum.. while adding content to the forum... and when user on my site try to register...

    I CONSULTED THE EXPERTS THERE ABOUT THE PROBLEM,
    THIS IS THE SOLUTION THEY GAVE...

    Fix the timezone issue first, by putting a date.timezone entry in your php.ini file (that's the easiest fix). Report back if that fixes both issues or just the timezone warning. Were you originally installed on a PHP 4 system? If so, when it was upgraded to PHP 5.3, it was lacking a database settings entry for the default timezone string.

    Hey developers -- how about something to detect that you're at PHP 5.3+ but have no default timezone name, and to prompt the administrator to fix it? SMF already gets the timezone name on each page, and should know the PHP major and minor version.



    AS I DO NOT HAVE ACCESS TO php.ini file.. i request u to fix the problem according to the solution given by one of the staff members at SMF...thank you!

  2. #2
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Strict Standards: require() error

    Hello,

    I have forwarded this message onto the admins. In the meantime, however, you may wish to use the date_default_timezeone_set() function
    Also, x10 is still on PHP 5.2 for the time being.
    Last edited by Skizzerz; 07-04-2011 at 12:16 PM.

  3. #3
    nick19kvm19 is offline x10Hosting Member nick19kvm19 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    5

    Post Re: Strict Standards: require() error

    HOW DO I use the date_default_timezeone_set() function

  4. #4
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Strict Standards: require() error

    in your SMF index.php file, add the following as the first thing in the file (under the <?php):
    date_default_timezone_set( 'America/Chicago' );

Closed Thread

Similar Threads

  1. PHP Strict Standards?
    By sonicsshadow in forum Free Hosting
    Replies: 0
    Last Post: 05-21-2011, 08:30 PM
  2. Smarty( Fatal error: require() [function.require] )
    By AsianX in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 04-22-2009, 04:02 PM
  3. Mediawiki Error/function.require
    By bbwitt in forum Free Hosting
    Replies: 2
    Last Post: 03-07-2009, 03:01 PM
  4. Web standards ? A comprehensive discussion...
    By gauravc in forum Graphics & Webdesign
    Replies: 0
    Last Post: 08-17-2008, 03:35 AM
  5. How strict?
    By JaedxRapture in forum Free Hosting
    Replies: 5
    Last Post: 07-02-2007, 11:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers