By Skyla Services on Wednesday, 29 June 2016
Posted in General Issues
Likes 0
Views 637
Votes 0
Hello,

We have recently finished upgrading a website from Easyblog 3.9.24862 to 5.0.36 and everything generally seems to have gone fine. We are however having two issues we can't resolve.

1. This is only regarding the Front-end, since Publishers aren't allowed in the Back-end admin page.

When assigning a Joomla User as a "Publisher" - they are unable to "Delete" comments. They get a "You do not have permissions to delete this comment."

If the user is an Super User, then it can be deleted fine. We are using the Easyblog built-in comment system.


Some specifics we have confirmed:

- Easyblog ACL for Publisher has "Allowed to delete blog's comments" and "Allowed to edit blog's comments" set to "Yes" (The whole "Managing" and "Moderation" tabs are all set to "Yes" - The rest of ACL matches except for minor differences in unrelated sections)

- Joomla Permission for Publisher are default. It has "Delete" set to "Not allowed" however changing to Allowed did not resolve issue. I assume this applies only to native Joomla Articles and such.

- All posts have Author assigned to the user having issues (only author/blog user for entire site)

- No specific permissions or Post Options settings set on any categories

- No site registration, all comments posted as "Guest" (Public)

Not sure what else to check since the settings we found seem to be set properly.


2. Unable to Edit comments - error: "Please enter your e-mail address in the form below"

This seems relatively simple but we don't have "Show Email Field" or "Require Email Field" set for comments. This makes it so when editing, the field is blank for all of them. We can always fill in a fake email but I think it would be much more practical if the setting during "Edit" followed the Easyblog setting to not require emails.

- confirmed in "EasyBlog Settings" in the "Comments" section, under "General" tab, the "Comment Form" has both "Show E-mail Field" and "Require E-Mail" set to "No"

Can't seem to get around this one - would like to not have to put in a fake email.

Thank you for the support.

Host/Server Info:
Apache (CloudLinux 7)
PHP 5.6.22
MySql 5.5.5-10.1.14-MariaDB
Joomla 3.5.1
Hello there,

Sorry for the delay of this reply.

When assigning a Joomla User as a "Publisher" - they are unable to "Delete" comments. They get a "You do not have permissions to delete this comment."

You have to replace attached files at following path:-
1. comments.php --> ..\components\com_easyblog\controllers\comments.php
2. view.ajax.php --> ..\components\com_easyblog\views\comments\view.ajax.php
3. default.item.php --> ..\components\com_easyblog\themes\wireframe\comments\default.item.php


Unable to Edit comments - error: "Please enter your e-mail address in the form below"

We are unable to replicate this issue on our local. We cannot access your FTP, it seems that your credentials given is invalid. Please advice.

Regards
·
Wednesday, 29 June 2016 12:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul Warith,

Thank you for your help. The files you've provided for the "Delete" issue worked, the user is now able to delete comments.

Regarding the "Edit" issue. I've tested the FTP details, to make sure there was no inaccuracy when providing those, and it works fine on our end. Please try again as the details provided are accurate and we would love to get the "Edit" issue resolve as soon as possible.

Thanks again for your help
·
Thursday, 30 June 2016 21:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Regarding with your second issue, I unable to reproduce, perhaps you can take a look of my instruction below and see is it I missed some of the step?

1. Login your user account as you provided
2. Try comment and edit
3. but there do not appear "Show Email Field" or "Require Email Field" from the comment form
4. Submit the comment successfully.
·
Thursday, 30 June 2016 23:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Arlex,

The steps you provided are for a end-user to edit their own comment - this would have worked with the account you used since it's a registered account that does have an email so that is likely why it work as per your screenshot. We only allow "Guest" comments (no registration) on the site so people would not be able to edit their own comments like you did but more importantly, would never have an email address attached to the comment.

To clarify the issue, it is when an Admin/Author user tries to edit someone else comment that the error comes up.

So to elaborate.

1. User leave a comment that says something like ""This is my test comment. I said a bad word HERE"" (Ref. EP SS1.png)
2. Author/Admin wants to edit comment to remove "HERE" (Ref. EP SS2.png)
3. After clicking "Update Comment" the issue occurs (Ref. EP SS3.png)

As I mentioned and you probably saw, email field is not asked or required for commenting, but still seems to prompt for it when the author/admin tries to edit someone else comment.

Hopefully this help.
·
Thursday, 30 June 2016 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Try download my attached file and replace into this following file location and see how it goes?

JoomlaFolder\administrator\components\com_easyblog\tables\comment.php
·
Friday, 01 July 2016 00:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Replacing the file fixed the issue, the user can now edit someone else's comment.

Thanks again for your help
·
Monday, 04 July 2016 20:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Monday, 04 July 2016 22:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post