Turning Drupal's cache ON makes Drupal dies with this error:
Fatal error: Call to undefined function: drupal_get_path() in /var/www/Idealuce-drupal/modules/video/video.module on line 151

Comments

chris_car’s picture

I have exactly the same problem. I am using PHP5 with mysql 5.

Does anyone know how to fix this?

chris_car’s picture

function video_init() {
if (module_exist('views')) {
I edited my video.module and changed some lines in video_init() method. I added the statement function_exists... and I switched on drupal cache again, and it worked.

if (!function_exists('drupal_get_path')) {
return;
} else {
include(drupal_get_path('module', 'video') .'/views_video.inc');
}

}
}

fax8’s picture

Could you please send a patch for this?
http://drupal.org/diffandpatch

fax8’s picture

Status: Active » Fixed

fixed on my upcoming rewrite.

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)