I upgraded to the dev theme as I was told it wsa stable. However I found the following output when I installed this theme.

  • warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'phptemplate_menu_local_tasks' was given in /home/prashuco/public_html/blogs/includes/theme.inc on line 617.
  • warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'phptemplate_comment_wrapper' was given in /home/prashuco/public_html/blogs/includes/theme.inc on line 617.
  • warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'phptemplate_breadcrumb' was given in /home/prashuco/public_html/blogs/includes/theme.inc on line 617.
  • warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'phptemplate_menu_item_link' was given in /home/prashuco/public_html/blogs/includes/theme.inc on line 617.

The change from stable to dev version is that all methods in template.php start with painted_ instead of phptemplate_ (I noticed there was an issue which prompted this change). If I rename the methods back to phptemplate_ then the errors disappear, except for the one error with the comments wrapper. Since the comment wrapper has moved to a comment.tpl.php file, I am unable to find the cause of the error.

Comments

Anonymous’s picture

Assigned: Unassigned »
Anonymous’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Needs review

All fix will be part of version 2.

Anonymous’s picture

Version: 6.x-2.x-dev » 6.x-2.0-beta1
Status: Needs review » Fixed

Commitd in 6 Beta

tawebworks’s picture

Status: Fixed » Active

I'm running into this same bug. What do I do to fix it?

Anonymous’s picture

Try to go to the theme page and submit it again, to refresh your theme cache

tawebworks’s picture

Please pardon my newness... Do what? I cannot get anywhere on the site to administer it.

Anonymous’s picture

Try to navigate to this path : /admin/build/themes
Scroll to the bottom and click on 'Save Configuration', that should clear the cache and fix your problem.
If you don't have admin access, contact the administrator, and ask them to clear the theme cache, by just submiting the form on this page.

tawebworks’s picture

That did it.
THANK YOU VERY MUCH!!

Anonymous’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Fixed

No worries :)

If you want to avoid running into this kind of bug, you could activate the auto cache-refreshing (check 'Rebuild theme registry on every page.' here: /admin/build/themes/settings/basic ) but make sure it is unckecked when the site is live because it requires a lot of memory usage.

Only use it during development.

Also check your caching settings when live here : /admin/settings/performance

Status: Fixed » Closed (fixed)

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

ernestto’s picture

Issue tags: +Framework Initiative

Hi, I solved the problem with couzinhub's advices. Thank you

sun’s picture

Issue tags: -Framework Initiative