Posts Tagged ‘smf’
Recently I started using SMF for one of my sites along with the PhotoGalleryBlack theme. The forum has been running for about a week now and I just realised there have been a lot of errors which maybe the reason why posting/replying is so slow.
(The verdict, I think, is that those errors are not related to the speed issues. But let’s just cross one hurdle at a time)
After numerous Google searches which didn’t exactly give the answers that I was looking for, here’s what I did:
(Just wanted to say up front that I am NOT a programmer of any sort and I don’t even work in IT! So the things I did below are just the result of “trial and error”, remember to backup and use at your own risk!)
1. Disable eval() so accurate errors can be reported.
I was getting errors involving “theme_main_color” and “memberContext”.
2. For the “theme_main_color” error, I deleted every instance of it in the file that is causing problems (BoardIndex.template.php).
Original
$settings['images_url'] . '/'. $settings['theme_main_color'], '/', !$category['is_collapsed']
New
$settings['images_url'], '/', !$category['is_collapsed']
3. The next error involved “memberContext” at Line 85 of the theme’s index.template.php file.
- First, instead of $memberContext[$userid] at Line 85, change to $memberContext['userid'].
- Second, there should be two items involving “global” at line 32 and line 63. At the end, add $memberContext.
So Line 32 should read:
global $context, $settings, $options, $txt, $memberContext;
Line 63:
global $context, $settings, $options, $scripturl, $txt, $modSettings, $memberContext;
Next battle – some undefined index errors have propped up, ARGH. Oh yeah, and speed issues!!!
EDIT: I found the cause of the speed issues!!! Akismet Spam Protection is the culprit, once it’s disabled replying is a breeze!!!





