• I have upgraded to WP 2.7 from 2.5 and when I try to access the theme editor I get “Sorry, that file cannot be edited.”

    All my directories are chmod 755 and all files chmod 644.

    Also tried chmoding all files to 755, but that did not help either

    I tried everything but I cannot find out what the problem is. Any help would be much appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter jossi

    (@jossi)

    It seems that the problem is related to a plugin.

    I did some traces and when I try to access the theme editor, WP calls the function validate_file_to_edit for this file:

    /data/www/mysite/htdocs/wp-content/plugins/ym/ym.php/

    validate_file_to_edit calls another function called validate_file (in functions.php) which returns 3. According to the documentation, return value of ‘3’ means that the file is not in the allowed files list.

    I have contacted the plugin owner, but would like to better understand what is the “allowed files list”.

Viewing 1 replies (of 1 total)
  • The topic ‘“Sorry, that file cannot be edited.”’ is closed to new replies.