TinyPortal

Development => Support => Topic started by: rockyrails on May 09, 2010, 12:42:01 PM

Title: Getting error messages on TPortal.template.php
Post by: rockyrails on May 09, 2010, 12:42:01 PM
I am getting the following error messages (every time someone views site)
I am assuming its a TP related error as the file is TPortal.template
Using smf2.0 RC3  - only mods istalled. (error shows up even with just TP installed and nothing else)
mods installed : SMF Gallery Pro  - SMF Links  - bookmarks  - google member maps - Download system - and country  flags - all are the latest release.

error shows up regardless of theme used - at moment only theme is the default

8: Undefined offset: 111File: /../.../public_html/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 24

2: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resourceFile: /home1/...../public_html/Themes/default/TPortal.template.php (main sub template - eval?)
Line: 202
Title: Re: Getting error messages on TPortal.template.php
Post by: bloc on May 09, 2010, 03:20:37 PM
That number is not used in the TP file, so it must come from something else. By the sound of it, its an old language entry not used in SMF 2.0 anymore:

$txt[111] = 'Last post';

Check you template files for [111] and change it to ['last_post']