MrMarino
Posts: 4
Joined: Tue Nov 22, 2011 1:39 pm

PHP5.x Fixes (updated as I find problems)

Tue Nov 22, 2011 1:48 pm

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.

MrMarino
Posts: 4
Joined: Tue Nov 22, 2011 1:39 pm

mail.php fix

Tue Nov 22, 2011 1:53 pm

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.

User avatar
peleus
Posts: 57
Joined: Sun Nov 25, 2012 2:57 pm

Re: PHP5.x Fixes (updated as I find problems)

Tue Jan 01, 2013 11:11 am

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.

cecel47
Posts: 2
Joined: Mon Apr 22, 2013 5:18 am

Re: PHP5.x Fixes (updated as I find problems)

Thu Apr 25, 2013 3:30 am

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

Return to “Chameleon Troubleshooting and Problems”

Who is online

Users browsing this forum: No registered users and 1 guest