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

Shoutbox error #14

Closed
rickfo97 opened this issue Dec 11, 2017 · 4 comments
Closed

Shoutbox error #14

rickfo97 opened this issue Dec 11, 2017 · 4 comments
Assignees

Comments

@rickfo97
Copy link

rickfo97 commented Dec 11, 2017

  • Laravel Version: 5.4.*
  • PHP Version: 7.0.22-0
  • Database Driver & Version: mysql 5.7.20-0

Description:

When a shoutbox message has the user 0 an exception is displayed

Steps To Reproduce:

Have a message in the shoutbox table by user id 0.
Go to "[url]/".

Possible Fix:

Check if $messages->user is 0

@ghost ghost added the Bug label Dec 11, 2017
@HDVinnie
Copy link
Collaborator

$user->id of 0 is for the System account which posts the System Auto Shouts.
$user->id of 1 is for the Bot account which posts the Random Site Nerd Stats.
$user->id of 2 is default owner account.
id's increment from there.

do you have these in you DB? As im not seeing this issue.

@rickfo97
Copy link
Author

rickfo97 commented Dec 11, 2017

after I ran the seed I got
1 for bot
2 for owner
3 for system

The seed just increments and starts at 1 but I do get them in the right order now

@poppabear8883
Copy link
Contributor

I did not realize that it required a specific set of id's i will work on this now

@poppabear8883 poppabear8883 self-assigned this Dec 11, 2017
@HDVinnie
Copy link
Collaborator

This goes in hand with #10

poppabear8883 added a commit that referenced this issue Dec 12, 2017
@gmunday2 gmunday2 mentioned this issue Jul 27, 2020
@K4Li K4Li mentioned this issue Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants