• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: preg_replace() error
PostPosted: Thu Jul 12, 2018 12:43 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri Jul 25, 2008 10:13 am
Posts: 279
Location: Zug, Switzerland
Hello CMSMS friends

My provider is upgrading PHP to 7.2 and some of my CMSMS installations, which otherwise work well, stop displaying photo galleries.

Error message is this (it only displays under PHP 7.1):
Warning: preg_replace() [function.preg-replace.php]: The /e modifier is no longer supported, use preg_replace_callback instead in /home/zugergra/www/bakoro.ch/lib/html_entity_decode_php4.php on line 306

Warning: preg_replace() [function.preg-replace.php]: The /e modifier is no longer supported, use preg_replace_callback instead in /home/zugergra/www/bakoro.ch/lib/html_entity_decode_php4.php on line 307


So I tried to change that in html_entity_decode_php4.php
When I change just the two "preg_replace"... to "preg_replace_callback"... the gallery starts working again, only that it displays another error on top regarding the rest of that code. So I took that whole part of the code from the html_entity_decode_php4.php that is used in the actual CMSMS 2.x but it caused a whole lot of other errors.

Has someone a suggestion what I can try to change on those two lines of PHP so the errors disappear?

My CMSMS installations are 1.11.11 or 1.11.9, Gallery Module 1.6 or 2.0.3 and the like. Thing is, updating CMSMS is not possible because many custom adaption were originally made that would all have to be made again, websites are non-profit so we have to solve it as easy as possible. As it is a minor PHP problem, better changing that specific code only.

Thanks for any suggestion,
Thom


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: preg_replace() error
PostPosted: Thu Jul 12, 2018 1:32 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7526
Location: The Netherlands
FYI, the next release of CMSMS - 2.2.8 - will have several fixes for PHP 7.2
This version is now in testing and voting stage, so release won't take long.

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: preg_replace() error
PostPosted: Thu Jul 12, 2018 1:46 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 340
Location: Victoria, BC
What are these custom adaptations that prevent you from upgrading?
There are a lot of security updates and improvements since 1.11, it's quite important that you figure out a way to upgrade to the latest, and you won't receive support from the dev team with a version that old.

If it's just template changes then there's usually little or nothing to change when upgrading, but if you've hacked the core for some reason then you should probably find a better way to do it.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
HostPapa CMS Made Simple hosting