How to allow users to edit specific pages. We bring you several premium WordPress plugins to help you do just that.

I got a strange error message on one of my sites after switching to a new hosting

What I found as solutions and didn't work for me:

    I checked all the prefix things since my perfix is ​​not wp_ so everything is exactly in users_meta, also in wp_options.

    I even tried to insert a new admin user with php code, I got the same error.

    I also tried disabling all plugins and resetting to defaults, but nothing worked.

The server I switched to has ssl, so its an https connection which is covered by updates of all urls inside the db.

Another problem is when i log into wp-admin it shows the same message

Sorry, you cannot edit this item.

In the interface, I see a fully functional wp-bar with all the edit page / Create New post / page / etc buttons. But when I click it shows the same error as above.

Any suggestions?

2 answers

If you are trying to edit categories / custom taxonomies and you get this error, you should do the following.

    Check the wp_term_taxonomy table for Term IDs that are associated with more than one taxonomy ID. These entries are the root cause of the error. The following query will help you find this.

    SELECT term_id, COUNT (term_id) FROM wp_term_taxonomy GROUP BY term_id HAVING COUNT (term_id)> 1;

    Check the taxonomy column in the wp_term_taxonomy table that you want to keep and delete another taxonomy record. See # 3 before deleting.

    You should also delete records from the wp_term_relationships table for the corresponding term_taxonomy_id that you wp_term_taxonomy from the wp_term_taxonomy table.

Advice. Create backup databases before executing any DELETE requests on your database.

Deactivate your entire plugin and activate them one by one, this will help you find the culprit. if you can't get to the control panel, use FTP and rename the plugins directory.

Another solution

I found another solution to edit wp-includes / capabilities.php

Replace this code

Function current_user_can ($ capability) ($ current_user = wp_get_current_user (); if (empty ($ current_user)) return false; $ args = array_slice (func_get_args (), 1); $ args = array_merge (array ($ capability), $ args ); return call_user_func_array (array ($ current_user, "has_cap"), $ args);)

Function current_user_can ($ capability) ($ current_user = wp_get_current_user (); if (empty ($ current_user)) return false; if (is_admin ()) return true; $ args = array_slice (func_get_args (), 1); $ args = array_merge (array ($ capability), $ args); return call_user_func_array (array ($ current_user, "has_cap"), $ args);)

If that works, you still have to find a suitable solution as capabilities.php is the main file and any update will override your code.

Users who often work in Microsoft Word from time to time may encounter certain problems. We have already talked about the solution of many of them, but we are still far from considering and finding a solution to each of them.

This article will focus on the problems that arise when trying to open a "foreign" file, that is, one that was not created by you or was downloaded from the Internet. In many cases, these files are readable, but not editable, for two reasons.

The first reason is reduced functionality mode (compatibility issue). It turns on when you try to open a document created in more old version Word than the one used on a particular computer. The second reason is the inability to edit the document due to the fact that protection is installed on it.

About solving the compatibility problem ( limited functionality) we have already told earlier (link below). If this is your case, our instructions will help you open such a document for editing. Directly in this article, we will consider the second reason and give an answer to the question why the Word document is not being edited, and also tell you how to fix it.

Prohibition of editing

V Word document, which cannot be edited, almost all panel elements are inactive quick access, in all tabs. Such a document can be viewed, you can search in it by content, but when you try to change something in it, a notification appears "Restrict Editing".

If the ban on editing is set "formal", that is, the document is not protected by a password, then you can try to disable such a ban. Otherwise, only the user who installed it or the group administrator (if the file was created on the local network) can open the editing option.

Note: Notification "Document protection" also appears in the file information.

Note: "Document protection" installed in the tab "Review" designed for checking, comparing, making edits and collaborating on documents.

1. In the window "Restrict Editing" press the button "Disable protection".

2. In the section "Restriction on editing" uncheck the box "Allow only the specified method of document editing" or select the required option in the drop-down menu of the button located under this item.

3. All elements in all tabs on the Quick Access Toolbar will become active, therefore, the document can be edited.

4. Close the panel "Restrict Editing", make the necessary changes to the document and save it by choosing "File" command "Save as"... Specify the file name, specify the path to the folder to save it.

Again, removing the protection for editing is possible only if the document you are working with is not password protected and is not protected by a third-party user under his account. If we are talking about cases when a password is set for a file or for the possibility of editing it, without knowing it, make changes, or even you will not be able to open it at all Text Document impossible.

Note: Material on how to remove password protection from Word file expected on our website soon.

If you yourself want to protect the document by restricting the ability to edit it, or even completely prohibiting its opening by third-party users, we recommend that you read our material on this topic.

Removing the ban on editing in document properties

It also happens that editing protection is set not in Microsoft Word itself, but in the file properties. Often, it is much easier to remove such a restriction. Before proceeding with the steps described below, make sure that you have administrator rights on your computer.

1. Navigate to the folder with the file you cannot edit.

2. Open the properties of this document (right click - "Properties").

3. Go to the tab "Security".

4. Press the button "Change".

5. In the lower window in the column "Allow" check the box next to "Full access".

6. Click Apply then press "OK".

7. Open the document, make the necessary changes, save it.

Note: This method, like the previous one, does not work for files protected by passwords or third-party users.

That's all, now you know the answer to the question of why the Word document is not being edited and how, in some cases, you can still get access to editing such documents.

You can mark a document as read-only, but still allow changes to be made to parts of it.

Such parts with removed restrictions you can make it available to anyone who opens the document, or you can grant permission to edit these parts of the document to individual users.

Protecting the document and marking parts in which changes are allowed

When you open a protected document in Word, the ability to edit it is determined by the presence or absence of permission from the owner of the document to make changes to a certain part of it.

In the field of tasks Restrict Editing buttons are displayed to navigate to areas of the document in which the user is allowed to change.

If you do not have permission to change any part of the document when you click the buttons in the task pane Restrict Editing Word will disallow editing and will display the message "Word has finished searching in the document."

Find parts that can be edited

If you close the task pane Restrict Editing and try to make a change you don't have permission to, the status bar will show next message:

additional information

Unlocking a secure document

To remove all protection from a document, you may need the password that was applied to the document. You may need to be listed as the authenticated owner for the document.

Modifying a Restricted Document

When you open a protected document in Microsoft Word 2010, the possibility of changes is determined by the presence or absence of permission granted by the owner of the document to make changes to a specific part of it.

The task pane displays buttons to navigate to areas of the document where the user is allowed to change.

If you do not have permission to change any part of the document when you click the buttons in the task pane Limit formatting and editing Word disallows editing and displays the message "Word has finished searching in this document."

If you close the task pane and try to make a change for which you do not have permission, the following message appears in the status bar:

This change is prohibited because the selection is locked.

To return to the task pane and find the fragment that is allowed to change, do the following:

additional information

Adding protection and marking parts in which changes are allowed

Unlocking a secure document

Permission to change a document is not the same as permission to remove protection from a document. Even if everyone is allowed to change the content of the document, only authorized owners and users who enter the correct password can remove protection.

Modifying a Restricted Document

When someone opens a protected document in Microsoft Office In Word 2007, the ability to make changes is determined by whether that user is granted edit permission for a particular passage. When opening a document in the task pane Limit formatting and editing buttons are displayed to navigate to areas of the document that you can modify. If permission to edit parts of the document has been granted to all, then anyone who opens the document can navigate to these areas by clicking Find the next area that I can edit.

If only individual users have permission to edit parts of a document, no one else can navigate to those areas. For everyone else when clicking buttons in the task pane Limit formatting and editing Office application Word 2007 disallows editing and displays a "Document Search Completed" message.

Opening the Restrict Formatting and Editing Task Pane

If you close the Task Pane and try to make a change that you do not have permission to, the following message appears in the Word 2007 status bar:

This change is prohibited because the selection is locked.

To return to the task pane and find the fragment that is allowed to change, do the following:

additional information

Note: This page has been translated automatically and may contain inaccuracies and grammatical errors. It is important for us that this article is useful to you. Was the information helpful? For convenience also (in English).

By default, a user with publisher permissions can edit any page or post. However, sometimes you want to restrict its authority and give it access to only certain pages.

In this tutorial, we'll show you how to restrict editors so that they can only edit a certain number of pages.

If you've never installed WordPress, discover et

But back to why we are here.

Why can't publishers edit all pages?

WordPress has robust features and systemflexible enoughmanagement of permissions. This allows you to add users by assigning them different and assigning to these roles other permission.

Among one of these custom roles, we find the role " Publisher". Users with user role Publisher You can edit all articles and pages on your site.

Many WordPress websites are structured in such a way that publishers are generally responsible for the content of blog posts. Pages are usually static pages that do not change often and serve to display information such as both.

If you don't want publishers to edit pages, or only edit certain pages, you will need to change the user's role. " Publisher On your website.

That said, let's take a look at how to only allow WordPress editors to edit specific pages.

1. How to edit the "Publisher" user role in WordPress

The first thing to do is install and activate the plugin " Advanced manager capabilities ».

After activating the plugin, you must visit the " Users> Capacities To configure plugin settings.

Then you need to select the user role Publisher In this district Select a role to view / edit"And click on the" Continue.

Plugin will load user role Publisher And view all permissions and permissions for the role.

Above, you will notice the options for editing and deleting posts and pages.

You must uncheck the " Edit others"AND" Delete others For pages. Eliminating these settings will prevent editors from editing or deleting pages created by other users.

Publishers will no longer be able to edit pages posted by other users.

We invite you to discover

To prevent publishers from editing pages, you must assign an admin user as the author of those pages.

You can do this by going to Pages> All Pages Click on the checkbox to select all pages. After that, you must select " Modifier In the dropdown menu Grouped actions", Then press the button" Apply».

This will load an edit window where you can edit the author of all selected pages. As an administrator, you can designate yourself as the author of all pages or another user with the administrator role.

Don't forget to hit the refresh button to save your changes.

If you have more than 20 pages, you may need to click the next button to load the next 20 pages and repeat the copyright change process.

Step 2. Allow editors to edit specific pages

Until now, you have prevented publishers from editing pages on your WordPress website. Optionally, you can allow editors to edit specific pages.

Just edit the page where you want the editor to make changes. Then click on the button Screen options In the upper right corner of the screen and make sure the checkbox next to the " author It is being checked.

Now scroll down to the author mark and select the user you want to assign the page issue to.

Also discover some of the WordPress themes and premium plugins

You can use other WordPress plugins to give a modern look and optimize the management of your blog or website.

We bring you several premium WordPress plugins to help you do just that.

1. Final form

Ultimate Form Builder is a premium WordPress plugin that lets you create unlimited responsive forms. It has a drag "n" drop constructor that can create any type of form (contact, survey, offer, information, etc.).

This plugin is easy to use. You can design, customize and create beautiful shapes, apply existing templates to existing design forms and use them on your website in no time.

You will also be able to receive form data by e-mail and store them in the database; which can be exported in CSV format for use through your site's control panel.

While it has almost the same features as the previous one, what stands out is the fact that it only supports two languages ​​at the moment, including English and Czech. But it’s not surprising that we will find support for many other languages ​​in a future iteration. In the meantime, feel free to check out his demo.

Download |