TinyPortal

Development => Support => Installation => Topic started by: Avinash on February 20, 2006, 03:21:28 PM

Title: Forum Errors in Log
Post by: Avinash on February 20, 2006, 03:21:28 PM
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!
Title: Re: Forum Errors in Log
Post by: 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
Title: Re: Forum Errors in Log
Post by: Avinash on February 20, 2006, 03:26:01 PM
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?
Title: Re: Forum Errors in Log
Post by: G6Cad on February 20, 2006, 03:29:45 PM
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....
Title: Re: Forum Errors in Log
Post by: Avinash on February 20, 2006, 03:30:41 PM
Thanks! I'll try this and report back
Title: Re: Forum Errors in Log
Post by: Avinash on February 20, 2006, 03:52:31 PM
I replaced the boardindex.template.php and I get the same error. This is weird.
Title: Re: Forum Errors in Log
Post by: IchBin on February 20, 2006, 10:17:52 PM
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?
Title: Re: Forum Errors in Log
Post by: Avinash on February 21, 2006, 12:05:58 AM
Thanks Ichbin. Where would I post that code in the block? My site is www.mac-central.com .
Title: Re: Forum Errors in Log
Post by: IchBin on February 21, 2006, 09:23:49 PM
Post it in the beginning of your code. I can't see the code of your block or I would tell you.