Language Switcher Error

mohammed_abdallah - 2 weeks ago

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 - 2 weeks ago

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

ryanthompson - 2 weeks ago

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

ryanthompson - 2 weeks 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 - 2 weeks 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 - 2 weeks ago

What are your PHP / server OS versions being used?

mohammed_abdallah - 2 weeks ago

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

ryanthompson - 2 weeks ago

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

ryanthompson - 2 weeks ago

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