Loading...
 
Skip to main content

mod-change_category often gives "Notice: Undefined variable: modcatlist [...] on line 72"

Status
Closed
Subject
mod-change_category often gives "Notice: Undefined variable: modcatlist [...] on line 72"
Version
1.9.x
Category
  • Error
Feature
Category
Modules
Resolution status
Fixed or Solved
Submitted by
amette
Lastmod by
Marc Laporte
Rating
(0)
Description

Complete error-message is:
Notice: Undefined variable: modcatlist in /modules/mod-change_category.php on line 72

Steps to reproduce:

- assign mod-change_category.php to a column
- go to Admin->General or tiki-print.php
- see the error message

Editing my wiki HomePage I even had Tiki dieing completely with errors:

Notice: Undefined variable: modcatlist in /home/amette/public_html/tikiwiki-BRANCH-1-9/modules/mod-change_category.php on line 72

Warning: Cannot modify header information - headers already sent by (output started at /home/amette/public_html/tikiwiki-BRANCH-1-9/modules/mod-change_category.php:72) in /home/amette/public_html/tikiwiki-BRANCH-1-9/tiki-editpage.php on line 775

Solution

I think that count($categs) on line 31 in the module doesn't give results for those pages - this could be solved in the module easily...
Didn't touch it though - perhaps there is some more generic solution in tikilib ?!?

Ok, after adding the edit-wiki-page error above: perhaps it's better to solve it in the module itself?

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
383
Created
Monday 10 October, 2005 14:04:17 UTC
by Unknown
LastModif
Thursday 30 September, 2021 13:14:19 UTC


Show PHP error messages