I'm using docker and docker compose to install WordPress on my localhost and everything is working fine however i'm having problems when uploading new media and installing themes, new plugins e.t.c. The message "Could not create directory" appears when i want to install a new plugin. With extensive research i have tried many options to fix the file/folder permissions, even with a chmod 777 and still with no success. My docker compose file is: wordpress: container_name: testing image: wordpress environment: …
I am working on a clients site, one of the features they want is for his Editors or Authors to only be able to select existing images to insert into Posts from the Media Library. So looking at the media manager/upload screen below, is it possible to make the Upload Files tab to only be visible to Admin Users and also to make the Media Library shown by Default when this Dialog is shown?
I have a problem - when I click on "Wordpress update", I receive this message: Downloading update from https://downloads.wordpress.org/release/wordpress-5.1-new-bundled.zip… Unpacking the update… The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php Installation Failed I changed permissions: WP-admin and WP-includes to 755 WP-content to 777 All files in WP-admin are 755. What can be the problem? I am trying to solve it, but I can't do it.
This seems odd to me because if you're signing on a user you shouldn't already be signed in... therefore your permissions shouldn't matter. It may be a bit of an odd way of going about it, so that could be causing the issue. Here's the code: function login( $user_name, $password ) { $creds = array(); $creds['user_login'] = $user_name; $creds['user_password'] = $password; $creds['remember'] = false; $user = wp_signon( $creds, true ); if( is_wp_error( $user ) ) { $result = $user; } …
So I am looking at adding some custom post_meta to posts and I want those posts to not be editable, which will be some content that I am pulling in. Here is what I have: I have solved the issues when visiting the Post post_type and attempting to edit a post with a specific post_meta using this (This works great in the UI): add_filter('post_row_actions', function($actions, $post) { if (get_post_meta($post->ID, 'global_post', true)) { unset($actions['edit']); unset($actions['inline hide-if-no-js']); } return $actions; }, 10, …
I know there are a thousand questions about this all over the place and trust me I've been trying every possible solution for years [not an overstatement] and each and every one is either missing a crucial piece or simply doesn't work [in my experience]. I'm looking for a solid, complete, and open minded solution for the wordpress directory user / group ownership and permissions on linux. The requirements are the ones that I think everyone should be looking for: …
I'm trying to modify WordPress to have the following features: Users are created in Active Directory and assigned to groups. Users can login to WordPress via Active Directory. Pages can be locked down to only be visible to members of certain Active Directory groups. A "Downloads" page can be seen by members of any of several groups but each group can only see downloads that they have been given permission to see (I'm flexible to how this could be represented …
So, I've spent a couple of hours looking around the internet to try to figure out this problem, since it seems like a dumb one that would probably be a duplicate, but apparently it isn't. I'm hosting a WordPress site in a subdirectory on my main site (http://christopherdumas.org is the main site, http://christopherdumas.org/astraterra is the WP site) and when I try to upload files to a post in the WordPress site, it smacks me with this error: Missing a temporary …
I have created a custom post type 'book'. All book post-type are public, so I want to remove some capabilities such as 'delete_private_books', 'read_private_books' etc. How can I achieve this since when I activate member plugin it show all default capabilities including the above mentioned which has nothing to do with my custom post type. I have registered my post type book and added capabilities to it. $labels = array( 'name' => _x( 'Books', 'post type general name' ), 'singular_name' …
I am in the need to create new permissions with the following access: Post_Type_A (Custom post type): Access to Post_Type_A content type Post_Type_B (Custom post type): Access to Post_Type_B content type I am new to WordPress and no idea where to start. If someone please guide me about this I would be grateful. Regards
I've created a custom role via add_role, it's in my activation hook and is being removed on deactivation, thus I'm deactivating and reactivating my plugin to see the role permission changes. I can see that the changes are appearing (I've used the User Roles and Capabilities plugin to check) but I still can't view private page and posts when logged in. add_role( 'clerk', 'Clerk', [ 'read' => true, 'read_private_pages' => true, 'read_private_posts' => true ] ); I've even tried adding …
I've seen a couple of solutions on this site that solved some permission problems, however, they seem that they create others, at least for me. My setup is a local wordpress installation on Ubuntu 14.04. For example: when I want to install a plugin from within my wordpress admin area, I used to get asked to enter my FTP details. Surfing for an answer, I found that changing your user:group to www-data:www-data would solve it, and indeed it did. However, …
I had someone on fiverr design a wordpress website for me awhile back. They sent me the database when they were done and I imported it on my server and set everything up. What I've since realized is something is funky with the database. I'm able to add plugins without issues, I've edited some pages here and there, but if I try to create a new post, page, etc I get a message that I'm "Currently editing the page that …
I'm trying to troubleshoot an issue on a client's site. There is one specific page which appears as "not found" unless you log in and then visit the front end, in which case it appears normally. The visibility on the page is set to public, and in every other way it's a normal boring wordpress page. Stranger still, it only started happening recently (after months of trouble-free use). Problem page: http://www.leecamp.net/schedule/ Any ideas why this would happen?
I'm trying to force all content to be submitted for review. That means that if a user updates an already published page, that the update would be pending until someone else approves it. I don't see an option when looking at the wp's capabilities. Most role/cap plugins try to do too much and end up creating a mess. Any ideas? I guess, a better question, is if there's a way to save a post as a revision, instead of updating …
I configured file permissions according to here like this. apache user runs server and wordpress user owns directory, this user is only used for this site. drwxr-xr-x 5 wordpress wordpress 4096 Apr 12 01:12 . drwxr-xr-x 10 root root 4096 Apr 10 16:19 .. -rw-r--r-- 1 wordpress wordpress 418 Sep 25 2013 index.php -rw-r--r-- 1 wordpress wordpress 19929 Jan 18 2013 license.txt -rw-r--r-- 1 wordpress wordpress 3193 Jan 27 20:18 readme-ja.html -rw-r--r-- 1 wordpress wordpress 10156 Jan 27 20:18 readme.html …
I want users who don't have permission to view content to be redirected to a page when they are presented with the default "Nothing Found" page. I've already redirected 404s but this is not exactly a 404. The content exists, they just don't have permission to view it.
I'm having trouble with permission to delete files that are within the theme folder. All folders and files are with permission 775 and there is no error in the code , because when I use the code in a directory before the root folder wordpress works. -The image files are deleted via front-end . The error: DELETE http://www.mysite.com.br/wordpress/wp-content/themes/mytheme/cliente/server/php/index.php?file=imagem3.png 403 (Forbidden)jquery.min.js:4 It seems that the javascript I'm using does not have permission to delete the files , but it only has …
I am trying to install a second WP site on an Ubuntu 16 server running Nginx. I have successfully installed WordPress according to my server results, but I still only get the Nginx home page. I thought it might be the fact that the Group Owner was the User, so I changed group owner on web files to www-data: microurb@vps148370:/var/www/dancortes.press/public_html$ ls -l total 192 -rw-r--r-- 1 microurb www-data 0 Oct 5 15:36 index.html -rw-rw-r-- 1 microurb www-data 418 Oct 8 …
I'm following Changing File Permissions « WordPress Codex, yet when I'm try to update and/or install plugin and/or theme through wp-admin, I'm getting following: To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host. from file system level: # ls -ld wp-content/ wp-content/plugins/ wp-content/themes/ drwxrwxr-x. 6 root apache 4096 Jun 2 12:01 wp-content/ drwxrwxr-x. 28 root apache 4096 …