Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The /e modifier is deprecated #133

Open
ikngweb opened this issue Feb 5, 2015 · 2 comments
Open

The /e modifier is deprecated #133

ikngweb opened this issue Feb 5, 2015 · 2 comments

Comments

@ikngweb
Copy link

ikngweb commented Feb 5, 2015

I have just downloaded stacey and...

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/html/stacey/app/page-data.inc.php on line 113

PHP 5.5.9

@ikngweb ikngweb changed the title Deprecated: preg_replace() The /e modifier is deprecated Feb 11, 2015
@pbatts
Copy link

pbatts commented Feb 11, 2015

Stacey has not been abandoned. There is still an active community. See conversation here. #131 (comment)

The /e modifier issue was fixed Jul 19, 2013. Look here. 5280467

You have an old version. Your installation should include this version of page-data.inc.php
https://github.com/kolber/stacey/blob/master/app/page-data.inc.php

You can download the latest version here. https://github.com/kolber/stacey/archive/master.zip

@desbest
Copy link

desbest commented Jan 29, 2020

That fix is for Stacey 3.
If you use Stacey 2.3, the fix is

$page->page_name = ucfirst(preg_replace_callback('/[-_](.)/', function ($matches) { return "' '.strtoupper('\\1')"; }, $page->data['@slug']));

(addition of @)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants