Skip to content

Conversation

@DevBinnooh
Copy link

After installing magento2 and executing command:
bin/magento i18n:collect-phrases -m

It will generate error:
PHP Parse error: syntax error, unexpected 'Gateway' (T_STRING), expecting ';' in /path/setup/src/Magento/Setup/Module/I18n/Dictionary/Phrase.php(276) : eval()'d code on line 1
Parse error: syntax error, unexpected 'Gateway' (T_STRING), expecting ';' in /path/setup/src/Magento/Setup/Module/I18n/Dictionary/Phrase.php(276) : eval()'d code on line 1

Caused by unescaped single quote while trying to get php strings.

update: latest version also has the same issue.

This should fix it. please test and verify.

…3211

After installing magento2 and executing command:
bin/magento i18n:collect-phrases -m

It will generate error:
PHP Parse error:  syntax error, unexpected 'Gateway' (T_STRING), expecting ';' in /path/setup/src/Magento/Setup/Module/I18n/Dictionary/Phrase.php(276) : eval()'d code on line 1
Parse error: syntax error, unexpected 'Gateway' (T_STRING), expecting ';' in /path/setup/src/Magento/Setup/Module/I18n/Dictionary/Phrase.php(276) : eval()'d code on line 1

Caused by unescaped single quote while trying to get php strings.
--------
update: latest version also has the same issue.
-----------
This should fix it. please test and verify.
@mazhalai
Copy link
Contributor

mazhalai commented Feb 1, 2016

Related internal fix in MAGETWO-47301 and MAGETWO-48541

@mazhalai mazhalai closed this Feb 1, 2016
magento-engcom-team pushed a commit that referenced this pull request Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants