Fehleranzeige nach Update auf 2.6

Please report bugs here!

Moderator: Thorsten

Post Reply
gosi
Posts: 5
Joined: Tue Jan 12, 2010 2:27 pm

Fehleranzeige nach Update auf 2.6

Post by gosi »

Hallo zusammen,

das Update auf 2.6 lief ohne Fehler durch, aber seither kommt bei manchen Artikeln folgende Fehlermeldung:

phpMyFAQ notice [8]: Undefined property: PMF_Helper_Category::$treeTab in Category.php on line 146
phpMyFAQ notice [8]: Undefined index: in Category.php on line 146
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at PATH/functions.php:173) in index.php on line 574
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at PATH/functions.php:173) in index.php on line 575
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at PATH/functions.php:173) in index.php on line 576
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at PATH/functions.php:173) in index.php on line 577
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /PATH/functions.php:173) in index.php on line 578
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /PATH/functions.php:173) in index.php on line 579
phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /PATH/functions.php:173) in index.php on line 580

Ansonsten wird der Artikel aber korrekt angezeigt. Ich habe vorübergehend das error reporting von PHP abgeschalten, aber das ist natürlich keine Dauerlösung :(

Habt ihr eine Idee? Herzlichen Dank!
gosi
Posts: 5
Joined: Tue Jan 12, 2010 2:27 pm

Re: Fehleranzeige nach Update auf 2.6

Post by gosi »

Ich glaube ich weiß nun wo das auftritt:

Und zwar wenn ein Unterpunkt im Menü einen weiteren Unterpunkt hat, scheint dieses Problem auf zu treten. Das Menü wird dann auch nicht mehr korrekt angezeigt:
bsp: http://kb.gosi.at/category/7/active.html

Sollte sich der Artikel also in der Dritten Ebene befinden, kommt dann auch die von mir gemeldete Fehlermeldung, sobald man den Artikel öffnet.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Fehleranzeige nach Update auf 2.6

Post by Thorsten »

Hi,

jep, den Bug kann ich nachvollziehen. Ich kümmere mich drum.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Fehleranzeige nach Update auf 2.6

Post by Thorsten »

Hi,

hier der Fix:

Code: Select all

diff --git a/phpmyfaq/inc/PMF_Helper/Category.php b/phpmyfaq/inc/PMF_Helper/Category.php
index 50a4d95..c489df8 100644
--- a/phpmyfaq/inc/PMF_Helper/Category.php
+++ b/phpmyfaq/inc/PMF_Helper/Category.php
@@ -143,7 +143,7 @@ class PMF_Helper_Category extends PMF_Helper
                                 ? 
                                 $name 
                                 : 
-                                $this->Category->categoryName[$this->treeTab[$y]['id']]['name'];
+                                $this->Category->categoryName[$this->Category->treeTab[$y]['id']]['name'];
                         $output .= $this->Category->addCategoryLink($sids, $this->Category->treeTab[$y]['parent_id'], $name, $description, false, $isActi
                     } else {
                         $output .= $this->Category->addCategoryLink($sids, $categoryId, $name, $description, false, $isActive);
Danke für den Hinweis, der Fix ist in der 2.6.1 dann auch drin.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gosi
Posts: 5
Joined: Tue Jan 12, 2010 2:27 pm

Re: Fehleranzeige nach Update auf 2.6

Post by gosi »

Herzlichen Dank für die schnelle Behebung!
gosi
Posts: 5
Joined: Tue Jan 12, 2010 2:27 pm

Re: Fehleranzeige nach Update auf 2.6

Post by gosi »

soda, ich hab die Zeile eben ausgetauscht und alles ist gut, herzlichen Dank nochmal :idea:
Post Reply