Language Switcher Error
Created 6 years ago by mohammed_abdallahI used language switcher and worked fine in my local machine but on the server give me error 500 and the error in the log file syntax error, unexpected '?'' in /htdocs/red_sea/core/wirelab/language_switcher-$ i think it about the storage folder permission but it's already take 777
That looks like a perfectly OK ternary to me. I am checking now...
It's working for me on latest install but I did have to delete the service provider as it's trying re-registering the plugin.
{{ languageSwitcher('dropdown', {'toggle_title':'Choose language'}) }}
i did the same but still the same error i think it's work fine in my machine cause of that my OS is Windows but server is linux i think it's use the storage folder to write cache file or something like that i don't sure
What are your PHP / server OS versions being used?
php version=>>>PHP 5.6.30 serverOS=>>>>Debian GNU/Linux 8.7 (jessie)
Make sure you meet laravel's minimum requirements: https://laravel.com/docs/5.5#server-requirements
Just double checked but we share those requirements as well: https://pyrocms.com/documentation/pyrocms/3.4/installation/server-requirements
the error in this line switcher-plugin/src/LanguageSwitcher/Command/RenderLanguageSwitcher.php:46