Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-07-02 14:16:30

giampablo
Member
From: Italy
Registered: 2008-07-17
Posts: 86
Website

strange error in local development

On saving an article (write page), a popup window opens up with the following message:

Internal Error "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"
in /Applications/MAMP/htdocs/storie/textpattern/lib/classTextile.php at line 1860.
adminErrorHandler()
textpattern/lib/classTextile.php:1860 preg_replace()
textpattern/lib/classTextile.php:1204 Textile->footnoteRef()
textpattern/lib/classTextile.php:1155 Textile->graf()
textpattern/lib/classTextile.php:1026 Textile->fBlock()

This is happening in a local 4.5.5 txp installation with MAMP server environment. I never had such a problem before (I am not in a early stage of development) on the same local site.
The MAMP version is the latest 3.0.5 (OS X) with PHP 5.5.9

Help appreciated.

Offline

#2 2014-07-02 15:03:34

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: strange error in local development

Textpattern 4.5.5 and PHP 5.5 don’t play well together if you’re in Debugging or Testing mode: they work fine, but those errors will continue to appear. Switching to Live mode will stop the errors being thrown.

Offline

#3 2014-07-02 15:43:17

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: strange error in local development

Since Textile is throwing that error and it’s been fixed in the upcoming Textpattern v4.5.(6)7, you could just grab a later copy for now and pop that in your textpattern/lib folder, replacing the existing classTextile.php file that’s there.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#4 2014-07-02 15:49:47

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: strange error in local development

Bloke wrote #281848:

[…] the upcoming Textpattern v4.5.6

4.5.7, I think. 4.5.6 is blacklisted.

Edit: sorry, Stef – re-reading this I come across like a prize tool; not my intention, I assure you.

Last edited by gaekwad (2014-07-02 16:11:20)

Offline

#5 2014-07-02 18:23:02

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

Re: strange error in local development

gaekwad wrote #281849:

4.5.6 is blacklisted

Ahem, yes, sorry. Corrected.

Brain in.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB