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 Warning causing subsequent Fatal #181

Open
aviaialon opened this issue Oct 13, 2017 · 0 comments
Open

PHP Warning causing subsequent Fatal #181

aviaialon opened this issue Oct 13, 2017 · 0 comments

Comments

@aviaialon
Copy link

This warning happens with large sheets or sheets with larger formulas:

PHP Warning:  SimpleXMLElement::__construct(): Entity: line 1: parser error : internal error: Huge input lookup in vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/Worksheet.php on line 156

To fix this, on line 156 of vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/Worksheet.php, please change the following:

return new CellFeed(new \SimpleXMLElement($res));

to:

return new CellFeed(new \SimpleXMLElement($res, LIBXML_COMPACT | LIBXML_PARSEHUGE));

Thanks!

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

1 participant