TinyPortal

Development => Support => Topic started by: zuma on August 05, 2005, 02:30:07 AM

Title: Forum log errors - Undefined index: TPortal
Post by: zuma on August 05, 2005, 02:30:07 AM
These errors are appearing in the Forum Error Log on every click

8: Undefined index: TPortal
/home/httpd/vhosts/my.domain.com/httpdocs/test3/Sources/Load.php(1484) : eval()'d code 355

ItÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢s a completely fresh install ÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã¢â,¬Å" hereÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢s what I didÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã,¦

ÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã,¢   Fresh install of SMF 1.1 Beta 3 to new database
ÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã,¢   Install latest Mercury for 1.1 (4th August)
ÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã,¢   Manual install of TP (dated 12th May) downloaded from here - http://www.tinyportal.net/smf/index.php?topic=301.0
ÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã,¢   Using English language and no other mods or data added to the forum.

Searched through all the posts on Log errors and tried replacing the two files ÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã¢â,¬Å"
ÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã,¢   TPortal.php
ÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã,¢   TPortalBlocks.template.php
from BlocÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢s post in this thread - http://www.tinyportal.net/smf/index.php?topic=309.0

But theyÃÆ'ââ,¬Å¡ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢re still happening.

Is anyone else having these errors? Or has anyone found a fix?

Zuma
Title: Re: Forum log errors - Undefined index: TPortal
Post by: zuma on August 05, 2005, 04:03:47 AM
Found a stuff-up I'd made that seems to be the culprit.  ::)

I had manually modded an earlier version of index.template.php with the mods listed in tinyportal07_11.mod.

Looking in the new index.template.php that came with the latest Mercury for 1.05/1.1 (4th August), it already has the TP mods done.

When I use the latest index.template.php without any mods, the error doesn't seem to occur. Another error has appeared in the logs but it doesn't seem to be as frequent. I'll check that out some more before posting again.

Zuma

Title: Re: Forum log errors - Undefined index: TPortal
Post by: Bjørn on August 05, 2005, 09:40:20 AM
Yes, the "tportal" error has been fixed in all themes.

Let me know what you find.
Title: Re: Forum log errors - Undefined index: TPortal
Post by: zuma on August 05, 2005, 11:46:42 AM
Well, this could be something I've done again, but it's occurring each time I view a post - although there's only two posts in the test site  :)

8: Undefined index: topbottomEnable
File: /home/httpd/vhosts/my_domain.com/httpdocs/test4/Themes/mercury11_tp/TPortalBlocks.template.php (eval?)
Line: 533
Title: Re: Forum log errors - Undefined index: TPortal
Post by: zuma on August 05, 2005, 01:10:41 PM
On a second test site (also a fresh install of TP and latest Mercury) with data imported into the SMF tables from a working site, I get the same error as above on very read of a post, plus one of these errors ....

8: Undefined variable: user_info
File: /home/httpd/vhosts/my_domain.com/httpdocs/test3/Themes/mercury11_tp/TPortalBlocks.template.php (eval?)
Line: 493

... for every member in the topic. So if there's 7 members in the topic, there'll be seven of these errors.

Again, could be something I've done.

Zuma


ps I used the mods in this file - tinyportal07_11.mod - to mod load.php and index.php. Could that have something to do with it?
Title: Re: Forum log errors - Undefined index: TPortal
Post by: Bjørn on August 05, 2005, 07:10:31 PM
No, they should be fine. The "user_info" error and "topbottomEnabe" is most likely strings missing. I have to check more on this.
Title: Re: Forum log errors - Undefined index: TPortal
Post by: zuma on August 06, 2005, 12:15:57 PM
I wonder whether I have the database tables set up correctly. This is the tportal_settings table - does it look correct?


[attachment deleted by admin]
Title: Re: Forum log errors - Undefined index: TPortal
Post by: Bjørn on August 06, 2005, 01:59:28 PM
Yes, it does.
Title: Re: Forum log errors - Undefined index: TPortal
Post by: zuma on August 10, 2005, 04:23:04 AM
This error...

8: Undefined index: topbottomEnable
File: /home/httpd/vhosts/my_domain.com/httpdocs/test4/Themes/mercury11_tp/TPortalBlocks.template.php (eval?)
Line: 533

... also happens in an installation of SMF 1.1 b3 with Mercury (theme only) - ie no TP.