When i try to access subdomain-test.domain.com i am getting the following error
Deprecated: Function ereg_replace() is deprecated in /home/domain.com/sites/all/modules/subdomain/subdomain.module on line 334
I put a & before the function name to suppress the error but again got another error
$reserved = strtolower(&ereg_replace(chr(13) . chr(10), "\n", $reserved));
Fatal error: Can't use function return value in write context in /home/domain.com/sites/all/modules/subdomain/subdomain.module on line 334
I also tried replacing the function ereg_replace with preg_replace
$reserved = strtolower(preg_replace(chr(13) . chr(10), "\n", $reserved));
Warning: preg_replace(): Empty regular expression in /home/domain.com/sites/all/modules/subdomain/subdomain.module on line 334
Comments
Comment #1
saitanay commented//I put a & before the function name to suppress the error but again got another error
i think u gotta put an @, and not an & for suppressin the error,.
not sure though,. try if it works