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

Error after upgrading to PHP 8 (ERR_INVALID_RESPONSE) #208

Closed
jadamec opened this issue Feb 11, 2021 · 7 comments
Closed

Error after upgrading to PHP 8 (ERR_INVALID_RESPONSE) #208

jadamec opened this issue Feb 11, 2021 · 7 comments
Labels
bug Something isn't working resolved in v3

Comments

@jadamec
Copy link

jadamec commented Feb 11, 2021

Hi there, after upgrading from PHP 7.4 to PHP 8, I got an error
local.ERROR: During class fetch: Uncaught ErrorException: The magic method Box\Spout\Common\Singleton::__wakeup() must have public visibility in C:\Users\jadam\projects\zdrap\vendor\box\spout\src\Spout\Common\Singleton.php:39

How to fix this, please?

@jadamec jadamec changed the title Error after upgrading to PHP 8 Error after upgrading to PHP 8 (ERR_INVALID_RESPONSE) Feb 11, 2021
@7ard1grad3
Copy link

Same issue

@7ard1grad3
Copy link

7ard1grad3 commented Feb 15, 2021

The issue is with serialization.
The only "solution" I found (as a temporary fix) is to add
error_reporting(E_ALL ^ E_WARNING);

@jadamec
Copy link
Author

jadamec commented Feb 19, 2021

The issue is with serialization.
The only "solution" I found (as a temporary fix) is to add
error_reporting(E_ALL ^ E_WARNING);

This seems to work for now. Hopefully they'll fix it soon. 👍

@rap2hpoutre
Copy link
Owner

Hi 👋 Thank you for your contribution! I guess we have to update Spout at the latest version to fix this issue. There is already an issue open for this #142, but it has not been considered yet!

@rap2hpoutre rap2hpoutre added the bug Something isn't working label Feb 22, 2021
@rap2hpoutre
Copy link
Owner

I just updated fast-excel to be compatible with latest version versions of PHP, Laravel, Spout and PHPUnit.

The error as been fixed. Could you try to install the v3.0.0: composer require rap2hpoutre/fast-excel:^3? Let me know if it fixes your issue.

@jadamec
Copy link
Author

jadamec commented May 1, 2021

@rap2hpoutre thanks, but I'm already using the Spout directly, and if to be honest, it's much easier now.

@rogatty
Copy link

rogatty commented May 11, 2021

@rap2hpoutre it fixed the same issue for me, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved in v3
Projects
None yet
Development

No branches or pull requests

4 participants