PHP5.x Fixes (updated as I find problems)
Posted: Tue Nov 22, 2011 1:48 pm
by MrMarino
This thread is for those of us that are using PHP 5.X
I will keep updating this thread as I fix problems with Chameleon and PHP 5. If anyone encounters PHP 5 related errors, please post them here and I will provide fixes for them. I would also like this thread to a resource for those that need it.
mail.php fix
Posted: Tue Nov 22, 2011 1:53 pm
by MrMarino
If you get this error:
Code: Select all
Error: UNKNOWN - 8192
URL: http://hypobiz.com/administration/users_results.php?delete=12
File: /srv/www/hypobiz.com/public_html/_include/lib/mail.php
Line: 61
Message: Function ereg_replace() is deprecated
Call stack:
File: /some dir/_include/lib/mail.php (Line: 61)
Function: ereg_replace
File: /some dir/administration/users_results.php (Line: 29)
Function: send_mail
File: /some dir/_include/core/administration_close.php (Line: 17)
Class: CUsers
Function: action
File: /some dir/administration/users_results.php (Line: 217)
Function: include
it is because the PHP function ereg_replace() has been depreciated and replaced by preg_replace in PHP 5.x.
To fix this, edit the mail.php file and replace all instances of ereg_replace to preg_replace.
Re: PHP5.x Fixes (updated as I find problems)
Posted: Tue Jan 01, 2013 11:11 am
by peleus
To fix this, edit the mail.php file and replace all instances of ereg_replace to preg_replace.
I'll try this and see if it still resolves this.
Re: PHP5.x Fixes (updated as I find problems)
Posted: Thu Apr 25, 2013 3:30 am
by cecel47
hello
I installed my site when I try to enter it I get this error!
Error: UNKNOWN - 8192
URL:
http://waltz-oflove.com/File: / var/www/clients/client2/web29/web/_include/core/main_auth.php
Line: 81
Message: Function session_unregister () is deprecated