Page 1 of 1

Deprecated: preg_replace(): The /e modifier is deprecated

Posted: Wed Aug 27, 2014 2:57 pm
by FCazabon
Hi,

I've been away from CMSMS for a while and am now installing it on a new PC (Windows 8.1).

I downloaded and installed WampServer (wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b).

Then I downloaded CMSMS 1.11.11 and ran through the install of that.

During the install of CMSMS I noticed a message similar to this:

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in C:\wamp\www\YWCATT\lib\html_entity_decode_utf8.php on line 38

but it didn't stop the installation so I proceeded.

Now when I am in the Admin of my site I get the above message repeatedly when I go to the following pages:

Content | Pages
Layout | Templates
Layout | Stylesheets
Users & Groups | Groups

(I haven't checked all the pages).

Is this a version conflict?

Apache Version : 2.4.9
PHP Version : 5.5.12

The documentation says: Note: PHP 5.3.2+ Recommended.

Any ideas?

Re: Deprecated: preg_replace(): The /e modifier is deprecate

Posted: Wed Aug 27, 2014 3:49 pm
by Jo Morg
FCazabon wrote:
Apache Version : 2.4.9
PHP Version : 5.5.12

The documentation says: Note: PHP 5.3.2+ Recommended.

Any ideas?
It runs without any notices nor warnings with PHP 5.4.31, and a quick search on the web got this: http://php.net/manual/en/migration55.deprecated.php
They still work afaik, so you just have to adjust the php.ini settings regarding errors display accordingly (or ignore them).
On production sites these warnings and notes should never be displayed anyway.