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
This is not probably a bug, it is more about how you do it without ending with error.
I have 2 languages site - English and Slovak.
My frontend was Slovak.
I set the news grid menu (added in menu area) and set the caption in the menu manager.
Then I change frontend language to English (with admin icon, just switched languages).
There was no visible issue in PHP 7.4, Then I used PHP 8.1. and fatal error occurred
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is not probably a bug, it is more about how you do it without ending with error.
I have 2 languages site - English and Slovak.
My frontend was Slovak.
I set the news grid menu (added in menu area) and set the caption in the menu manager.
Then I change frontend language to English (with admin icon, just switched languages).
There was no visible issue in PHP 7.4, Then I used PHP 8.1. and fatal error occurred
This is code for caption:
error was: Fatal error: Uncaught TypeError: defined(): Argument #1 ($constant_name) must be of type string, array given
my $parms['caption'] is
and e_LANGUAGE is English.
So yes, error is correct.
But why if I have site with 2 languages, menu caption is not something like this?
Yes, I went to menu manager and fixed this, but it looks to me very weird...
There should be test if it is array, then don't use second part for string.
Your opinion?
Beta Was this translation helpful? Give feedback.
All reactions