View Single Post
Old 05-27-2010, 01:57 AM  
NinjaSteve
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2003
Posts: 11,089
Wordpress Fix: Sorry that file cannot be edited

I had a problem with a few blogs giving me this error when I try to edit themes from within the wordpress theme editor
"Sorry, that file cannot be edited"

Anyway, here's the fix I found.
http://wordpress.org/support/topic/344250#post-1507273
Quote:
edited "theme-editor.php" at line ~173 and ~191
this line part of generating theme files list and adding bad link to each. So i add string with part of url was missing.
Code:
<li><a href="theme-editor.php?file=<?php echo "/xxx/xxx/xxx/wp-content".$template_file; ?>&theme=<?php echo urlencode($theme) ?>&dir=theme"><?php echo $filedesc ?></a></li>
for finding what URL part you missing, just use "Update" button in editor, then look at adress bar and diff with theme file link in sidebar.
__________________
...
NinjaSteve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote