• TSI

    (@tsi)


    Hello,

    I am of course not a programmer yet I am familiar enough with HTML. Having been a user of WordPress for some time now (it rocks), I am stumped on why I cannot edit the Theme’s sidebar.php with the Theme Editor.

    I am using the latest WP version and I am using WordPress Default 1.6 by Michael Heilemann. In other words, nothing but the header ‘logo picture’ has been modified to explain the issue.

    Just to see if the Theme Editor would work (in general) I opened the Theme Editor, clicked on the sidebar.php page on the right and tried to “Uncomment” the default “About the Author”.

    Example:

    <!– Author information is disabled per default. Uncomment and fill in your details if you want to use it.

    • <h2>Author</h2>
      <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
    • –>
      I removed the <!– and the –> ONLY

      It gives me the following (and very brief) error:

      PHP Warning: fopen (C:\Inetpub\AB\blog/wp-content/themes/default/sidebar.php) [function fopen]: failed to open stream: Permission denied in C:\Inetpub\AB\blog\wp-admin\theme-editor.php on line 58 PHP Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\AB\blog\wp-admin\theme-editor.php on line 59 PHP Warning: fclose(): supplied argument is not a valid resource stream in C:\Inetpub\AB\blog\wp-admin\theme-editor.php on line 60

      Then it redirects and goes back to the Theme Editor, shows me the sidebar.php and back to the default of

      <!– Author information is disabled per default. Uncomment and fill in your details if you want to use it.

    • <h2>Author</h2>
      <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
    • –>

      I verified my server permissions and I supposedly have FULL permissions over WP and the server (i.e. write, etc)

      Any ideas why the Theme Editor is electing to be defiant?

      I know I can download the sidebar.php file, open it in notepad, edit the page, save and upload the new sidebar.php in the same place, overwriting what was there .. but I would like to figure out why I cannot use the Theme Editor.

      Thank you all in advance for any feedback and help.

      Regards,

      A. Turner

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    Have you managed to figure out a solution for this yet? I’ve been having the sameproblem of not being able to edit the sidebar in the Default theme, although I can edit all the files. I get the following error:

    Forbidden

    You don’t have permission to access /test/wp-admin/theme-editor.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Does anyone know of a solution?

    The file permissions for the theme are probably not set to be edited.

    Changing_File_Permissions

    Hope this helps,
    -drmike

    Thanks drmike but I have already changed the permissions on all the theme files to 777. I can edit all the files apart from the sidebar. I’m really stumped.

    Had the same issue. ModSecurity was not allowing the post. Our fix was to disable mod_security on the theme-editor.php file by creating an .htaccess file with the below and placing it in the /wp-admin/ folder.

    <IfModule mod_security.c>
    <Files theme-editor.php>
    SecFilterInheritance Off
    </Files>
    </IfModule>

    This is better than disabling mod_security entirely on the domain or server.

    Hey! That worked great. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Theme Editor not allowing modify of Theme Files’ is closed to new replies.