Can't access theme file editor from dashboard

As the title says, perhaps it's security related.... I just granted support access at echeckcasinos.ca to help resolve.

Best,

  • James Morris

    Hello Sebastien,

    I hope you are well today.

    There are a few likely causes for this.

    1. Your theme is hiding the native file editor. While this is not common, some premium themes do have this function built in. You could try switching to a default theme to see if the editor is restored.
    2. You may have a directive like the following in your wp-config.php that disables the editor. You will need to change this to false to re-enable the editor.
    define('DISALLOW_FILE_EDIT', true);
    3. I see you have a plugin installed that replaces the native editor. Perhaps this is the cause.
    Screenshot: https://goo.gl/KevlQ5

    Please let us know if this leads to a solution in your situation.

    Best regards,

    James Morris

  • Sebastien

    Thanks James -

    I am doing fine today, thanks.

    1- I don't think this is a premium theme, just a custom one I made with a designer, and I recall I had the ability to edit the theme before.

    2- I'm not sure how to access or edit the wp-config file

    3- I actually installed this plugin because I thought the file editor would appear, at least a new one perhaps, but it failed.

    I'm obviously not at Code Norris level yet :slight_smile:

    Do you want to take a look inside, might save us some time.

    Thanks,
    Sebastien

  • James Morris

    Hello Sebastien,

    Yes, I think a deeper look is in order.

    Please visit the Contact page and complete the form with the following information:

    Subject: "Attn: James Morris"

    In the Message box, please provide the following:

    - link back to this thread for reference
    - any other relevant urls

    - Admin login:
    Admin username
    Admin password
    Login url

    - Hosting Control Panel Login
    Admin username
    Admin password
    Login url

    - FTP credentials
    host
    username
    password
    (and port if required)

    Best regards,

    James Morris

  • Sebastien

    Thanks James,

    I submitted the help request with all the information you needed, however I noticed I used a different return email address than the one I am using for my paid wpmudev premium account. Is this going to be a problem. If so, I can submit again with my official wpmudev email address.

    Otherwise you also have access to the website through the WPMUDev plugin, and four days of access left. I'm sensing this may be a case of security work that disabled the file editor access. I recall I paid an engineer some years ago to implement some security features and this may have been one of them, so just a heads up on that.

    All the Best,
    Sebastien

  • James Morris

    Hello Sebastien,

    Sorry for the delay on this...

    I've been doing quite a bit of digging around on your site. You definitely do not have a standard installation. The person who set this up for you went to a great amount of work to prevent access to core WordPress files.

    I've checked all the standard ways to remove the Theme/Plugin editor from the WordPress Admin menu, including: Plugins, mu-plugins, theme directives and wp-config.php directives. Nowhere in those places is the editor removed. This leads me to believe this has been done in a custom way.

    Unfortunately, I'm unable to find where this has been disabled. :slight_frown:

    On the plus side:

    The native file editor really is bad to use. As a general rule, we always recommend to members that they do all their modifications via FTP/sFTP rather than in the editor. Reason for this is that, if you have a syntax error in your code, you can quickly bring your site down. Using FTP, it's much faster to bring you site back up.

    On the negative site:

    It's not clear what has or has not be modified in your site's files. :slight_frown:

    I will check with some other members on our team to see if anyone else has run into something like this before.

    Best regards,

    James Morris

  • James Morris

    Hello Sebastien,

    I've been trying to avoid this because I understand this is a production site, but after conferring with some of my colleagues, the only way to truly narrow down the cause of the problem in this situation is to run a full conflict test.

    Since you are running on your production site, you should create a staging site (exact copy except for domain name) and perform the steps outlined in the following article.

    https://premium.wpmudev.org/manuals/using-wpmu-dev/getting-support/

    We've seen instances where plugins can alter user capabilities. This may be a situation where one of your plugins has altered the user capabilities and the editor will re-appear once the errant plugin is deactivated.

    I'm looking forward to the results of your tests.

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.