News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Undefined index: topblock

Started by sharks, October 15, 2011, 11:30:10 AM

Previous topic - Next topic

sharks

I just upgraded my forum from 1.1.14 to 1.1.15 and installed some mods without any errors. Now, in my error log, I'm getting hundreds of pages of this error for different topics viewed by my members. I'm using default theme and don't know where the problem is.

8: Undefined index: topblock
File: /home/user/serv/smf/Sources/Load.php
Line: 924


1.    Anonymize Links (1.1.11)    2.5    [ Uninstall ]
2.    Hide Info Center From Guests    1.0    [ Uninstall ]
3.    New Topic Button    1.0    [ Uninstall ]
4.    Topic View Log    1.2    [ Uninstall ]
5.    Member Awards    1.1.2    [ Uninstall ]
6.    Hide Tag Special    1.8.5    [ Uninstall ]
7.    Hide Tag BBC Image    1.0.1    [ Uninstall ]
8.    Avatar Verification    1.4.3    [ Uninstall ]
9.    Last Topics of Person    1.1    [ Uninstall ]
10.    Country Flags    1.1.2    [ Uninstall ]
11.    Board Notes    1.0.7    [ Uninstall ]
12.    Add IP2Location to Track IP    1.3    [ Uninstall ]
13.    ListCreator    1.3.1    [ Uninstall ]
14.    Move Topic Notification    1.2    [ Uninstall ]
15.    OS & Browser Detection    1.5    [ Uninstall ]
16.    Related Topics    1.3.3    [ Uninstall ]
17.    Tagging System    2.4.2    [ Uninstall ]
18.    Users Online Today Mod    1.4.0    [ Uninstall ]
19.    User Email System    1.3    [ Uninstall ]
20.    Limit A Guests Daily PageViews Mod    2.1    [ Uninstall ]

Illori

Admin -> Server Settings -> Disable evaluation of templates
Then post any new error messages without eval in them

i bet that error message as eval in it, please do the above and post the new error message

it sounds like it is related to one of your mods but i have no idea which with that little information

sharks

OK, i successfully installed Disable Template Eval mod, cleared the error log and again the error appears for any topic that me or any member views:

8: Undefined index: topblock
File: /home/xxx/xxxxx/smf/Sources/Load.php
Line: 924

Illori

attach your load.php to your next post.

sharks


Illori

seems to be related to the  Member Awards mod, i would suggest you post in their support thread

// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsRequest)){
$user_profile[$row['ID_MEMBER']]['awards'][] = array(
'id' => $row['id_award'],
'award_name' => $row['award_name'],
'description' => $row['description'],
'topblock' => $row['topblock'],
'more' => '?action=profile;sa=awardsMembers;id=' . $row['id_award'],
'href' => '?action=profile;sa=showAwards;u=' . $row['ID_MEMBER'],
'minifile' => $row['minifile'],
'img' => '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $row['minifile'],
);
}

sharks

OK, thanks for your help, Illori. It's appreciated. I will post in the mod author's support topic.

Advertisement: