Comments

A plugin for discussing published content. Features email reply notifications and a reload free posting experience.

Back to Comments Support

alen.dr2382
alen.dr2382

Hello, You have bug in Componentes/Comments.php in line 238 when you check: if($user = Auth::getUser()){

You have defined as:


if($user = Auth::getUser()){
            $this->user_id = $user->id;
            $this->author_name = $user->name . ' ' . $user->surname;
            $this->author_email = $user->email;
}

But should be:


if($user = Auth::getUser()){
            $this->comment->user_id = $user->id;
            $this->comment->author_name = $user->name . ' ' . $user->surname;
            $this->comment->author_email = $user->email;
}

So you wont get error: {"X_OCTOBER_ERROR_FIELDS":{"author_name":["The author name field is required."],"author_email":["The author email field is required."]},"X_OCTOBER_ERROR_MESSAGE":"The author name field is required."}

Last updated

UpTop
UpTop

Hi!

Thank you for your bug report! Sorry for the inconvenience and we will look at it ASAP.

alen.dr2382
alen.dr2382

Hi,
Can i write you a new bug here or open a new ticket for new bug ?

UpTop
UpTop

Please do in a new topic :)

UpTop
UpTop

This problem should be solved as of 1.0.3.

tafije230798086
tafije230798086

Good catch on the assignment issue inside the auth check binding values to the comment object instead of the component explains the validation error clearly. mathplayground

1-6 of 6