-
Notifications
You must be signed in to change notification settings - Fork 132
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
Errors using Stacey 2.3 in PHP 7 #163
Comments
I've fixed the issue. In the page-data.inc.php file there is a Replace this
With this
And replace this in around Line 103
with this
I can't make a pull request because I was editing tag 2.3.0 and I'm not on a branch. |
working nicely :) thanks |
@desbest you rock! This definitely needs to be a branch/release as 2.3.1. Had a few friends with websites still based on 2.3.0 (as more hosts shut down old PHP versions) and this is a huge help. Thanks for investigating! While easy enough for one to implement, here's the patched file from a fresh 2.3.0 release: @kolber – would you mind releasing the above patch as a 2.3.1 release? |
hey, just wanted to add that in my case with migrating staceycms-2.3 from a php5 to a php7 environment I also had to patch the following lines in page-data.inc.php:
to `foreach($assets as $asset_type => $asset_files) $page->$asset_type = $asset_files; and
to
Otherwise I would get parse errors with eval(). |
These fixes don't seem to work for me. I'm not seeing any error messages, but the content in .txt files doesn't seem to be replacing the variables. Any thoughts? I'm totally lost.. UPDATE: This fixed the issue on some pages, but not all pages... |
You're not seeing any php errors because your php settings is hiding the errors from being displayed in the web browser. |
Ah, OK. It turns out the reason was that a few of my template files and txt files had the word "page" in them. When I change the file name all seems well. Such a relief to find this thread. Thank you! |
Hello I'm having problems using Stacey 2.3 in php7. I don't have the time to upgrade to Stacey 3.
When I download the demo site off staceyapp.com and run it in php7, I get these errors.
Also the variables on the page such as
@name
and@title
are not printed on the screen.Can anyone help?
The text was updated successfully, but these errors were encountered: