← Back to team overview

mahara-contributors team mailing list archive

[Bug 1356563] Re: Example plugin issue

 

I was able to replicate the issue. Here's the underlying error:

[WAR] 9c (lib/mahara.php:1577) call_user_func_array() expects parameter 1 to be a valid callback, class 'PluginModuleSample' does not have a method 'menu_items'
Call stack (most recent first):

    log_message("call_user_func_array() expects parameter 1 to be a...", 8, true, true, "/home/aaronw/www/mahara/htdocs/lib/mahara.php", 1577) at /home/aaronw/www/mahara/htdocs/lib/errors.php:439
    error(2, "call_user_func_array() expects parameter 1 to be a...", "/home/aaronw/www/mahara/htdocs/lib/mahara.php", 1577, array(size 3)) at Unknown:0
    call_user_func_array(array(size 2), array(size 0)) at /home/aaronw/www/mahara/htdocs/lib/mahara.php:1577
    call_static_method("PluginModuleSample", "menu_items") at /home/aaronw/www/mahara/htdocs/lib/web.php:2696
    right_nav() at /home/aaronw/www/mahara/htdocs/lib/web.php:516
    smarty() at /home/aaronw/www/mahara/htdocs/admin/index.php:65

[WAR] 9c (lib/web.php:2697) array_merge(): Argument #2 is not an array
Call stack (most recent first):

    log_message("array_merge(): Argument #2 is not an array", 8, true, true, "/home/aaronw/www/mahara/htdocs/lib/web.php", 2697) at /home/aaronw/www/mahara/htdocs/lib/errors.php:439
    error(2, "array_merge(): Argument #2 is not an array", "/home/aaronw/www/mahara/htdocs/lib/web.php", 2697, array(size 8)) at Unknown:0
    array_merge(array(size 12), null) at /home/aaronw/www/mahara/htdocs/lib/web.php:2697
    right_nav() at /home/aaronw/www/mahara/htdocs/lib/web.php:516
    smarty() at /home/aaronw/www/mahara/htdocs/admin/index.php:65


** Changed in: mahara
   Importance: Undecided => High

** Changed in: mahara
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1356563

Title:
  Example plugin issue

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  https://mahara.org/interaction/forum/topic.php?id=6412

  Mahara 1.10dev:

  Basically if the sample module is installed and is not hidden then the
  setting, messages, and Logout menus are not displayed. If I hide the
  module then they are.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1356563/+subscriptions


References