Error "Edit not permitted"

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
Vlade
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Aug 22, 2016 1:57 pm

Error "Edit not permitted"

Post by Vlade » Mon Aug 22, 2016 2:24 pm

Hi,

It seems like problem started after last update to 3.6.2.

Before that, users could create, delete and edit articles at the backend,
but now when article is clicked for editing an error message shows at the top of the article list:

"Error
Edit not permitted."


It is still possible to delete article and create a new one.

What could be the problem?

Thank you in advance.

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Error "Edit not permitted"

Post by itoctopus » Mon Aug 22, 2016 4:01 pm

There are 2 issues that might be causing this problem:

- Corruption in the ACL (access control list)
- Corruption in the assets table

Backup your website and try fixing both. For the ACL you can use the ACL Manager extension, and for the assets, you can follow this official guide: https://docs.joomla.org/Fixing_the_assets_table

Just make sure that you backup your website (especially the database) once you do this - this is a very dangerous area and it might cause serious issues if things go wrong there.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

Vlade
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Aug 22, 2016 1:57 pm

Re: Error "Edit not permitted"

Post by Vlade » Wed Aug 24, 2016 5:33 pm

Thank you very much for your post.

I tried your suggestion. There is no problem in the assets table.

As for the ACL, I did not buy the ACL manager extension, because I don't now how it would help. I have a user in a user group which inherited "not allowed" setting from its parent (Public), for every action except Access Admin Interface. Further, this usergroup is allowed every action in Category X, which results in calculated Allowed for every action for the Articles in this Category.

However, when this user clicks on the article for edit, it throws up "Edit not permitted" Error.

If I change Global or Article component settings to allow edit for this user group, then user can edit articles from Category X, but off course, also every other article from every other category which I don't want.

Now, today I figured that few days ago, an update process (3.6.1 to 3.6.2) was started but not finished (I foolishly missed to deny access to admin interface in Global config :-[, so one of my users thought it would be fun to check wath's that button for, pressed it, and then panicked and stopped the process. Totally my fault :-[ .).

I tried to reinstall 3.6.2 version through admin and directly on server but the problem is always the same.

Do you still think ACL would help, or something else can be done.

Thank you in advance.

User avatar
JAVesey
Joomla! Hero
Joomla! Hero
Posts: 2637
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: Error "Edit not permitted"

Post by JAVesey » Wed Aug 24, 2016 6:59 pm

Vlade wrote:It is still possible to delete article and create a new one.
Maybe I'm being a bit dim here but:

1. Is this with all (existing) articles or only a few?
2. Front-end and/or back-end editing?
3. Are all your articles "checked-in"?
4. In admin, have you tried Extensions --> Database --> Fix? Whilst you're there, anything showing in "Warnings"?

I'm a big fan of ACL Manager; the modest cost for a 6 month subscription is well worth it in time saved if your issue really is ACL related. It will also fix your asset table; you'll be amazed at the number of errors when you first run it - at least, I was :-[
Vlade wrote:I tried to reinstall 3.6.2 version through admin and directly on server but the problem is always the same.
Can you check /logs/joomla_update.php - what does the last line say?
John V
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28

Vlade
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Aug 22, 2016 1:57 pm

Re: Error "Edit not permitted"

Post by Vlade » Wed Aug 24, 2016 8:53 pm

Hello John,

thank you very much for your reply.
JAVesey wrote:1. Is this with all (existing) articles or only a few?
1. This is issue with all articles - also with the newly created.
JAVesey wrote:2. Front-end and/or back-end editing?
2. It's all happening at the back-end.
JAVesey wrote:3. Are all your articles "checked-in"?
3. All articles are checked-in.
JAVesey wrote:4. In admin, have you tried Extensions --> Database --> Fix? Whilst you're there, anything showing in "Warnings"?
4. As a matter of fact I did the fix of database yesterday because it showed some Warnings.

Just as a reminder, all was working nicely before the update attempt.

The last line of the joomla_update.php says "... Starting installation of new version."
JAVesey wrote:I'm a big fan of ACL Manager; the modest cost for a 6 month subscription is well worth it in time saved if your issue really is ACL related. It will also fix your asset table; you'll be amazed at the number of errors when you first run it - at least, I was :-[
Maybe it is worth to give it a shot.

Thanks!

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Error "Edit not permitted"

Post by itoctopus » Wed Aug 24, 2016 9:06 pm

Hi Vlade,

May I ask how you know that there is no error in the assets table? Errors in the assets table are very very subtle (a 0 instead of 1 in just one row can bring the whole website down) and I'm not sure how you analyzed that there are no errors there without using a tool (if you used a tool, can you please let us know which one it is).
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

Vlade
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Aug 22, 2016 1:57 pm

Re: Error "Edit not permitted"

Post by Vlade » Wed Aug 24, 2016 9:26 pm

Hi itoctopus,

because this error ocures with all articles I presumed (obviously wrongly) that it is enough to check assets table for the levels of several randomly chosen articles and their parents up to the root level.
I see that ACL Manager has great reviews. Is there any extension nearly good enough that can check assets tables for free?

Thank you very much for your time.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Error "Edit not permitted"

Post by sovainfo » Wed Aug 24, 2016 9:50 pm

Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

User avatar
JAVesey
Joomla! Hero
Joomla! Hero
Posts: 2637
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: Error "Edit not permitted"

Post by JAVesey » Fri Aug 26, 2016 1:39 pm

Vlade wrote:The last line of the joomla_update.php says "... Starting installation of new version."
This might give a big clue. Doesn't look like your update completed.

Can you try Components --> Joomla! Update and click on the "Reinstall Joomla core files" button (organs button is you're using the Isis Admin Template).
John V
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28

Vlade
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Aug 22, 2016 1:57 pm

Re: Error "Edit not permitted"

Post by Vlade » Sat Aug 27, 2016 8:41 pm

First of all, I want to thank you all for your help.
I tried all of the suggestions but unfortunately, nothing worked.
Then I stumbled upon the solution at https://github.com/joomla/joomla-cms/pull/11511 :D .

For the future reference I am giving the outcomes of your suggestions:
I tried this one, but seems like the script is not compatible with 3.6.2
JAVesey wrote:Can you try Components --> Joomla! Update and click on the "Reinstall Joomla core files" button (organs button is you're using the Isis Admin Template).
Tried this one too but nothing happened.
itoctopus wrote:There are 2 issues that might be causing this problem:

- Corruption in the ACL (access control list)
- Corruption in the assets table
At the end I purchased the ACL manager extension, ran diagnostics, ended up with nine asset issues, fixed them, but the problem still remained. Though, it must be said that this extension helped a great deal with other issues related to ACL (granting of the large number of back-end permissions - especially hard job with EDocman extension). So anyway, thanks for the tip.

Great forum, thanks a lot again :D .


Locked

Return to “Administration Joomla! 3.x”