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

Parse error in shell #15

Open
tommy83 opened this issue Nov 14, 2016 · 2 comments
Open

Parse error in shell #15

tommy83 opened this issue Nov 14, 2016 · 2 comments

Comments

@tommy83
Copy link

tommy83 commented Nov 14, 2016

I try to translate my "german" storeview to the target "englisch" storeview .
I open shell and enter: php fballiano_full_catalog_translate.php de en

<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/homepages/39/d643487661/htdocs/shell/fballiano_full_catalog_translate.php</b> on line <b>27</b><br /> (uiserver):u85987433:~/shell$

Linux Server/Hosting Pack
Magento Version 1.9.2.4
Translation Attribute is set: Yes
Core PHP Version is 5.5.38
Linux Server

What is wrong? Any one have a idea?

Thank you.
Tommy

@fballiano
Copy link
Owner

I see no errors in the file:
fab@MacBook-Pro-di-Fabrizio ~/D/P/m/shell> php -l fballiano_full_catalog_translate.php
No syntax errors detected in fballiano_full_catalog_translate.php

can you check if the file was correctly downloaded?
how did you downloaded it?
also, which php version do you have?

@tommy83
Copy link
Author

tommy83 commented Nov 26, 2016

PHP Version is 5.5.38
Download with the green button "Clone or download" and then "Download ZIP"

Maybe the problem is i have no Google Translate API Key entered? The translation api is not for free, correct?

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