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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 565
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 409
  • Total: 409

Undefined index with visitors only

Started by Kike_GL, June 03, 2011, 06:48:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kike_GL

SMF 1.1.13 + TP RC 1.1 + Default Themes + Spanish_latin-utf8

In the log of my forum I have all the time errors with visitors and I can not find it.

Undefined index: tp-forum
Undefined index: TPortal_front_type

In ../Themes/default/index.template.php

It only happens with visitors other users not have this bug.
Saludos, Kike_GL

IchBin

Are you using an old TP theme? TPortal_front_type should not exist in the index.template.php file IIRC.

$txt['tp-forum'] should be defined in the TPortal.english.php file I think.

Kike_GL

Quote from: IchBinâ,,¢ on June 03, 2011, 03:35:26 PM
Are you using an old TP theme? TPortal_front_type should not exist in the index.template.php file IIRC.
Ooops, exist in my ..\theme\default\index.template.php (is Version 1.1.5)
Also in ..\source\load.php and TPortal.php

Quote from: IchBinâ,,¢ on June 03, 2011, 03:35:26 PM$txt['tp-forum'] should be defined in the TPortal.english.php file I think.
Yes, there is. It only happens with visitors other users not have this bug.
Saludos, Kike_GL

IchBin

What language do you have set for your forum? Are the users using a different language than the default?  utf8 or Non-utf8?

If TPortal_front_type exists in your index.template.php file, then you likely need to use an updated theme that does not contain the old tinyportal code that used to be required.

Kike_GL

Thanks for your response. As I said in my first message the forum defaut language is spanish-latin-uft8, like most users, although I have users using english-uft8 and italian-utf8 as well. DB in also UFT8.

I do not remember clearly, but I have started with SMF 1.1.10 and then go update 11, 12 to 13. Like with TP.

The index.template.php is SMF file with added lines for TP. I can now redo that ?
Saludos, Kike_GL

IchBin

The only added lines to index.template.php for the latest TP is for the menu forum button. Which is likely where you are seeing your issue.  If there are the lines of code for the panels/sidebars then the old code needs to be removed.

Make sure that $txt['tp-forum'] exists in all your TPortal.xxlanguagexx.php file for each language.

It might be a good idea to turn template eval off to see if a more detailed error appears in the logs. I would follow this post. Once you have disabled eval() from this post, clear your log and post the exact errors you get from the error log.
http://www.simplemachines.org/community/index.php?topic=290186.0

Kike_GL

Quote from: IchBinâ,,¢It might be a good idea to turn template eval off to see if a more detailed error appears in the logs. I would follow this post. Once you have disabled eval() from this post, clear your log and post the exact errors you get from the error log.
http://www.simplemachines.org/community/index.php?topic=290186.0
Sorry for the delay. I changed the registry 'disableTemplateEval' to 0 as you indicated and now no errors are recorded in the log.

Quote from: IchBinâ,,¢Make sure that $txt['tp-forum'] exists in all your TPortal.xxlanguagexx.php file for each language.
Yes, I have that line in all TPortal.xxlanguagexx.php files.

Quote from: IchBinâ,,¢The only added lines to index.template.php for the latest TP is for the menu forum button. Which is likely where you are seeing your issue.  If there are the lines of code for the panels/sidebars then the old code needs to be removed.
Maybe is a good idea to migrate to SMF 2.0 first ?
Saludos, Kike_GL

Kike_GL

I'm not sure if this error log has something to do with the previous ones, but is now the only one in the LOG.


8: Uninitialized string offset: 0
Archivo: /.../Themes/default/languages/TPShout.spanish_latin-utf8.php (wap2_tp sub template - eval?)
Línea: 223
Saludos, Kike_GL

This website is proudly hosted on Crocweb Cloud Website Hosting.