News:

Wondering if this will always be free?  See why free is better.

Main Menu

Undefined index: time_offset in Subs.php?

Started by akaewn, March 06, 2013, 09:06:47 AM

Previous topic - Next topic

akaewn

[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;

Kindred

#1
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?
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

akaewn

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

Kindred

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
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

akaewn

    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

Kindred

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)
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MrPhil

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.

Kindred

yeah... he appears ot have several mods which are not smf validated/approved... so who knows what they are doing....
Слова
Украина

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

There are perfectly good reasons why more than one of those mods were *removed by the team* from the mod site.
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

akaewn


Arantor

Nope. Doesn't really matter. I know why the mods were removed, because they were so incredibly buggy.
No good deed goes unpunished / All helpful urges should be circumvented

I have something to say: it's better to burn out than to fade away. There can be only one.

Advertisement: