Results 1 to 9 of 9

Thread: PHP Error

  1. #1
    Join Date
    May 2013
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Error

    I need help to solve PHP error

    PHP Code:
    Warningdate() [function.date]: 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. 

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2013
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried to put this code into my index.php .. but no luck

    if( ! ini_get('date.timezone') )
    {
    date_default_timezone_set('GMT');
    }
    do I need to alter php.ini

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Your ini file would be the preferred place to set a timezone, but setting it at runtime should work also (assuming you do so before using any date/time functions). What do you mean by "no luck"? are you still getting the same error?

  5. #5
    Join Date
    Jul 2008
    Posts
    138
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default

    Here is a list of available timezones if that helps: http://www.php.net/manual/en/timezones.php

  6. #6
    Join Date
    May 2013
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok I already solved this problem with the help of Host ..

    I am using Vbulletin 3.8.7 on my site .. when I use thanks button I get this error

    PHP Code:
    DeprecatedAssigning the return value of new by reference is deprecated in /home/mysite/public_html/forum/includes/class_core.php on line 2552 
    my site have PHP version 5.3.27

    How to solve this issue
    Last edited by janu; 03-05-2014 at 07:56 AM.

  7. #7
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Normally if you Google the error along with the name if the script, you'll find answers/solutions.

    Lots found here: https://www.google.com/search?q=depr...ce%20vbulletin
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  8. #8
    Join Date
    May 2013
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please reply HERE

  9. #9
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by janu View Post
    I am using Vbulletin 3.8.7 on my site .. when I use thanks button I get this error
    Deprecated: Assigning the return value of new by reference is deprecated in /home/mysite/public_html/forum/vbb/includes/init.php on line 37

    ( etc. )
    Unfortunately, there is no easy solution for this. What's happening is that your version of VBulletin was written for an earlier version of PHP, which handled objects differently than current versions. Basically, every line of code that looks something like this:
    PHP Code:
    $something =& new Something(); 
    …should look like this instead:
    PHP Code:
    $something = new Something(); 
    I would not recommend implementing this fix yourself unless a) you are comfortable doing so, and b) you make a complete backup first.

    Your google searching may turn up suggestions to change PHP's error reporting level. This is Not A Solution«: it's just a way of ignoring the problem.

    All things considered, the best solution would be to visit the VB site and find out if there is a more recent release that fixes this problem. If not, file a bug report.

Similar Threads

  1. Replies: 2
    Last Post: 05-06-2011, 08:24 AM
  2. Replies: 1
    Last Post: 01-28-2011, 03:39 AM
  3. Replies: 2
    Last Post: 02-12-2010, 09:53 AM
  4. Replies: 1
    Last Post: 04-26-2008, 11:22 AM
  5. Customize the Error Object in JavaScript (Error Handler Script)
    By hari.gomatum in forum Submit a DHTML or CSS code
    Replies: 1
    Last Post: 12-13-2007, 06:56 AM

Bookmarks

Posting Permissions

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