Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
mpotter CreditAttribution: mpotter commentedCommitted 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');
Comment #4
arefen CreditAttribution: arefen commentedHi. i get this error:
Comment #5
mpotter CreditAttribution: mpotter commentedPlease post that to a new issue. That is a different error than this thread reported. In general, you should not re-open closed tickets.
Comment #6
arefen CreditAttribution: arefen commentedI'm sorry. i create new issue for my problem. 2341863