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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Errors from TPortal.template.php

Started by Freddy, January 26, 2009, 02:39:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Freddy

Running:
ââ,¬Â¢ SMF 1.1.7
ââ,¬Â¢ TinyPortal v1.0.5 beta
ââ,¬Â¢ Theme; FS Gray by Fussilet.com

Hadn't noticed this until I went to download a backup of my forum which was huge - had over 200,000 errors of this type.  Forum is working fine but I would like to eliminate this error :

8: Undefined variable: current_action
File: /home/mfykbrna/public_html/aidreams.co.uk/forum/Themes/default/TPortal.template.php (main_above sub template - eval?)
Line: 497

This is obviously only one error as there are multiple errors for each page, which is why the error log got so massive.

Anyone familiar with this one ?

Many thanks.

G6Cad

Seems like one or some of your mods that uses the array in default Core index.template.php are missing in your custom installed theme.
Check what mods you have that adds to the array and add the same for your custom theme

Freddy

#2
Hmm, not being an expert I don't know where to start on that - got any pointers ?

Thanks for quick reply.

The only mods I am using are:

• Tiny Portal
• SMF Gallery Lite
• and an RSS Feed poster that only gets called via a cron job.

IchBin

Are the errors on different pages as well? Not just TPortal.template.php?

Attach your index.template.php file please.

Freddy

Yeah the errors were all over the place.  I took G6's advice and had a look at the theme's index.template.php to see if anything was missing.  Found the problem - it was because I had commented out :

$current_action = 'home';

A while back I had been trying to control the tab which is highlighted for the page you are on.  I disabled that so 'home' didn't become highlighted when I was on an article page.  So that's why it was undefined - seems I need to learn a little more about PHP variables.

Sorry guys and girls, but thanks for pointing me in the right direction, the error messages have gone.

JPDeni

I know you figured it out and that's cool. If you don't want the tab highlighted, you can change it to


$current_action = '';


It will be defined, but empty.

Then again, if it doesn't work, you can just change it back. :)

Freddy

I was wondering about that, I will give it a go, thanks :)


This website is proudly hosted on Crocweb Cloud Website Hosting.