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