• 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


Forum rules


Only administrators can post or move items here.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [fixed] preg_replace(): The /e modifier is deprecated
PostPosted: Sun Jan 04, 2015 11:41 am 
Offline
Power Poster
Power Poster

Joined: Mon May 29, 2006 1:20 pm
Posts: 1947
Location: Rouen
Hi,

1- On step 9 install PHAR rev 145 and SVN 9788 PHP 5.5.18
Message : Deprecated: preg_replace(): The /e modifier is deprecated ..lib/phpmailer/class.phpmailer.php
see
\$1:
   Line 1909:         $encoded = preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded);
   Line 1912:         $encoded = preg_replace("/([\(\)\"])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded);

And the class.phpmailer used on CMSms beta2 is the Version 5.2.1
so the last version PHPMailer 5.2.8

2- Other Deprecated: preg_replace()
html_entity_decode_utf8.php //replace numeric entities
\$1:
   Line 38:    $string = preg_replace('~&#x0*([0-9a-f]+);~ei', '_code2utf8(hexdec("\\1"))', $string);
   Line 39:    $string = preg_replace('~&#0*([0-9]+);~e', '_code2utf8(\\1)', $string);

_________________
Jean-Claude Etiemble


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Deprecated: preg_replace(): The /e modifier is deprecate
PostPosted: Sun Jan 04, 2015 4:32 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8166
Location: Fernie British Columbia, Canada
Fixed in svn.

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: [fixed] preg_replace(): The /e modifier is deprecated
PostPosted: Sun Jan 04, 2015 7:47 pm 
Offline
Power Poster
Power Poster

Joined: Mon May 29, 2006 1:20 pm
Posts: 1947
Location: Rouen
Ok solved in rev 9791 for PHPMailer 5.2.8

But error
Catchable fatal error: Object of class Closure could not be converted to string in \lib\html_entity_decode_utf8.php on line 42

_________________
Jean-Claude Etiemble


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: [open] preg_replace(): The /e modifier is deprecated
PostPosted: Mon Jan 05, 2015 8:35 am 
Offline
Power Poster
Power Poster

Joined: Mon May 29, 2006 1:20 pm
Posts: 1947
Location: Rouen
Not solved in rev 9792 (html_entity_decode_utf8.php)

check in admin/listusertags.php?_sk_=xxxx

message :
Warning: preg_replace_callback(): Modifier /e cannot be used with replacement callback in ...\lib\html_entity_decode_utf8.php on line 42

Warning: preg_replace_callback(): Modifier /e cannot be used with replacement callback in ...\lib\html_entity_decode_utf8.php on line 46

_________________
Jean-Claude Etiemble


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: [open] preg_replace(): The /e modifier is deprecated
PostPosted: Mon Jan 05, 2015 3:20 pm 
Offline
Power Poster
Power Poster

Joined: Mon May 29, 2006 1:20 pm
Posts: 1947
Location: Rouen
Yes solved in rev 9793

_________________
Jean-Claude Etiemble


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  [ 5 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:  
A2 Hosting