PHP Fatal error: Call to undefined function ctools_content_render() in oa_radix/template.php on line 77

I got the above error even after
drush cc
drush rr --fire-bazooka
then restarting my webserver

 $banner = ctools_content_render('oa_space_banner', '', array( 'banner_position' =>2 ));

solution is to include this line right before it

 include(drupal_get_path('module', 'ctools') . '/includes/content.inc');

Comments

  • Commit 8a72e6c on 7.x-2.x by mpotter:
    Issue #2234503 by SocialNicheGuru: PHP Fatal error:  Call to undefined...
mpotter’s picture

Status: Active » Fixed

Committed a variation of this to 8a72e6c in oa_radix. Rather than the include statement, the correct way to include a ctools file is via:

ctools_include('content');

Status: Fixed » Closed (fixed)

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

arefen’s picture

Version: 7.x-2.14 » 7.x-2.21
Status: Closed (fixed) » Active

Hi. i get this error:

Fatal error: Call to undefined function panels_mini_block_view() in /sites/all/themes/oa_radix/template.php on line 70
mpotter’s picture

Status: Active » Closed (fixed)

Please post that to a new issue. That is a different error than this thread reported. In general, you should not re-open closed tickets.

arefen’s picture

I'm sorry. i create new issue for my problem. 2341863