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

Discussion and Post not working in my chatter application #86

Closed
MadMenan opened this issue Mar 17, 2017 · 8 comments
Closed

Discussion and Post not working in my chatter application #86

MadMenan opened this issue Mar 17, 2017 · 8 comments

Comments

@MadMenan
Copy link

Hi i tried to install the chatter application in laravel 5.4, i got a error message when i create a new discussion and create the post. this is the error message. How can i fix it?

FatalThrowableError in ChatterBeforeNewDiscussion.php line 26:
Type error: Argument 2 passed to DevDojo\Chatter\Events\ChatterBeforeNewDiscussion::__construct() must be an instance of Illuminate\Support\Facades\Validator, instance of Illuminate\Validation\Validator given, called in /home/menan/www/fourm/vendor/devdojo/chatter/src/Controllers/ChatterDiscussionController.php on line 66

@CodeSkills
Copy link

Same here.

@fwartner
Copy link

Here too.

@fwartner
Copy link

#80 is the fix!

Have added it manually to a fork.. In case you would like to use it:

composer.json:

"require": {
        "devdojo/chatter": "dev-master",
    },

 "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/fwartner/chatter"
        }
    ],

@MadMenan
Copy link
Author

@CodeSkills I got another solution. i remove some code from ChatterDiscussionController store function

    // Event::fire(new ChatterBeforeNewDiscussion($request));
    // if (function_exists('chatter_before_new_discussion')) {
    //     chatter_before_new_discussion($request);
    // }

and ChatterPostController store function
// Event::fire(new ChatterBeforeNewResponse($request, $validator));
// if (function_exists('chatter_before_new_response')) {
// chatter_before_new_response($request, $validator);
// }

@chrisbbreuer
Copy link
Contributor

It was already fixed and pushed as well 👍

@lednhatkhanh
Copy link

Still happen on a new laravel install

@moseskamau338
Copy link

moseskamau338 commented Sep 18, 2019

Still getting the issue again in a fresh install
On Laravel 6

@Tricabiz
Copy link

Giving bunch of errors in Laravel 6! Atleast tell us which version you support! WTH

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

No branches or pull requests

7 participants