Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: akaewn on March 06, 2013, 09:06:47 AM

Title: Undefined index: time_offset in Subs.php?
Post by: akaewn on March 06, 2013, 09:06:47 AM
[06-Mar-2013 13:49:03] PHP Notice:  Undefined index:  time_offset in /home/efsane/public_html/Sources/Subs.php on line 753

error as above ..


751     // Offset the time.
752   if (!$offset_type && isset($user_info['time_offset']))
  753      $time = $log_time + ($user_info['time_offset'] + $modSettings['time_offset']) * 3600;
754   // Just the forum offset?
  755  elseif ($offset_type == 'forum')
    756    $time = $log_time + $modSettings['time_offset'] * 3600;
Title: Re: error.log errors
Post by: Kindred on March 06, 2013, 09:35:13 AM
wow... another less than useful post title...

When you ask for help, please use a descritive post title (this one is slightly better than "help" but not much)
Also include smf version? mods installed? url?

Finally... do you have the time offset configured in your smf admin > server settings?
Title: Re: error.log errors
Post by: akaewn on March 06, 2013, 10:42:36 AM
Quote from: Kindred on March 06, 2013, 09:35:13 AM
wow... another less tyhan useful post title...

When you ask for help, please use a descritive post title (this one is slightly better than "help" but not much)
Also include smf version? mods installed? url?

Finally... do you have the time offset configured in your smf admin > server settings?


smf version 2.0.4
http://www.efsaneweb.com/


sometimes closing my site ..
I have no idea what mode you can also
Title: Re: Subs.php on line 753 | $modSettings['time_offset']) * 3600;
Post by: Kindred on March 06, 2013, 10:52:46 AM
huh? What?

Do you have any mods installed?


Have you set the time offset in smf admin > server settings?


Also, I have taken the liberty to replace your post title with something more descriptive
Title: Re: Subs.php on line 753 | $modSettings['time_offset']) * 3600;
Post by: akaewn on March 06, 2013, 10:56:54 AM
    Efsaneweb.com | Add Linkback Mod    2.0.4    [ Modifikasyonu Yükle ] [ Dosyaları Listele ] [ Sil ]
2.    Registered Links and Images    3.0    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
3.    RSS Feed Poster    3.0.4    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
4.    Adk Personal Icon forums    1.0    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
5.    Simple Audio Video Embedder    2.0.7a    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
6.    Seo 4 SMF 2.0    3.1.6    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
7.    Multiple Stars    V1    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
8.    Slashout Banned Members    1.2    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
9.    Aligned and Bilateral Child Boards    1.5    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
10.    Seo Hhy    1.1    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
11.    Hide Tag Special    3.0    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
12.    Efsaneweb.com | Hizli Yanit Ac    2.0.x    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
13.    Google Tagged    2.0    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
14.    nCode Image Resizer    1.3.2    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
15.    RSS Feed Icon    1.1    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
16.    SmfMod Gelişmiş Editör    0.1.1    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
17.    Uye Link Renkleri    3.0.9.1    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
18.    GoogAd Mod v.1.4    1.3    [ Kaldır ] [ Dosyaları Listele ] [ Sil ]
19.    H1 Tags in link tree
Title: Re: Undefined index: time_offset in Subs.php?
Post by: Kindred on March 06, 2013, 11:00:24 AM
Quote from: Kindred on March 06, 2013, 10:52:46 AM
Have you set the time offset in smf admin > server settings?



Also, I notice several mods in that list which appear to duplicate effect...
(but they'll just mess up your SEO stuff, they won't have any effect on the time offset)
Title: Re: Undefined index: time_offset in Subs.php?
Post by: MrPhil on March 06, 2013, 12:57:09 PM
if (!$offset_type && isset($user_info['time_offset']))
     $time = $log_time + ($user_info['time_offset'] + $modSettings['time_offset']) * 3600;


$user_info's time_offset should be set (have a value) if we're getting through the "if", so it must be $modSettings that doesn't have a time_offset element. Is it possible for something to have removed that setting from the smf_settings table? The OP could go into phpMyAdmin and see if it's missing, add it back in, and see if it disappears later; but I'd be more comfortable knowing why it's gone in the first place. If it is in the table, someone must be unsetting that element (make it disappear). I've never seen this happen, so it could be a mod, or someone fooling around with the database who didn't know what they were doing.
Title: Re: Undefined index: time_offset in Subs.php?
Post by: Kindred on March 06, 2013, 12:59:49 PM
yeah... he appears ot have several mods which are not smf validated/approved... so who knows what they are doing....
Title: Re: Undefined index: time_offset in Subs.php?
Post by: Arantor on March 06, 2013, 01:03:58 PM
There are perfectly good reasons why more than one of those mods were *removed by the team* from the mod site.
Title: Re: Undefined index: time_offset in Subs.php?
Post by: akaewn on March 06, 2013, 02:31:19 PM
do you speak turkish?
Title: Re: Undefined index: time_offset in Subs.php?
Post by: Arantor on March 06, 2013, 02:34:26 PM
Nope. Doesn't really matter. I know why the mods were removed, because they were so incredibly buggy.