KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Uncaught Error: Class "MyCLabs\Enum\Enum" not found #3431

Open Eugene opened this topic on 3 days ago - 5 comments

Eugene commented 3 days ago

For no apparent reason, my Excel export stopped working. I am getting the error Class "MyCLabs\Enum\Enum" not found in ... koolreport/excel/vendor/maennchen/zipstream-php/src/Option/Method.php:16

but this class exists in /koolreport/excel/vendor/myclabs/php-enum/src/Enum.php

Sebastian Morales commented 2 days ago

Pls test this github issue post to see if it solves the issue:

https://github.com/PHPOffice/PhpSpreadsheet/issues/3758#issuecomment-2368822873

Eugene commented 2 days ago

I use the downloaded version of the koolreport in this project so nothing was installed using the composer.

Eugene commented 2 days ago

I followed the solution and executed the composer command in koolreport/excel folder. It has solved the issue.

But it means that your koolreport distributive that is available for downloading is not correct and consists the error in dependencies.

Sebastian Morales commented 1 day ago

It could be the case that the KoolReport Pro zip package was run under a different PHP version from yours. If you use composer to install koolreport/pro and still have this issue let us know. Tks,

Eugene commented 1 day ago

If so I think you should specify which version the download package is for or even prepare multiple packages for different versions of PHP. Who knows what other packages have problems due to differences in versions.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
help needed

Excel