TinyPortal
Development => Support => Topic started by: dannyboon on September 03, 2008, 12:07:13 PM
Some times I've an error when I try to build menu item for a category...
in fact, I can create item, but i cannot edit it or change category after, I've to delete an recreate the Menu Item, this fix will (I hope) correct this kind of error and I've also corrected some "category" related troubles...
most of them came from an typing error or an naming convention changing...
Quote
8: Undefined index: categories
Fichier: /Themes/default/Admin.template.php (main sub template - eval?)
Ligne: 361
so here is a quick fixe:
in /Themes/default/TPortalAdmin.template.php search for (line 361):
foreach($context['TPortal']['categories'] as $bmg){
replace with
foreach($context['TPortal']['article_categories'] as $bmg){Line 518-519
if(count($context['TPortal']['admin_categories'])>0){
foreach($context['TPortal']['admin_categories'] as $bmg){
replace with:
if(count($context['TPortal']['article_categories'])>0){
foreach($context['TPortal']['article_categories'] as $bmg){
line 1307
<td valign="top" colspan="3" class="middletext" style="padding: 8px;"><img src="' , $settings['tp_images_url'] , '/TPexclamation.gif" alt="" /> '.$txt['tp-addcaegoryinfo'].'</td>
remplace with:
<td valign="top" colspan="3" class="middletext" style="padding: 8px;"><img src="' , $settings['tp_images_url'] , '/TPexclamation.gif" alt="" /> '.$txt['tp-addcategoryinfo'].'</td>
I hope that Bloc will validate this fixe....
Frater
Thanks, Frater.
It does look like I have mixed the names in there. I will try these out and add them to beta2. :)