TinyPortal

Development => Support => Topic started by: XyXEL on September 09, 2006, 01:32:59 AM

Title: Undefined index: TPortal_front_type
Post by: XyXEL on September 09, 2006, 01:32:59 AM
www.domain.tld/index.php?action=theme;sa=settings;th=1;sesc

8: Undefined index: TPortal_front_type
Datei: /home/www/doc/6005/dcp600104/www/Themes/default/Themes.template.php (eval?)
Zeile: 608


huh? this is the default template !

rc3  + tp .95 + rc3 default theme + a few mods for rc3
Title: Re: Undefined index: TPortal_front_type
Post by: Max on September 09, 2006, 01:40:13 AM
This should be solved in 0.9.5 beta?  ???

Thurnok found a fix for this....

Edit Sources/Load.php
[FIND]
$settings = $themeData[0];


[ADD AFTER]
if (!empty($context['TPortal']['front_type'])){
$settings['TPortal_front_type'] = $context['TPortal']['front_type'];
}

Title: Re: Undefined index: TPortal_front_type
Post by: bloc on September 09, 2006, 08:42:56 AM
It should..but the fix is not that one, its done earlier.

If this error shows up more, then obviously the fix isn't working.
Title: Re: Undefined index: TPortal_front_type
Post by: Max on September 09, 2006, 04:33:28 PM
Quote from: Bloc on September 09, 2006, 08:42:56 AM
It should..but the fix is not that one

Opps i tought it was  :-\ ...  What is the correct fix?
Title: Re: Undefined index: TPortal_front_type
Post by: XyXEL on September 09, 2006, 07:10:06 PM
hmm... but it works ^^ no more error messages...
Title: Re: Undefined index: TPortal_front_type
Post by: bigguy on November 03, 2006, 05:38:55 PM
I have been having this error in TP 0.9.5 so I have applied this fix. It seems to be working so far. Is there a better way to do this or is this the current fix for this problem. ???
Title: Re: Undefined index: TPortal_front_type
Post by: akulion on November 03, 2006, 05:40:00 PM
There have been a lot of bug fixes in TP 0.96 - so I would recommend upgrading to it :up:
Title: Re: Undefined index: TPortal_front_type
Post by: bigguy on November 03, 2006, 05:49:04 PM
Ok, I can do that. Do I have to uninstall this version first or is there a way to upgrade. ???
Title: Re: Undefined index: TPortal_front_type
Post by: akulion on November 03, 2006, 06:26:45 PM
nope it will just upgrade once u install via package manager :D
Title: Re: Undefined index: TPortal_front_type
Post by: bigguy on November 03, 2006, 06:28:20 PM
ok so just upload via package manager and away I go eh. Cool. I will try that now.
Title: Re: Undefined index: TPortal_front_type
Post by: bigguy on November 03, 2006, 06:35:21 PM
Ok I have done this but for some reason now all the blocks on the right are gone and I can't seem to get them back. The only thing on the right is the theme picker which was turned off.
Title: Re: Undefined index: TPortal_front_type
Post by: akulion on November 03, 2006, 06:51:30 PM
download this file attatched to the post
http://www.tinyportal.net/smf/index.php?topic=9563.msg79903#msg79903

and upload to ur sources folder
replacing the old one :up:
Title: Re: Undefined index: TPortal_front_type
Post by: bigguy on November 03, 2006, 06:54:41 PM
That's got it, thank you so much. :)
Title: Re: Undefined index: TPortal_front_type
Post by: akulion on November 03, 2006, 06:56:32 PM
welcome :up: