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

Class 'PHPExcel_Shared_Font' not found #1654

Closed
ds-manish opened this issue May 8, 2018 · 12 comments
Closed

Class 'PHPExcel_Shared_Font' not found #1654

ds-manish opened this issue May 8, 2018 · 12 comments
Labels

Comments

@ds-manish
Copy link

ds-manish commented May 8, 2018

Versions

"php": ">=7.1.0",
"laravel/framework": "5.6.*",
"maatwebsite/excel": "~3.0.5"

while doing composer install as well as while doing composer update

Error

In excel.php line 182:
Class 'PHPExcel_Shared_Font' not found

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

@patrickbrouwers
Copy link
Member

@ds-manish did you upgrade from 2.1? You'll have to delete your config/excel.php and re-publish it. As the version 2.1 config uses PHPExcel classes instead of PhpSpreadsheet.

@indigoram89old
Copy link

@patrickbrouwers Its working! Thank you!

@famarojr
Copy link

@ds-manish did you upgrade from 2.1? You'll have to delete your config/excel.php and re-publish it. As the version 2.1 config uses PHPExcel classes instead of PhpSpreadsheet.

How can I re-publish it?

@artemmolotov
Copy link

artemmolotov commented Sep 25, 2018

@famarojr

From installation:

php artisan vendor:publish --provider=Maatwebsite\Excel\ExcelServiceProvider

@famarojr
Copy link

Thank you. Now, I have this return:

There are no commands defined in the "iseed" namespace.

@meicuihui
Copy link

Thank you, solved my problem.

@Kailas10
Copy link

Kailas10 commented Jan 3, 2019

@famarojr

From installation:

php artisan vendor:publish --provider=Maatwebsite\Excel\ExcelServiceProvider

after using this command getting Class 'Arrilot\Widgets\ServiceProvider' not found this error.

@GlennM
Copy link
Contributor

GlennM commented Jan 3, 2019

after using this command getting Class 'Arrilot\Widgets\ServiceProvider' not found this error.

Doesn't sound related to Laravel-Excel in my opinion.

@neoacevedo
Copy link

None of the options are working to me.

I have a clear laravel installation, and when I try to access I get the error Class 'PHPExcel_Shared_Font' not found

@GlennM
Copy link
Contributor

GlennM commented Feb 6, 2019

None of the options are working to me.

I have a clear laravel installation, and when I try to access I get the error Class 'PHPExcel_Shared_Font' not found

Could you please share your versions of PHP, Laravel and Laravel Excel? Thanks!

@szabizs
Copy link

szabizs commented Jul 16, 2019

@famarojr

From installation:

php artisan vendor:publish --provider=Maatwebsite\Excel\ExcelServiceProvider

Thank you for this suggestion, everything working now.

@amirasyraf
Copy link

If anyone is getting the error

Unable to locate publishable resources.

you need to put quotation marks in provider:

php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests