Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: 5h0ckw4ve on August 24, 2007, 10:27:21 AM

Title: "Unable to load the 'main' template" - Karma problem
Post by: 5h0ckw4ve on August 24, 2007, 10:27:21 AM
Hi, I am not sure how this happened but for some reason when trying to give positive or negative  Karma on my board, the user gets the following message;

"Unable to load the 'main' template"

And generates these messages in the error log;


Shockwave    Today at 03:14:17 PM
Apply Filter: Only show the error messages of this IP address 81.179.121.44    Apply Filter: Only show the error messages of this session ffd536ada158beeec2de045a729c3be7
Apply Filter: Only show the error messages of this URL http://dbfinteractive.com/index.php?action=modifykarma;sa=applaud;uid=252;topic=2278.0;m=32671;sesc
Apply Filter: Only show the errors with the same message
Unable to load the 'main' template.

Apply Filter: Only show the error messages of this member Shockwave Today at 03:14:17 PM
Apply Filter: Only show the error messages of this IP address 81.179.121.44    Apply Filter: Only show the error messages of this session ffd536ada158beeec2de045a729c3be7
Apply Filter: Only show the error messages of this URL http://dbfinteractive.com/index.php?action=modifykarma;sa=applaud;uid=252;topic=2278.0;m=32671;sesc
Apply Filter: Only show the errors with the same message
2: call_user_func(ModifyKarma) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
File: /home/dbfinter/public_html/index.php
Line: 146


I searched here and found another post with the same problem and that user was told that by overwriting  sources/display.php the problem may be fixed.

I am scared to do this, I have lots of modifications on my board;

Quote
1.     Advanced Visual Verification      1.1       [ List Files ]  [ Delete ]
2.    Country Flags    1.0.1    [ Apply Mod ] [ List Files ] [ Delete ]
3.    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
4.    TinyPortal    0.971    [ List Files ] [ Delete ]
5.    SMF 1.1.2 Update Package    1.1.2    [ List Files ] [ Delete ]
6.    Unreplied Topics    1.02    [ List Files ] [ Delete ]
7.    Ignore Boards    2.0.1    [ Uninstall ] [ List Files ] [ Delete ]
8.    YouTube BBCode by Yakuza    0.2    [ List Files ] [ Delete ]
9.    SMF 1.0.9 and 1.1 RC3-1 Security Patch    1.0.8/1.1 RC3    [ List Files ] [ Delete ]
10.    SMF 1.0.8 Update Package    1.0.8    [ List Files ] [ Delete ]
11.    TinyPortal    0.983    [ List Files ] [ Delete ]
12.    Bear Tabs    1.0    [ List Files ] [ Delete ]
13.    SMF Arcade    1.3.1-MOD-E1.5.2    [ List Files ] [ Delete ]
14.    PM On Registration    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
15.    SMF 1.0.11 / 1.1.3 Update    1.1    [ Uninstall ] [ List Files ] [ Delete ]
16.    Admin Notepad    1.0    [ List Files ] [ Delete ]
17.    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    Ignore user    1.3    [ Uninstall ] [ List Files ] [ Delete ]
19.    Contact Page    1.0    [ List Files ] [ Delete ]
20.    Board Notes    1.0.6    [ Uninstall ] [ List Files ] [ Delete ]
21.    SMF Staff Page    1.5    [ List Files ] [ Delete ]
22.    Enchanced post template    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
23.    Modbreaktag    1.0    [ Uninstall ] [ List Files ] [ Delete ]
24.    Googlebot & Spiders Mod    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
25.    SMF 1.0.7 / 1.1 RC2 Update    1.0    [ List Files ] [ Delete ]
26.    SMF 1.1.1 Update Package    1.1.1    [ List Files ] [ Delete ]
27.    Who Voted What?    1.1.2    [ List Files ] [ Delete ]
28.    MessagePreviewOnHover    1.4    [ Uninstall ] [ List Files ] [ Delete ]
29.    RSS Feed Icon    1.1    [ List Files ] [ Delete ]
30.    Merge Double Posts    1.0.6    [ List Files ] [ Delete ]
31.    Member Awards    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
Avatar Packages
   Mod Name    Version    
1.    Metal Slug Avatars    1.0    [ Uninstall ] [ List Files ] [ Delete ]
2.    WOW dancing avatars    1.0    [ Uninstall ] [ List Files ] [ Delete ]
Installed mods: current version older version

I am running SMF 1.1.3

I guess that I am going to be advised to uninstall all my mods, re-install smf and then re-install all mods and themes, I am really not keen to do this if there is some simple fix I can make to sources/display.php

I will be really greatful for any help please... Not looking forward to having to strip down and re-install everything.
Title: Re: "Unable to load the 'main' template" - Karma problem
Post by: codenaught on August 26, 2007, 01:48:53 AM
The only way I can reproduce is by either renaming the ModifyKarma() function or removing it altogether in the Karma.php file. If you have no mods that edit the Sources/Karma.php file, try uploading a fresh copy over the existing one. Otherwise, you can attach the file so I can take a look at it.
Title: Re: "Unable to load the 'main' template" - Karma problem
Post by: 5h0ckw4ve on August 26, 2007, 09:22:40 AM
akabugeyes, I really hope that you read this reply because I am so greatful to you.

I uploaded a new copy of Karma.php over the old one that must have been damaged and the problem is now fixed.

You have saved me a painful re-installation and I am in your debt. Thank you so much.
Title: Re: "Unable to load the 'main' template" - Karma problem
Post by: quannv on October 12, 2007, 06:07:10 AM
Same problem to me, I do follow up the guide ( overwrite kama) but not resolved
Title: Re: "Unable to load the 'main' template" - Karma problem
Post by: codenaught on October 21, 2007, 12:57:29 PM
Can you attach your Sources/Karma.php file then?