izeta
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks not working correctlyThanks Viktor.
I had to enable mod_rewrite by uncommenting from httpd.conf (apache)Forum: Reviews
In reply to: [Slider by Nivo - Responsive WordPress Image Slider] Not responsiveWordpress v4.7.3
Forum: Plugins
In reply to: [WP Document Revisions] Documents entry not showing in admin menuI wrote some code as well if anybody needs it:
$manager = wp_roles(); $all_roles = $manager->roles; // Capabilities to be removed from roles // Copied from \wp-includes\capabilities.php - Line 1472: add_caps() $documents_caps = array( 'edit_documents', 'edit_others_documents', 'edit_private_documents', 'edit_published_documents', 'read_documents', 'read_document_revisions', 'read_private_documents', 'delete_documents', 'delete_others_documents', 'delete_private_documents', 'delete_published_documents', 'publish_documents', 'override_document_lock' ); // Remove the $documents_caps from all roles if it's in the array of capabilites and set to false (which means deny) foreach ( $all_roles as $name=>$role) { foreach ( $documents_caps as $doc_cap ) { if ( $role['capabilities'][$doc_cap] == false ) { $manager->remove_cap( $name, $doc_cap ); } } }
Forum: Plugins
In reply to: [WP Document Revisions] Documents entry not showing in admin menuI have WordPress v4.3.1, and I did a little debugging:
\wp-admin\edit.php
Line 33
if ( ! current_user_can( $post_type_object->cap->edit_posts ) )\wp-includes\capabilities.php
Line 810
get_role_caps()I found that deactivating the plugin and activating it, added some “deny” capabilities to a lot of roles. 12 deny capabilities to be exact. These deny don’t appear in the administrator though, but since I have more than one role, this affects me since the “deny” takes precedence. In order to fix it, you can go to your roles and uncheck deny on these capabilities:
'edit_documents', 'edit_others_documents', 'edit_private_documents', 'edit_published_documents', 'read_documents', 'read_document_revisions', 'read_private_documents', 'delete_documents', 'delete_others_documents', 'delete_private_documents', 'delete_published_documents', 'publish_documents', 'override_document_lock'
It seems to be a WP Document Revisions Plugin issue.
https://www.ads-software.com/support/topic/unable-to-findview-documents-menu-item-in-wordpress-admin-ui?replies=13
https://www.ads-software.com/support/topic/documents-entry-not-showing-in-admin-menu?replies=3#post-7703578I haven’t found a solution to this ye.
Forum: Plugins
In reply to: [WP Document Revisions] Documents entry not showing in admin menuThe same issue is posted here, but I doubt it has been resolved:
https://www.ads-software.com/support/topic/unable-to-findview-documents-menu-item-in-wordpress-admin-ui?replies=13I am looking for an answer as well.
It was brought to my attention that it might be a permissions issue since it shows “cheatin’ huh” when trying to access the downloads via URL directly. But I am an administrator and I don’t see anything that is disabled for my role.
I was just able to reproduce that in my other instance. Deactivate both plugins WP Document Revisions and WP Document Revisions Simple Downloads. Then activate WP Document Revisions first, then WP Document Revisions Simple Downloads thereafter.
You would see on the left sidebar that it’s missing the “downloads” and “add download” options.