Fatal error: Call to undefined function mkdirs() in /var/www/robin.eff.org/drupal/modules/import_html/import_html.module on line 1280

i thought maybe this was just a typo, so i changed it to mkdir, and got this error:

warning: mkdir(): File exists in /var/www/robin.eff.org/drupal/modules/import_html/import_html.module on line 1280.

ideas?

VERY excited to see CCK support!!!! :) :)

Comments

dman’s picture

Title: typo in function call in most recent CVS version? » missing function definition in call in most recent CVS version?
Status: Active » Needs work

Not a typo.
mkdirs() is the recursive version of mkdir()
It should be found in file-routines.inc, which is included all the time.

It's not theoretically possible for import_html.module to run without that function being declared.
My only guess is that your include paths are not as expected, or the library directory is not available. You did get the coders_php_library contents down again this time, right?

I'll modify the 'include's to 'require'. This will therefore raise an error at first runtime, not just let this misconfiguration go.
... although I suspect this was there so it would not barf on very first run.

I'd need to test on another new distro to be sure, so just try

diff -r1.41 import_html.module
47,48c47,48
< include_once "xml-transform.inc";
< include_once "file-routines.inc";
---
> require_once "xml-transform.inc";
> require_once "file-routines.inc";

on your version.

elly’s picture

Hm. I got the most recent dev snapshot from nov 13, then downloaded straight from CVS the two files that it looked like you had changed for cck support (import_html.module and walkthrough.htm tho the latter isn't mission critical), since it didn't look like there was a snapshot tar since you'd made the CCK changes. I've just downloaded file-routines.inc & xml-transform.inc straight from CVS to be sure, but I'm still getting the error.

dman’s picture

I was trying a fresh checkout on a fresh site today. Unable to replicate any problem. (PHP5, but still that's not significant)

dman’s picture

Status: Needs work » Closed (fixed)