Comments (10)
I also had problems using Stacey 2.3 with php 7. I think I have fixed the problem with this issue. #163
from stacey.
Hey @kannik2018 did you ever find a solution for this? I am having the same problem with a site for a friend. The host upgraded their php, and now the site breaks.
from stacey.
No. Tried to correct the php, but didn't succeed. Fixed the site by making an unique template for each page with all the text information in it. Put an empty .txt files in the project folder with the name of the unique template. Loading the image files from the folders luckily still works. First tried to upgrade the stacey version but that turned out as a nightmare in my case. Ugly solution but my company website wasn't offline to long. When I find some time I'm gonna remake the website with a different cms.
Hope you do find a solution,
K
from stacey.
Thanks for your reply @kannik2018, i will keep you updated if i find any solution to this.
from stacey.
Hi @kannik2018 i got my version working with php 7+ with help from a friend, but i see now that you are using the Stacey 2 version. I am using Stacey 3, which means that you won't be able to use this fix.
from stacey.
I created a separate issue with the fix here
from stacey.
I have the same problem with Stacey 2 and PHP 7. I am no PHP expert but am going to try to poke around to see if I can figure out a fix. BTW is there a github page for Stacey 2.x? Staceyapp.com seems to be gone; the wayback machine last archived it in April 2018.
from stacey.
@kannik2018 I was hoping the fix would be as simple as replacing line 113 of page-data.inc.php $page->page_name = ucfirst(preg_replace('/[-_](.)/e', "' '.strtoupper('\\1')", $page->data['@slug']));
with
$page->page_name = ucfirst(preg_replace_callback('/[-_](.)/', function ($matches) { return "' '.strtoupper('\\1')"; }, $page->data['@slug']));
But no such luck. This gets rid of the error but for whatever reason, the variables still don't get replaced properly.
from stacey.
Thanks @shamlian for looking into it. I should have shared this before, but I also tried replacing that line, without luck. That's why I used a workaround. Hope somebody knows which other lines need to be corrected.
from stacey.
Unless someone comments otherwise, I'm assuming Stacey 2.3 is even more of a dead end than 3.0 and at this point, it may be worth spending the time to update to 3.0 in the short term. Hoping I don't have to switch CMSes long term; @kannik2018 where did you end up?
from stacey.
Related Issues (20)
- sub variables? HOT 4
- feedback when search results are not found
- Stacey on OSX Yosemite HOT 4
- crash if /content is a symlink HOT 2
- Updating from Stacey 2.3 HOT 1
- "Ñ" in variable? HOT 14
- Multilanguage HOT 1
- ![img](url){#id .class} HOT 1
- Installation problem OS X El capitan HOT 1
- Asset Display Order HOT 1
- Srcset + image sizes creation HOT 1
- Arbitrary insertion of images/Image captions HOT 4
- Update for php 7.1+ (Stacey 3 only) HOT 5
- Static site generator? HOT 5
- Errors using Stacey 2.3 in PHP 7 HOT 7
- Stacey 2.3 sometimes makes my cache corrupt by adding a duplicate "up one directory" HOT 1
- pagination HOT 2
- Twig number_format
- Twig Math in Stacey and Trailing Zero HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stacey.