Page 1 of 1

Deprecated: preg_replace warnings on live website

Posted: Mon Jan 08, 2018 8:31 pm
by ladyr0gue
Help!

Code: Select all

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/[database name edited]/public_html/lib/smarty/Smarty_Compiler.class.php on line 270
Please could someone tell me what I should do, step by step, I have this warning all over a client website...

Line 270 is

Code: Select all

, $source_content);
Also in the cms back end I can see

Code: Select all

 preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/[database name edited]/public_html/lib/classes/class.admintheme.inc.php on line 1625

Code: Select all

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/[database name edited]/public_html/lib/html_entity_decode_utf8.php on line 38

Code: Select all

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/[database name edited]/public_html/lib/html_entity_decode_utf8.php on line 39
(these are both repeated four times)

and finally:

Code: Select all

Strict Standards: Declaration of SEOTools::DoEvent() should be compatible with CMSModule::DoEvent($originator, $eventname, &$params) in /home/[database name edited]/public_html/modules/SEOTools/SEOTools.module.php on line 824
I did manage to remove some other warnings by uninstalling the seo tools module but now am left with all of these...

Any assistance would be greatly appreciated...

Looking at previous posts I can see I;m supposed to make sure the modules (only the CG Blog says it has missing dependencies so suggest removal, but I have blog posts so not sure what to do with that) and core are updated and there may be a way to edit the php ini but I'm not sure how

Am painfully aware, having logged into the hosting, that the database is out of date as well (needs updating to MySQL 5.5.0) and throwing errors, and am wondering if it has to do with that, too - raised a ticket with hosts as I have no idea how to do this either, sob...

Re: Deprecated: preg_replace warnings on live website

Posted: Tue Jan 09, 2018 11:08 am
by ladyr0gue
CMS Version 1.10.3

I assume I need to update everything... the cms AND the database
And I have not a single clue how, or in which order I should do this.
I taught myself basic html editing a myspace profile - then learned of css - I built a static website and then several years later, transferred it to cmsms; it was a huge learning curve. Years later, I come back to it and it's all a bit wonky.
I've hidden the pages that throw issues viewable to the public (news and contact form, once filled in) and now I'm not sure where to start.
Databases, php etc is all greek to me - is there any way someone could steer me right here before I give up and build the site in wordpress

Re: Deprecated: preg_replace warnings on live website

Posted: Thu Jan 11, 2018 6:20 pm
by paulbaker
ladyr0gue wrote:before I give up and build the site in wordpress
:-X NO!!!

;D

Point your browser here:
https://docs.cmsmadesimple.org/upgrading/old-versions

Idea is to upgrade in steps, so for you that would be
1.10.3 > 1.11.13 > 1.12.2

Then upgrade to V2:
https://docs.cmsmadesimple.org/upgrading/to-cmsms-2.x

Assuming it's a fairly simple site with just a few 3rd party modules it should go fine.

Maybe post your system info here so we can tell if you have modules which might cause problems?

Post again for more help.