Fatal error: Call to undefined function: file_scan_directory() in /mnt/webhosting/sites/w/***/includes/common.inc on line

fewdisc - April 12, 2009 - 16:08

I have a bit of an emergency- have had my site down for a couple of days, here is the problem: I was trying to get flash video to work, installed a module and ran update.php then received a fatal error referencing the common.inc include. My site renders a "white screen" when you load it. Following instructions on possible remedies in the forums, I disabled my recent module choice in the database directly, still no luck on fixing the problem. I have also disabled several other modules to minimize the module choice. I have also tried running update.php from the website root http://www.mysite.com/update.php after checking the modules and *.inc files. My problem is this, I need to do everything possible to get this resolved without dropping databases, and reloading, but if anyone has had this problem, and found the solution PLEASE let me know!... If it costs money, I am okay with that.

What are upgrading from and

nevets - April 12, 2009 - 17:08

What are upgrading from and to?

not upgrading - but may be part of the problem...

fewdisc - April 12, 2009 - 18:16

So I am not actually upgrading my Drupal version at all, though I am 5.7, not 5.16...while I realize that isn't a good thing, I am getting ready to migrate to 6.10 all together, but that is another story. My hosting provider has arcane PHP and MySQL versions that won't be supported in 6.x, so moving now is essential. the problem is, getting the environment stable for migration with all the different modules that aren't ready for support yet. This problem started with a need to get video working, and the video module for 5.x being decremented. I opted for OpenPackage Video 5.x-3.16 since it is recommeneded, and would do what I need. It was after that, running update.php that i got that error. I have since disabled the module, enabled logging, and disabled the access check for the site for update.php. The rest of my pages are WSOD...
It looks like that is commonly associated with not-quite baked 6.x drupal code, so that is a little disconcerting. after going through the common.inc, here is the line the error references:

file_scan_directory(file_create_path('css'), '.*', array('.', '..', 'C
VS'), 'file_delete', TRUE);

following the update.php, this is the next error that appears:
warning: reset(): Passed variable is not an array or object in /mnt/webhosting/sites/w/walax.com/update.php on line 523.

The update process was aborted prematurely while running update # in .module. All other errors have been logged. You may need to check the watchdog database table manually.

additional information

fewdisc - April 14, 2009 - 15:23

Fatal error: Call to undefined function: filter_xss_bad_protocol() in /mnt/webhosting/sites/w/walax.com/includes/common.inc on line 847

when http://www.mysite.com/index.php is loaded

STILL WSOD - common.inc reference for an undefined function

fewdisc - April 13, 2009 - 15:33

Fatal error: Call to undefined function: file_scan_directory() in /mnt/webhosting/sites/w/walax.com/includes/common.inc on line 1559 running .
Still have no way to get to site! Any help is appreciated!

fixed

fewdisc - April 20, 2009 - 15:54

the problem was a corrupted .inc from the op_video module- once I stripped that out, and dropped an backup /includes directory, no problems right away.

 
 

Drupal is a registered trademark of Dries Buytaert.