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,231
  • Total Topics: 21,353
  • Online today: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 457
  • Total: 457

"Undefined index" Log Error

Started by OriginalP, January 03, 2008, 12:48:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

OriginalP

Board: SMF 1.1.4 (upgraded from 1.1.3)
Portal: TinyPortal 0.9.8 (upgraded from 0.9.7)
URL: http://community.fastempire.net
Theme: default
Languages: italian/english

Error Description: every time an unauthorized user (e.g. a non subscribed user) tries to access a private area of the forum, a login prompt is shown (ok, it's normal), but several error entries are added in the error log page.

Log:

Quote
8: Undefined index: TPortal
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 535

8: Undefined index: TPortal
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 424

8: Undefined index: TPortal
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 413

8: Undefined index: TPortal
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 403

8: Undefined index: TPortal
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 717

8: Undefined index: TPortal
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 715

8: Undefined index: tp-forum
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 628

8: Undefined index: TPortal_front_type
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 624

8: Undefined index: TPortal
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 244

8: Undefined index: TPortal
File: /home/devil/public_html/Themes/default/Login.template.php (eval?)
Riga: 216

The problem happens using both italian and english translation.
The problem doesn't happen when a unauthorized user tries to access through index.php?action=login request.

Since i have installed/uninstalled several modifications during my administration, i tried to replace these files with those present in a full installation archive of SMF 1.1.4

Quote
Login.template.php
Login.italian.php

and i replaced these file with those present in the TP 0.9.8 Italian package (there is a little typo in the download area: TP 0.9.8 Itialian)

QuoteTPhelp.italian.php
TPmodules.italian.php
TPortal.italian.php
TPortalAdmin.italian.php

But the errors still happen

Can you help me? Thank you in advance

Ken.

AFAIK it's normal for an error message to show up in your error log whenever some one tries to access an area to which they have no permissions.

Also the error log would generally be a question for SMF.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

OriginalP

Quote from: Ken. on January 03, 2008, 01:10:31 PM
AFAIK it's normal for an error message to show up in your error log whenever some one tries to access an area to which they have no permissions.

even if this is an "Undefined index" error?

Quote from: Ken. on January 03, 2008, 01:10:31 PM
Also the error log would generally be a question for SMF.

Ok, i'll try to ask SMF support

Zetan

Actually, if the user used an incorrect password for example.

The error log would say so:

eg;

QuoteGuest       01 January 2008, 10:05:08
Apply Filter: Only show the error messages of this IP address 65.216.215.22      Apply Filter: Only show the error messages of this session 7ca574e5460b3c93f34eade8d889b7e8
Apply Filter: Only show the error messages of this URL http://labradio.co.uk/index.php?action=login2
Apply Filter: Only show the errors with the same message
Password incorrect - nth-l0gik

IchBin

The undefined index: TPortal has been a long standing one. And I'm not sure if TP 0.9.8 has fixed it, but I'm pretty sure TP 1.0 has fixed it. The other errors I'm unsure of. I wouldn't waste your time posting at SMF as they will just send you back here because they are TP errors.

Butcher

#5
lots of errors......

Quote
8: Undefined index: TPortal
Αρχείο: /srv2/www/vhosts/xxxxxx/subdomains/forum/httpdocs/Themes/default/Admin.template.php (main_above sub template - eval?)
Γραμμή: 794

8: Undefined index: TPortal
Αρχείο: /srv2/www/vhosts/xxxxxx/subdomains/forum/httpdocs/Themes/default/Admin.template.php (main_above sub template - eval?)
Γραμμή: 792

8: Undefined index: tp-forum
Αρχείο: /srv2/www/vhosts/xxxxxx/subdomains/forum/httpdocs/Themes/default/Admin.template.php (main_above sub template - eval?)
Γραμμή: 653

8: Undefined index: TPortal
Αρχείο: /srv2/www/vhosts/xxxxxx/subdomains/forum/httpdocs/Themes/vB-Dark_Blue/BoardIndex.template.php (main_above sub template - eval?)
Γραμμή: 794

8: Undefined index: TPortal
Αρχείο: /srv2/www/vhosts/xxxxxx/subdomains/forum/httpdocs/Themes/vB-Dark_Blue/BoardIndex.template.php (main_above sub template - eval?)
Γραμμή: 792

The think is that i never install tiny portal.  :-\
any idea why i get all this errors?

***edit fixed :D

there are some tportal lines in theme which supposed to be comments :-\ . thx anyway :D

IchBin

Butcher, you need to make sure you have all the files uploaded. the tp-forum error comes from either not having the TPortal.english.php file in the languages folder, or its either corrupted. The TPortal error could be that you're missing some code that was supposed to be put in the files that has not been done so. You'll need to run through the modifications instructions posted in our Docs board, and make sure all the edits are indeed in your files.

OriginalP

I solved my problem following this how-to

I found that some needed code changes in Sources/Security.php were missing, i added them and the error no more appeared

Thanks for the support  ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.