Closed (fixed)
Project:
Video
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2006 at 11:35 UTC
Updated:
22 Aug 2007 at 03:19 UTC
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
Comment #1
chris_car commentedI have exactly the same problem. I am using PHP5 with mysql 5.
Does anyone know how to fix this?
Comment #2
chris_car commentedfunction 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');
}
}
}
Comment #3
fax8 commentedCould you please send a patch for this?
http://drupal.org/diffandpatch
Comment #4
fax8 commentedfixed on my upcoming rewrite.
Thanks!
Comment #5
(not verified) commented