Change WordPress user roles and capabilities › Forums › Bug Reports › Error 500 when using Post Edit Access
- This topic has 12 replies, 2 voices, and was last updated 6 years, 7 months ago by ArieHeij.
-
AuthorPosts
-
22/04/2018 at 11:35 #4791ArieHeijParticipant
Hi Vladimir,
Today I noticed that when a user rol has Post Edit Access enabled and there is a post id filled in this results in a error 500 when clicking on menu item pages.
The strange thing is when in go to directly to the page by filling in the whole link: https://gkvmiddelharnis.nl/wp-admin/post.php?post=2859&action=edit then I see the page and when I click on the menu item Pages again i see the overview page with page 2859 in the list which is correct, but when I click on pages again I get the 500 error again. So the user has sufficiënt right it would seem but there is something broken i cannot get my head around it.The rights for this user are:
Edit others pages
Edit pages
Edit private pages
Edit published pages
Publish pages
Read private pages
Read
Read private pagesPost edit acces:
What to do is allow
with post ID (comma separated): 2859Can you help me? Thanks.
Kind Regards,Arie
23/04/2018 at 07:11 #4792VladimirKeymasterHi Arie,
Right, it’s not the permissions issue. You will see ‘Not enough permissions’ or similar error message in that case. HTTP 500 error code is a server side error. The most probable reason is a script execution timeout or ‘not enough memory’ issue. It will be good if you can look at the server system logs for the related error message.
Do you have a huge quantity of posts at your site?
23/04/2018 at 11:09 #4793ArieHeijParticipantHi Vladimir,
No I do not have a lot of posts. (34 pages) I see in the server log this:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /www/wp-includes/meta.php on line 461When I remove the post id at the Post edit Access menu I am not getting these errors and also nothing is in the log then.
Thanks.23/04/2018 at 11:39 #4794ArieHeijParticipantAn other thing I noticed is that when I’m logged on as this user and before I go to pages I click on media, the pages overview page is loading fine. When I click multiple times on pages then I get the error 500 again. When I then click on media again and then pages again it loads again.
This only acts up when the post id is filled at the Post edit Access menu.
23/04/2018 at 13:02 #4795ArieHeijParticipantHi Vladimir,
I narrowed the problem down to the plugin: ACF: Better Search.
When that one is activated I get problems. I deactivated the plugin for now and it keeps working.
So it seems a combination problem between ACF: Better Search and Post Edit Access.Hope you can replicate the problem and make a fix for it.
Thanks.23/04/2018 at 13:08 #4796VladimirKeymasterArie,
Thanks for the information. I just wanted to recommend you, if you have some unused plugins activated try to deactivate them. It will free some memory and may resolve an issue.
Before I will start tests with “ACF: Better Search”, what if to deactivate some other plugin(s), but leave ACF BS active instead? Will error 500 problem stay or go away? I
23/04/2018 at 14:14 #4797ArieHeijParticipantVladimir,
I deactivated all plugins exept User Rol Editor and “ACF: Better Search” then I still got the 500 error. When I also disable “ACF: Better Search” then the error 500 doesn’t occurred anymore.
23/04/2018 at 14:46 #4798VladimirKeymasterArie,
Perfect. Now, I reproduced a PHP error trying to open restricted pages list having active “ACF Better Search” plugin. I will work on a workaround.
23/04/2018 at 14:59 #4799ArieHeijParticipantgreat thanks.
23/04/2018 at 15:38 #4800VladimirKeymasterCan you please test development version 4.45.b2?
It’s available after login from the same Download” page.23/04/2018 at 16:48 #4801ArieHeijParticipantHi Vladimir,
I have tested 4.45.b2 and I can confirm that the issue has been fixed in this version.
Thanks for the quick fix.Kind regards,
Arie
23/04/2018 at 16:49 #4802VladimirKeymasterArie,
Thanks for the help with isolating this conflict between 2 plugins.
23/04/2018 at 17:15 #4803ArieHeijParticipantNo problem. Glad I could help.
Thanks again. -
AuthorPosts
- You must be logged in to reply to this topic.