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

How to add forum routes to 'web' route groups to avoid errors #102

Closed
jerryOkafor opened this issue Jan 9, 2016 · 11 comments
Closed

How to add forum routes to 'web' route groups to avoid errors #102

jerryOkafor opened this issue Jan 9, 2016 · 11 comments

Comments

@jerryOkafor
Copy link

i have succeeded in integrating laravel and forum but one thing is left, the web guard middleware enbles session in laravel 5.2, so when i run /forum i get this errors:

ErrorException in 6829460faf86e4b23bc8a19c8baa92dc4b035c9e.php line 7:
Undefined variable: errors (View: C:\wamp\www\agron\resources\views\vendor\forum\partials\alerts.blade.php) (View: C:\wamp\www\agron\resources\views\vendor\forum\partials\alerts.blade.php) (View: C:\wamp\www\agron\resources\views\vendor\forum\partials\alerts.blade.php)

@antonkomarev
Copy link
Contributor

@Jerryhanks take a look: #97

@Riari Riari closed this as completed Jan 10, 2016
@jerryOkafor
Copy link
Author

This does not solve my problem, if any one has used the forum with laravel 5.2 then they should tell me.

@Riari
Copy link
Collaborator

Riari commented Jan 10, 2016

I did, and I couldn't reproduce the issue. Did you set forum.frontend.middleware to web?

@jerryOkafor
Copy link
Author

which folder is it. One more thing, i have installed it and the only thing i see is a page with no link for creating a category or thread or post or comment/reply, how can i start using it.

@Riari
Copy link
Collaborator

Riari commented Jan 10, 2016

After publishing config via artisan vendor:publish, you'll find the option in config/forum.frontend.php.

Are you logged in? If so, are you using Laravel's standard auth or a third party authentication package? The forum uses Laravel's built-in Auth classes.

@jerryOkafor
Copy link
Author

I am loged in and I am using larval standard Auth,

@jerryOkafor
Copy link
Author

I have seen a link to create a new category but i get this error after creating a new catgeory

FatalErrorException in BaseModel.php line 138:
Call to a member function parameterNames() on a non-object

@Riari
Copy link
Collaborator

Riari commented Jan 11, 2016

This is weird, but I have a feeling you're somehow using old package files. I say that because the line number in the current BaseModel for the line in question is 144, not 138. It moved down as of 3.0.2 with the addition of @deprecated and @todo lines.

Make sure you're using the latest version and that error should go away.

@jerryOkafor
Copy link
Author

I am using 3.0

@jerryOkafor
Copy link
Author

How do I update to the latest packed cos I just installed this package according the commands in the readme.md.

@antonkomarev
Copy link
Contributor

A bit crunchy method, but it will do the trick.

Remove there lines from composer.json in your laravel root folder:

"riari/laravel-forum": "~3.0",
"riari/laravel-forum-frontend": "~1.0",

Then run composer update. It will remove package from your application.

After that you can install forum again from documentation.

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

3 participants