Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP error #7

Open
mytraz opened this issue Mar 12, 2020 · 1 comment
Open

PHP error #7

mytraz opened this issue Mar 12, 2020 · 1 comment

Comments

@mytraz
Copy link

mytraz commented Mar 12, 2020

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/www-root/data/www/site.com/bitrix/modules/main/start.php on line 138

@kuntashov
Copy link
Member

Make sure that short_open_tag = On in your php cli conf.
If still does not work then provide more info:

  • PHP version
  • Bitrix version
  • run php -i in term and attach it's output here

Проверьте, что у вас в конфиге для консольного php указано short_open_tag = On
Если так и есть или исправили на short_open_tag = On и не помогло, то напишите

  • какая у вас версия пхп
  • какая версия битрикса
  • запустите php -i и приложите вывод сюда

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants