Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-03-10 10:30:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,171
Website GitHub Mastodon Twitter

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

What is the newest version of textile I can use on txp4.4.1. I’m stuck in this txp version for one site until the upgrade of postmaster is released.

At the moment I get

preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

I read previous reports but I am wondering if I can suppress the warning.

ie. Can I just replace all instances of preg_replace with preg_replace_callback?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2014-03-10 11:31:18

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: textile: preg_replace(): The /e modifier is deprecated

PHP-Textile v2.4.3 should still work as a simple drag-n-drop update. It’s a legacy update to the 2.4 tree and includes both new features (compared to the 2.2.0 used by Textpattern 4.4.1), fixes security issues and adds PHP 5.5+ compatibility.

That said, you will have to do other modifications to your Textpattern 4.4.1 install to be able to run it on PHP 5.5.0.

Offline

#3 2014-03-10 12:03:26

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,171
Website GitHub Mastodon Twitter

Re: textile: preg_replace(): The /e modifier is deprecated

Hi Jukka,

Thanks so much. 2.4.3 did the trick. Indeed I had to modify

  • config.php
  • txplib_misc.php
  • taghandlers.php

from suggestions I found in this forum and now everything seems to be working just fine:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB