Follower Mod with php7


no_avatar
labu
 
Posts: 7
Joined: Thu Nov 27, 2014 9:03 pm
 Tue Jan 03, 2017 9:44 am • via Web
Hello,

to make my forum ready for php7 I have an issue with the follower mod.

[phpBB Debug] PHP Warning: in file [ROOT]/follower/includes/follower.php on line 313: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

is there a way to make this:
// Display Mentions
$text = preg_replace('#<!\-\-([0-9]+):(@[^<>\s]+)\-\->#e', "get_followname_string('full', '\\2', \\1)", $text);

// Display HashTags
$text = preg_replace('/<!\-\-#([^<>\s]+)\-\->/e', "get_hashtag_string('\\1')", $text);


without the "e" modifier?

Thanks a lot
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Thu Jan 05, 2017 8:20 pm • via Web
Hi,

phpBB 3.0 is not compatible with php7 so, You will find many problems, in addition to those of this mod.

To fix the problems with the mod, upload the 3 files included in the attachment of this post to the folder /follower/includes/ in your server, overwriting the ones you have.
Attachments
php7_fix.zip
(10.56 KB) Downloaded 234 times

Who is online

Users browsing this forum: No registered users and 0 guests