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
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.