Language Switcher Error
Created 6 years ago by mohammed_abdallah

I 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

mohammed_abdallah  —  6 years ago

the error in this line switcher-plugin/src/LanguageSwitcher/Command/RenderLanguageSwitcher.php:46

ryanthompson  —  6 years ago

That looks like a perfectly OK ternary to me. I am checking now...

ryanthompson  —  6 years ago

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'}) }}
mohammed_abdallah  —  6 years ago

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

ryanthompson  —  6 years ago

What are your PHP / server OS versions being used?

mohammed_abdallah  —  6 years ago

php version=>>>PHP 5.6.30 serverOS=>>>>Debian GNU/Linux 8.7 (jessie)

ryanthompson  —  6 years ago

Make sure you meet laravel's minimum requirements: https://laravel.com/docs/5.5#server-requirements

ryanthompson  —  6 years ago

Just double checked but we share those requirements as well: https://pyrocms.com/documentation/pyrocms/3.4/installation/server-requirements