Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Problems in console #9

Closed
ettolo opened this issue Jul 18, 2018 · 2 comments
Closed

Problems in console #9

ettolo opened this issue Jul 18, 2018 · 2 comments
Labels
question Further information is requested

Comments

@ettolo
Copy link

ettolo commented Jul 18, 2018

Hi, thank you for this extension.
I'm trying to save a xls file from console but I get this error:
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/****/vendor/yii2tech/spreadsheet/src/Spreadsheet.php on line 222
The same code works perfectly if called from the browser.
Any Idea?
Tryed in a different server and it works, but also tryed a different extension in the same server and works perfecty. Also your csv exporter works in both servers

@klimov-paul
Copy link
Member

I can not debug your environment for you.
Make sure PHP web handler and console handler refer to the same PHP instance, have same version and same php.ini config.

@klimov-paul klimov-paul added the question Further information is requested label Jul 20, 2018
@ettolo
Copy link
Author

ettolo commented Jul 20, 2018

Thank you, think you pointed me to the right solution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants