WordPress folder ownership issues
you can run something like sudo chown -R myusername:www-data public_html it will solve both the problems together
you can run something like sudo chown -R myusername:www-data public_html it will solve both the problems together
Check folder permissions too. Also See this post http://www.php.net/manual/en/function.fopen.php#105465 – suggests he had to change to absolute from relative to get around error message. Set of debug suggestions here: http://www.wrensoft.com/forum/showthread.php?t=786 1) folder permissions 2) upper/lowercase 3) abs/relative path and finally it turned out to be an extra space somewhere,
I get “Failed to load resource: the server responded with a status of 403 (Forbidden)” for a huge bunch of your CSS/JS, basically everything that’s under the wp-content directory. You might want to look into your file permissions – here’s what WP needs.
Did you use ‘register_post_type’ ? If yes, you can add on supports parameters => ‘author’ ?
By default, the author user role allows users to add, edit, and delete their own pages and posts, but disallows users to edit or delete others’ pages and posts; however, it does not, out of the box, limit users to the creation of a single page or post. If your intent is merely to allow … Read more
When using save_post you are usually add/updating user-inputted data from a metabox into the database. When do this you should check that your metabox’s nonce is valid. You should also check permissions as save_post is triggered inside wp_insert_post(), and not just when the you create/edit a post admin side.
You may as I have found need to change the group that apache runs under. In ubuntu you can do this by editing the /etc/apache2/envvars file. The above answer by AlxVallejo is mostly correct but this (Tom’s) is a better answer with regards to setting permissions https://serverfault.com/questions/6895/whats-the-best-way-of-handling-permissions-for-apache2s-user-www-data-in-var Also I found that even when you do … Read more
If you look at WordPress’s explanation of Roles and Capabilities, you will see that the correct role you should have assigned them is Author. That being said, if you for some reason don’t want to change them to Authors, you can alter the capabilities that a role has. See the full list of Editor capabilities … Read more
You need to talk to your web host Versio.nl; something is amiss with their shared server configurations. Files and folders should never be 777. WordPress needs no more than 644 on files and 755 on folders. And WordPress should be able to create directories. Some plugins require the /wp-content/ folder be made writeable, but in … Read more
I’m sure you could specify some capabilities while registering the Post Type itself. Although, here is a more robust version that can be used widely across the administration dashboard. /** * Hide dashboard administrator menus from disallowed user roles. * * @author Michael Ecklund * @author_url https://www.michaelbrentecklund.com/ * * @return void */ function mbe_hide_menus() { … Read more