I am getting some errors in my forum error log after installing TP. There are as follows:
http://mysite.com/smf/index.php?action=forum
8: Undefined variable: scripturl
File: /home/content/*/*/*/**********/html/smf/Themes/TP_oxygen11rc2/BoardIndex.template.php (eval?)
Line: 112
The are literally flooding my error log. Any suggestions as to what the problem could be? When I switch themes back to default, the same errors show up, except from the /Themes/default/BoardIndex.template.php.
Plz Help!
Try and replace the BoardIndex.template.php with a new one, it could be that the file was corrupted when you instlled TP
Quote from: g6cad on February 20, 2006, 03:23:46 PM
Try and replace the BoardIndex.template.php with a new one, it could be that the file was corrupted when you instlled TP
Thanks for the quick reply! Do you mean going into each of my theme folders and replacing each BoardIndex.template.php? Also, what should I replace it with? the original from the smf rc2 installation package? doesnt TP make changes to that file upon installation?
You change the Boardindex.template.php in the default theme and go from there.
A new one yyou can get from downloading the version of forum on SMF homepage.
Extract and pick up the file and replace it with the one on your server.
Replace the one in default and see if the error goes away from there.
Se to that you make a backup of the old file to before you replace it with the new one....
Thanks! I'll try this and report back
I replaced the boardindex.template.php and I get the same error. This is weird.
Are you using any custom blocks? scripturl is a global variable. If you're using any custom blocks try adding this to it:
global $context, $settings, $options, $scripturl, $txt, $modSettings;
If this doesn't fix it, can you post the code your using in the custom block?
Thanks Ichbin. Where would I post that code in the block? My site is www.mac-central.com .
Post it in the beginning of your code. I can't see the code of your block or I would tell you.