The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Theme Editor change (8 posts)

  1. Beel
    Posted 11 years ago #

    Just a quickie - I may have missed something herein, but what do I need to change to get the theme files to show up in the Editor instead of "Oops, no such file exists!..." :?

  2. khaled
    Posted 11 years ago #

    Isn't it the code in the header?
    Check out this page,... http://codex.wordpress.org/Theme_Development

  3. Ryan Boren
    WordPress Dev
    Posted 11 years ago #

    Does it do that for all themes and all files, or just particular ones? Are you using symbolic links?

  4. kharris
    Posted 11 years ago #

    I just installed Kubrick rc2 for WP 1.3 and got essentially the same deal.
    I've got WP1.3A4 (CVS) from 11/18/04 installed in public_html.
    Kubrick is installed in public_html/wp-content/themes/kubrick.
    If I select "kubrick" from Presentation->Themes, I get the text
    "The active theme is Kubrick. The template files are located in wp-content/themes/kubrick. The stylesheet files are located in wp-content/themes/kubrick."
    So far, so good.
    When I go to "Theme Editor", I can select either "Default" or "Kubrick". Doesn't matter which one I select, I stull get
    "Oops, no such file exists! Double check the name and try again, merci."
    Que c'est fuque?

  5. Ryan Boren
    WordPress Dev
    Posted 11 years ago #

    Do you have the same problem with the plugin editor?

  6. kharris
    Posted 11 years ago #

    Okay, here's the fix...at least on my installation: At line 29 of "wp-admin/theme-editor.php", I modified
    $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $allowed_files, $themes[$theme]['Template Files']);
    $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);
    I now get a frame with the contents of "wp-content/themes/kubrick/style.css" and a selectable list of the theme's files over to the right.

  7. Ryan Boren
    WordPress Dev
    Posted 11 years ago #

    Good catch. Fixed.

  8. flyingcat
    Posted 10 years ago #

    same problem to me.

Topic Closed

This topic has been closed to new replies.

About this Topic