Question

I was working on the realtime comment system for my website using pusher.I have set the following setting of the pusher for my website.

$pusher = new Pusher(
 '**************', //APP KEY
 '*************', //APP SECRET
 '*****' //APP ID
);

It is working prefectly but I am getting following errors.

Severity: Warning Message: Missing argument 1 for Pusher::__construct(), called in /var/www/system/core/Loader.php on line 1099 and defined Filename: libraries/Pusher.php Line Number: 72

What can be the error. Any help will be great.

Was it helpful?

Solution

Using codeigniter, Need to load the library pusher in the constructor of the controller.

I have done it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top