Hi,

i get Fatal error: Call to undefined function ctools_menu_primary_local_tasks() after installing fb. but it only happen when i'm not logged in.
i'm using zen theme. I'm not sure if this is fb or zen issue.

Regards,
Reynaldi

Files: 

Comments

Dave Cohen’s picture

Status:Active» Closed (won't fix)

That's not a function called by modules/fb/...

possibly a bug in ctools???

andreiashu’s picture

Project:Drupal for Facebook» Zen
Version:6.x-3.x-dev» 6.x-2.x-dev
Component:Miscellaneous» PHP Code
Priority:Critical» Normal
Status:Closed (won't fix)» Active

I think this is a ZEN bug. I get this error without having FB module installed but I'm using a ZEN subtheme.
Also the actual error looks like this:
Fatal error: Call to undefined function ctools_menu_primary_local_tasks() in /var/www/mysite/sites/mytheme/themes/zen/template.php on line 190
I'm using ZEN-6.x-2.x-dev 2010-Feb-08 snapshot.
@reynaldio can you please confirm what version are you using?

Of course the simplest workaround would be to to include the 'ctools/icludes/menu.inc' file where this function resides.

andreiashu’s picture

StatusFileSize
new394 bytes

And here is a patch. I used ctools_include function to do the include for us.
It seems to be fixing the bug. Can anyone else confirm this?
The patch is against the latest 2.x dev snapshot.

andreiashu’s picture

Status:Active» Needs review
JohnAlbin’s picture

Status:Needs review» Fixed

I <3 patches. :-)

Thanks! You're in the CHANGELOG now!

andreiashu’s picture

Hi John,
Thanks for including me in the CHANGELOG :-)

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

halstead’s picture

Version:6.x-2.x-dev» 6.x-1.x-dev
Component:PHP Code» PHP code
Status:Closed (fixed)» Patch (to be ported)
StatusFileSize
new418 bytes

I just got around to updating a site from 6.x-1.1 to 6.x-1.2 and this error showed up for anonymous users. The patch in #3 fixed it right away. It would be neat if it could be included in the 6.x-1.x branch for people that are still using it.

Fatal error: Call to undefined function ctools_menu_primary_local_tasks() in /var/www/drupal/sites/all/themes/zen/zen/template.php on line 103

I've re-rolled the patch in case that helps.

Todd Nienkerk’s picture

I've confirmed that this bug is still active in 6.x-1.x. Applying the patch in #8 patch fixes it.

Todd Nienkerk’s picture

Status:Patch (to be ported)» Reviewed & tested by the community
urwen’s picture

Component:PHP code» layout.css

confirmed too, patch #8 works fine

JohnAlbin’s picture

Status:Reviewed & tested by the community» Fixed

Committed!

(Finally!)

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jive01’s picture

unfortunately this patch does not work for me upgrading from zen 1.1 to 1.2... If I comment out the functions, the white screen discontinues, but uncommenting the functions with the new patch still gives me the apache error.
// CTools requires a different set of local task functions.
if (module_exists('ctools')) {
ctools_include('menu');
// $primary = ctools_menu_primary_local_tasks();
// $secondary = ctools_menu_secondary_local_tasks();
}
else {
// $primary = menu_primary_local_tasks();
// $secondary = menu_secondary_local_tasks();
}

jive01’s picture

Issue summary:View changes

I got this resolved. The site showed Chaos tools as up to date, yet it was not.

jive01’s picture

I got this resolved. The site showed Chaos tools as up to date, yet it was not.