Closed (fixed)
Project:
Domain
Version:
5.x-1.0rc1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2007 at 16:29 UTC
Updated:
13 Jan 2008 at 20:33 UTC
While trying to install the module i got the following Error.
Fatal error: Call to undefined function: str_ireplace() in /SERVER_PATH/sites/all/modules/domain/domain.module on line 43
Comments
Comment #1
derjochenmeyer commentedOh, im running drupal on PHP 4.4.7 and str_ireplace seems to be PHP 5 only.
"WWW Prefix Handling" does that:
Is PHP 5 required by other parts of the module? Would this be an option:
Question: I'm doing a similar thing with mod_rewrite. What are the benefits from using the "WWW Prefix Handling" option?
Comment #2
agentrickardMy mistake. Didn't read up on str_ireplace() well enough.
The benefit to the WWW Prefix Handling is only for people on shared hosts who cannot control mod_rewrite. Your solution is actually better.
This is not worth a patch. But the fix is noted above.
Comment #3
agentrickardThis issue also requires us to case-check the incoming URL, since www.example.com == WWW.EXAMPLE.com per the url specification.
Lines 38-44 of domain module become:
Comment #4
agentrickardComment #5
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.