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,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 281
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 147
  • Total: 147

Troubles with category (article) levels and errors

Started by sangham.net, April 28, 2013, 11:30:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sangham.net

Dear TP friends and supporters,

I hope I am not to bothersome with all my questions and "problems".

Currently I started to build up a category (article) tree like this.

Level 0
- Level 1
- - Level 2
- - - Level 3
- - - - Level 4


In each category the "Display any child categories?" is on "yes"
Now when I like to display the category at Level 0, 1 or Level 2, it would not show the child catehories (only article if there are some). But if I go direct to level 3 or level 4, everything is perfect displayed.
I had delete them again, build up from beginning once again, and the same "problem". Furthermore I get an error message each time when trying to open the cat Level 0, 1 or Level 2:

8: Undefined index: 212
File: /var/www/vhosts/.../.../Sources/TPortal.php
Line: 1205
(line 1201 -1205 var)

Code (".../Sources/TPortal.php, line 1199-1206") Select
{
$parents[] = array(
'id' => $allcats[$parent],
'name' => $allcats[$parent]['value1'],
'shortname' => !empty($allcats[$parent]['value8']) ? $allcats[$parent]['value8'] : $allcats[$parent]['id'],
);
$parent = $allcats[$parent]['value2'];
}


Sometimes this error comes up:

8: Undefined index: layout
Datei: /var/www/vhosts/../../Themes/default/TPortal.template.php
Zeile: 174


Code ("../TPortal.template.php, line 171-182) Select
{
echo '
<li' , $coun<count($what) ? '' : ' style="border: none; margin-bottom: 0;padding-bottom: 0;"'  , '>
<a href="' . $w['href'] . '" title="' . $w['subject'] . '">' . $w['short_subject'] . '</a>
', $txt['by'], ' <b>', $w['poster']['link'],'</b> ';
if(!$w['new'])
echo ' <a href="'.$w['href'].'"><img src="'. $settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';

echo '<br /><span class="smalltext">['.$w['time'].']</span>
</li>';
$coun++;
}


And it would not show up the category buttons even enable in the CAT LIST

Interesting is that this does not happen if there is a tree with only one level like:

Level 0
- Level 1


Here everything is fine.

Do anybody have an idea?

Truly! So strive to be one of them. Or like to get a random Sutta?

If you like to get involved in helping developing an "Virtual monastery" to make the internet a little more accessible for Monks, Nuns and Ascetics, please feel heartily invited to join our bilingual community at sangham.net

sangham.net

I had tried every possible variant the whole day yesterday.

I just like to tell, that this errors do no more arise if any category has min. 1 Article inside. So it seems that an "empty" category is not possible without causing an error.
As soon as all categories have content inside, those errors do no more arise. So maybe these are useful hints for others as and future releases well.





Truly! So strive to be one of them. Or like to get a random Sutta?

If you like to get involved in helping developing an "Virtual monastery" to make the internet a little more accessible for Monks, Nuns and Ascetics, please feel heartily invited to join our bilingual community at sangham.net

IchBin

Thanks for reporting Johann. I'll try to add this to fix for the future if possible. Time is limited...

sangham.net

Dear IchBin,

I totally understand this. Please never feel stressed and I hope such is useful anyway.
The world really does not come to an end and there are always creative ways to solve this or that.

Thanks for your care and sorry again. It's really never a "claim" and we are more than grateful to can use this great tool like it already is. Just know from my own experiences that people often just give feedback, if it is in the sphere of a personal need.
I hope that some naive reports are useful, if not, it's good to just put them away.

Thanks a lot!!

Truly! So strive to be one of them. Or like to get a random Sutta?

If you like to get involved in helping developing an "Virtual monastery" to make the internet a little more accessible for Monks, Nuns and Ascetics, please feel heartily invited to join our bilingual community at sangham.net

This website is proudly hosted on Crocweb Cloud Website Hosting.