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,910
  • Total Topics: 21,307
  • Online today: 705
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 713
  • Total: 714
  • lurkalot

tp_below sub template errors, tried a few methods still no fixes

Started by sona67, March 25, 2011, 06:54:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sona67

SMF version: SMF ver. 1.1.13
TP version: TP ver. 1.102
Default Forum Language: English UTF8
Theme name and version: SMF default
Browser Name and Version: tried on IE8/Firefox, and Chrome
Mods installed:
1.   Avatar Verification    1.4.2     
2.   TinyPortal    1.102     
3.   Pretty URLs    1.0RC5     
4.   Aeva Media    1.4c     
5.   Share This Topic
Related Error messages:
8: Undefined index: by
File: /host/Themes/default/languages/ShareThis.english-utf8.php (tp_below sub template - eval?)
Line: 92


* Just a side note, I have the ShareThis.english-utf8.php file in the languages folder, and corrected the Modifications.english-utf8 too

I did a search on "tp_below sub template - eval?", and realized there's alot of this problems. I tried a few methods to solve the problem but didn't work.

I have hide the lower panel too, but no go. Errors still surface.

Quote from: ~FS~grizz on June 10, 2010, 02:09:30 AM
Lower Panel settings:

  • Use Lower Panel - ON
  • Hide Lower Panel When in Forum - NO
  • Disply Blocks According to a Grid - first choice selected, 1 horizontal block with 3 columns under it
  • Force this Width on Each Block - 150px
  • title chosen was first - titlebg+windowbg

Changed settings to the following and it seems ok now?

  • Use Lower Panel - ON
  • Hide Lower Panel When in Forum - YES
  • Disply Blocks Horizontally
  • Force this Width on Each Block - BLANK NO SIZE
  • title chosen was first - titlebg+windowbg

Though now I am seeing:

Quote8: Undefined variable: content
File: /****/****/public_html/Themes/default/languages/Post.english-utf8.php (tp_below sub template - eval?)
Line: 33

and

Quote8: Undefined variable: themesidebox
File: /****/****/public_html/Themes/default/languages/Post.english-utf8.php (tp_below sub template - eval?)
Line: 29

and I do not know if it is related.

This particular post seems to be able to solve it, but I cannot really understand 100% , especially on where to find the files to check and edit.

Quote from: Blue Steel on April 06, 2010, 06:32:33 AM
Please note: a lot of people including myself have old blocks still in use from TP 1.0 beta4 or earlier. these blocks reference the txt$[xxx] by number .. this WILL cause TP 1.0 Beta5 to come up with lots of these errors.. what you need to do is look up the language files and put in there the actual txt$['reference_name'] they are usually quite easy to locate as the txt$[xxx] is usually referenced with something that you can associate with..

eg:
txt$[111] is now txt$['last_post']
txt$[302] is now txt$['new']
etc..

these are 2 that were effecting my recent posts article/block

thats whats causing most of these type of errors .. so rule of thumb would be to check your block/article code for any references to txt$[nimber] and change them to txt$['text']


sona67

Update:

I have enabled eval(), the errors are still the same.

8: Undefined index: by
File: /host/Themes/default/languages/ShareThis.english-utf8.php (tp_below sub template - eval?)
Line: 92


IchBin

If you disabled eval it shouldn't be pointing to a language file. Did you check to make sure that the eval settings was inserted into the smf_settings table? If you do indeed have it set to 0 in the settings table, then take a look on that line number in your ShareThis langauge file to see what it's calling that has the word "by" in it.

sona67

My bad. I enabled it instead of disabling eval.

Ok, this time I have disabledd eval and the error is

Quote8: Undefined index: by
File: /host/Themes/default/TPsubs.template.php
Line: 92

For line 92, the code is

<li style="margin: 0; list-style: none; line-height: 1.5em; padding: 4px 0;"><a href="'.$w['href'].'">'.$w['short_subject'].'</a> ', $txt['by'], ' ', $w['poster']['link'];




This are the section of codes:

// Output the topics

echo '

<ul class="middletext" style="line-height: 1.5em; ' , isset($context['TPortal']['recentboxscroll']) && $context['TPortal']['recentboxscroll']==1 ? 'overflow: auto; height: 20ex;' : '' , 'margin: 0; padding: 0;">';

foreach($what as $wi => $w){

echo '

<li style="margin: 0; list-style: none; line-height: 1.5em; padding: 4px 0;"><a href="'.$w['href'].'">'.$w['short_subject'].'</a> ', $txt['by'], ' ', $w['poster']['link'];

if(!$w['new'])

echo ' <a href="'.$w['href'].'"><img src="'. $settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';



echo ' ['.$w['time'].']

</li>';

}

echo '

</ul>';

}



The codes are about topics posting, but I don't know where to change the codes.  :(

sona67

Ok problem fixed.

I used this http://www.tinyportal.net/index.php?topic=32699.0;all

I replaced 'by' with 525

This seems to be a common problem, maybe we can have a sticky?

Please don't close this thread yet, because I may encounter more problems later on "tp_below sub template errors" (but hopefully not lol)

sona67

Another error from my mod (  Avatar Verification    1.4.2    )

Quote8: Undefined index: visual_verification_avatar_explanation_description
File: /host/Themes/default/Register.template.php
Line: 246

8: Undefined index: visual_verification_avatar_headline_description
File: /host/Themes/default/Register.template.php
Line: 244

Need some directions....how do I figure out what text to replace, and which files to look in (so that I can fix similar problems)? Thanks!!

IchBin

It shows you the file that the problem is in and what line needs to be fixed. The problem is you have to figure out why it's having an error on that particular piece of code. Usually when you see undefined index errors it's because a language string is not found. So you look at the mod instructions and find out how it is installing it's langauge strings, whether it includes a language file or adds some language strings to an SMF file. Then you make sure those language strings are in your language. If you are using english-utf8 or another language, those same strings have to be copied to those language files as well. If you can't figure it out, it's best to ask the author or search their topic at SMF to see if it's already been fixed.

sona67

Thanks for the tip.

I checked the text strings in Login.english-utf8.php, and the language string (text) are all there. So I'm really down to my ends as to what's wrong

I posted a thread on the SMF, hope to get a reply from there too


This website is proudly hosted on Crocweb Cloud Website Hosting.