WordPress.org

Support

Support » Plugins and Hacks » Contact Form by BestWebSoft » [Resolved] [plugin: Contact Form] not compatible with DISALLOW_FILE_EDIT

[Resolved] [plugin: Contact Form] not compatible with DISALLOW_FILE_EDIT

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author bestwebsoft

    @bestwebsoft

    Hi rwatuny,

    Please, follow the instructions:
    1) make sure that you have admin rights, for the page is displayed only for administrators;
    2) If you use a multisite: if you activate the plugin as network, the access to the settings page is permitted from every subsite and is not permitted from the multisite admin panel.
    3) It is possible that you have a peculiar plugin installed, that affects the user access rights. Please try to deactivate the rest of the plugins one by one and check if the problem remains the same.

    If it doesn’t help, please tell us what version of WP you are using and send us all the changes you made in the config file.

    Sincerely,
    BestWebSoft Support Team

    rwatuny

    @rwatuny

    Hello,

    Thank you for your reply.

    1. I do have admin rights.
    2. WordPress is not set as multisite.
    3. I deactivated all plugins except Contact Form and the problem remains.

    I am using the latest WordPress version (3.7.1).

    The only change I made to the config file is to insert this line:
    define('DISALLOW_FILE_EDIT', true);

    I did a quick search in your code and I found that you use the ‘edit_themes’ capability as a condition for the add_menu_page and the add_submenu_page in the cntctfrm_admin_menu function. This capability is set to ‘do_not_allow’ by the DISALLOW_FILE_EDIT setting.
    That is why the plugin is hidden and unaccessible.

    May I suggest that you use another capability, for exemple, ‘manage_options’.

    Thank you.

    Plugin Author bestwebsoft

    @bestwebsoft

    Hi again,

    We agree with you. We will change it for’manage_options’ in the next update.

    Sincerely,
    BestWebSoft Support Team

    Thank you very much.

    Have a nice day.

    Hello,

    I have use this but after that edit option of every plugin has removed. So How can i remove only one plugin edit option.

    To my knowledge, there is no simple way to do this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [plugin: Contact Form] not compatible with DISALLOW_FILE_EDIT’ is closed to new replies.
Skip to toolbar