I was having trouble using Fusion (a fusion_core subtheme) with APC enabled, with an error like so:

Fatal error: require_once(). Failed opening required 'theme-settings.php'

The problem was coming from the line at the top of fusion_core's template.php:

require_once('theme-settings.php');

Changing it to the following resolved the issue.

include_once './' . drupal_get_path('theme', 'fusion_core') . '/theme-settings.php';

Comments

coltrane’s picture

drupal_get_path() calls drupal_get_filename() and then we'd run into #341140: drupal_get_filename() when database is down, does not deal with phptemplate themes so we need to do our own directory traversal.

Poieo’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)