I just updated to 5.x-2.14 and WebFM is generating to this error:

"Fatal error: Cannot redeclare mime_content_type() in /pathtodrupal/sites/all/modules/webfm/webfm.module on line 10"

Comments

robmilne’s picture

Yikes! Which version of drupal 5 are you using?

robmilne’s picture

Oops, I've unwittingly redefined the php function mime_content_type(). Very bad. I'll correct this asap.

Neither of my test servers caught this.

robmilne’s picture

The quick solution is to replace all instances of the "mime_content_type" string with "webfm_mime_type" inside webfm.module. Since my servers are too forgiving, or running a version of php that doesn't complain, can you try this out and tell me if it fixes the problem?

ianchan’s picture

Replacing mime_content_type with webfm_mime_type at lines 10 and 14 resolves the problem. Thanks for the rapid response.

We are running Drupal 5.11 on Apache 2.2.3, PHP 5.1.6, and RHEL5.

robmilne’s picture

OK, but could also change lines 2166, 2517 and 2585 as well to the new name and then retest?

ianchan’s picture

Okay, I tried those lines as well and the error did not appear.

robmilne’s picture

Thanks.

robmilne’s picture

Status: Active » Fixed
ianchan’s picture

Status: Fixed » Closed (fixed)

Thanks for resolving the issue.