TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 12:31:15 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 89
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 91
  • Total: 91

Forum Errors in Log

Started by Avinash, February 20, 2006, 03:21:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Avinash

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!

G6Cad

Try and replace the BoardIndex.template.php  with a new one, it could be that the file was corrupted when you instlled TP

Avinash

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?

G6Cad

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....

Avinash

Thanks! I'll try this and report back

Avinash

I replaced the boardindex.template.php and I get the same error. This is weird.

IchBin

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?

Avinash

Thanks Ichbin. Where would I post that code in the block? My site is www.mac-central.com .

IchBin

Post it in the beginning of your code. I can't see the code of your block or I would tell you.