mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #494] Class 'Pusher' not found #348
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#348
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MQTEnt on GitHub (Dec 3, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/494
When I install Koel, in step composer install when almost finish but an error occur
@verygoodsoftwarenotvirus commented on GitHub (Dec 3, 2016):
I am also experiencing this.
Update: running
composer require pusher/pusher-php-server --no-scriptscaused it to stop displaying this error.@phanan commented on GitHub (Dec 5, 2016):
Have you added
BROADCAST_DRIVER=loginto.envas instructed in the upgrade guide?@binhex commented on GitHub (Dec 5, 2016):
I'm getting the same issue on a clean install (aka not upgrading), im assuming the .env file only comes into play when you attempt to init koel yes?, and thus i dont think adding in
BROADCAST_DRIVER=logwill fix this, output of error:-`
php artisan clear-compiled
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Pusher' not found
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 1
`
edit - @verygoodsoftwarenotvirus thanks for the workaround btw, worked for me, @phanan possible to include this in your install script?.
@DaanOlbrechts commented on GitHub (Dec 5, 2016):
I suspect it is because in config/broadcasting.php the default for BROADCAST_DRIVER is set to "pusher".
During the installation process
php artisan clear-compiledruns first (throwing the error) beforephp -r "if (!file_exists('.env')) copy('.env.example', '.env');".Either changing the default value to log OR switching both installation instructions would fix this problem from occuring on fresh installations.
It also works when you supply your own .env file when installing. That file should contain the
BROADCAST_DRIVER=logentry@MQTEnt commented on GitHub (Dec 5, 2016):
@phanan okey, it works 👍
btw, I like your books very much :)
@MQTEnt commented on GitHub (Dec 6, 2016):
I have an error again,
It's the same issue #434 but I can't find the solution that works
@Ex10Dios commented on GitHub (Jul 13, 2017):
If You want to use Pusher and in .env is "BROADCAST_DRIVER=pusher" You should edit line in "vendor/laravel/framework/src/illuminate/Broadcasting/BroadcastManager.php"
"use Pusher;" to "use Pusher\Pusher;"
@AhmadHani commented on GitHub (Jul 27, 2017):
i edit it but i have new problem
Argument 1 passed to Illuminate\Broadcasting\Broadcasters\PusherBroadcaster::__construct() must be an instance of Pusher, instance of Pusher\Pusher given, called in C:\Users\Ahmed\Desktop\projects\social-network\vendor\laravel\framework\src\Illuminate\Broadcasting\BroadcastManager.php on line 215 and defined
@tomdew commented on GitHub (Jul 28, 2017):
Try this: https://stackoverflow.com/questions/45052853/class-pusher-not-found
Just going through it the second answer seems to be working for me.
@deangite commented on GitHub (Aug 21, 2017):
Install pusher 2.6
composer require pusher/pusher-php-server "~2.6"@samayo commented on GitHub (Aug 24, 2017):
Still getting this error. This lib looked awesome and I was about to become a backer, but this needs to be fixed, I hope someone can fix it ... also thanks for making this. I was about to start making one from scratch :)
@phanan commented on GitHub (Aug 24, 2017):
I don't see why setting
BROADCAST_DRIVER=login.envcan't fix this "error."@ghost commented on GitHub (Sep 4, 2017):
This worked for me.
A better way is to create an alias in config/app.php. Under the 'aliases' key, add this to the array in the "Third Party Aliases" section:
'Pusher' => Pusher\Pusher::class,
@evinkuraga commented on GitHub (Oct 13, 2017):
for laravel 5.5 users, just change your composer json line to this:
"pusher/pusher-php-server": "~3.0"
@AhmedHdeawy commented on GitHub (Dec 30, 2017):
in your config/app.php add this line to aliases
'Pusher' => Pusher\Pusher::class,
@MQTEnt commented on GitHub (Jan 6, 2018):
thank for answering my question until now :))
@youssefshibl commented on GitHub (May 27, 2022):
for solve this problem -->
Argument 1 passed to Illuminate\Broadcasting\Broadcasters\PusherBroadcaster::__construct() must be an instance of Pusher, instance of Pusher\Pusher given, called in C:\Users\Ahmed\Desktop\projects\social-network\vendor\laravel\framework\src\Illuminate\Broadcasting\BroadcastManager.php on line 215 and defined
you should run "cp .env.example .env"
and if you want to upload your website in heroku you should remove the ".env " file from .gitignor file