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
PHP8 and smarty create a lot of warnings #11212
Comments
We need to upgrade to Smarty version 4 that was released last November, and call |
I'm still receiving these warnings:
|
Please clear your Smarty cache, these templates were likely created with the previous version of Smarty. The cache is only refresh when the source file changes, which isn't the case when we just upgrade Smarty. |
@MrPetovan we could wipe the cache during an update process to avoid this situstion, couldn't we? |
Yes we could, although we could do it as a one-off each time we're upgrading Smarty since we rarely do it. |
I cleared the cache but the warning reappeared. |
Yes I ment exactly that case , just one time after a smarty upgrade, not every time :) |
Ugh, I did what I was told to do, not sure what to do next since I don't have PHP8 to test. |
It is only these three warnings. They occur with multi level arrays. One of the occurrences is |
This is fixed now. |
I recently updated my server to PHP8. Friendica seems to work with it now - with the exception that smarty is generating a lot of warnings:
That line looks this way:
In the template it looks that way:
There is a way fixing it: We can replace that check with a call like this:
But since we are using these types of checks all the time this would mean a lot of work in the templates.
Question is if there is some shortcut. Is there some smarty update or some smarty option that can help?
The text was updated successfully, but these errors were encountered: