Code Monkey home page Code Monkey logo

Comments (10)

desbest avatar desbest commented on July 28, 2024 1

I also had problems using Stacey 2.3 with php 7. I think I have fixed the problem with this issue. #163

from stacey.

o-l-e avatar o-l-e commented on July 28, 2024

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.

kannik2018 avatar kannik2018 commented on July 28, 2024

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.

o-l-e avatar o-l-e commented on July 28, 2024

Thanks for your reply @kannik2018, i will keep you updated if i find any solution to this.

from stacey.

o-l-e avatar o-l-e commented on July 28, 2024

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.

o-l-e avatar o-l-e commented on July 28, 2024

I created a separate issue with the fix here

from stacey.

shamlian avatar shamlian commented on July 28, 2024

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.

shamlian avatar shamlian commented on July 28, 2024

@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.

kannik2018 avatar kannik2018 commented on July 28, 2024

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.

shamlian avatar shamlian commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.