Posted by ianchan on October 17, 2008 at 5:11am
Jump to:
| Project: | Web File Manager |
| Version: | 5.x-2.14 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
Yikes! Which version of drupal 5 are you using?
#2
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.
#3
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?
#4
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.
#5
OK, but could also change lines 2166, 2517 and 2585 as well to the new name and then retest?
#6
Okay, I tried those lines as well and the error did not appear.
#7
Thanks.
#8
#9
Thanks for resolving the issue.