You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an error when updating from php7.2 to php7.4 (which I performed first via the hoster's dashboard)
which also caused me to upgrade from Bolt <3.6 to Bolt 3.7.2 (Bolt 3.6 frontend worked fine on php 7.4, but the backend not so much.
Bob saw the screenshot (attached) and asked me to post it here, sine it looks translate-related.
But: there seems to be a trick when I use 2 steps:
when I first switched from php7.2 -> php 7.3 logged into the backend
switched from php7.3 -> php 7.4 logged into the backend again, all seems to be going well. (knocks on MDF)
Details
Translate Version: [ | 2.X | master ]
Bolt Version: [ 2.2 | 3.0 | master ]
Used webserver: [ Apache ]
The text was updated successfully, but these errors were encountered:
I had the same problem but I think I figured out how to fix it 😃
Quick answer
Update the version of Translate, this bug has been fixed in 4.2.2 👌
Long answer
As I had the same issue, I was using the 4.2.1 version.
I tried to bypass the bug by switching PHP versions. It worked from 7.2 to 7.3, but not from 7.3 to 7.4.
After some research, I found the culprit was this $contentType['fields'], because of an incompatible change in PHP 7.4
(see https://www.php.net/manual/en/migration74.incompatible.php - "Array-style access of non-arrays").
Before PHP 7.4, when you used $contentType['fields'] on a null $contentType, PHP returned null.
With PHP ^7.4, it will generates a notice and Bolt throws a ContextErrorException.
After I discovered this, I wanted to create a pull request to fix the bug... But I found it was already merged in #205 🎉
So, you just need to update your version of Translate to the latest (4.2.4 at the time of this comment) and it will fix your issue.
I ran into an error when updating from php7.2 to php7.4 (which I performed first via the hoster's dashboard)
which also caused me to upgrade from Bolt <3.6 to Bolt 3.7.2 (Bolt 3.6 frontend worked fine on php 7.4, but the backend not so much.
Bob saw the screenshot (attached) and asked me to post it here, sine it looks translate-related.
But: there seems to be a trick when I use 2 steps:
Details
The text was updated successfully, but these errors were encountered: