• Resolved Opto-mystic

    (@opto-mystic)


    Theme: TwentyTen
    Unit: wp-admin/theme-editor.php
    Testing that everything works – WP opens nicely on my website with all default settings
    1 Uploaded custom header image – OK
    2 Changed background colour: #eeeeff – OK
    3 Tested each Template with a safe edit (adding a . in a remark area)then click ‘Update File’ – All OK (File edited successfully)
    4 Tested edits on Each CSS sheet – all OK except style.css

    When editing style.css very carefully ensuring the edit is within the bounds of a remark (*/ .... /*), on pressing ‘Update File’ screen changes to an error page stating: Requested theme does not exist. I cannot get back to the editor unless I reload the wp-admin/theme-editor.php page again… When I check the style.css, the edit is present. So it is being saved but not returning the edited page to the screen.

    Now here is the strange behaviour. If I do an edit IE add a character to the document & update file, I get the error as described above. However, if I just ‘Update File’ without any characters being added the page seems to refresh and return a ‘File edited successfully’ report.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Opto-mystic

    (@opto-mystic)

    I Think I have found the problem…

    In trying to be clever by being careful, I was adding some periods (.) in the style.css header:

    /*
    Theme Name: Twenty Ten...
    ~~~~~~~~~~ etc */

    I found a posting that gave a clue words to the effect “All style sheets need a heading”. I was adding my ‘safe’ test edit in the heading immediately after the theme title. That obviously confused the WP operation somewhere within the bowels of the coding!

    By placing the edit in a different set of remark tags, the edit was accepted.

    lesson #99: Don’t mess with the header of any of the style sheets, especially the style.css!

    Very good advice. ??

    In effect, you were changing the name of the theme from Twenty Ten to Twenty Ten<strong>...</strong> – which, from a coding perspective, is a completely different name. As a result, WP could no longer find the style.css for Twenty Ten and classed the entire theme as broken.

    Thread Starter Opto-mystic

    (@opto-mystic)

    Absolutely agreed. However I always understood (Until now) that anything within remark tokens was completely ignored and not interpreted by the coding! (I have writen programmes in VB and in 6502 & 8080 assembler hence my misunderstanding – this is my first foray into PHP & I must read up on the rules and syntax!)

    (The html ‘strong’ tokens were not in my edit in the style.css, they were in my post in an attempt to emphasise where I was putting the periods… ?? )

    I was leaving the thread open for a little while just incase I needed to ask more on the subject, however I’m happy with the ‘resolved’

    I always understood (Until now) that anything within remark tokens was completely ignored and not interpreted by the coding!

    Not so in WP. The theme title, version and description are all parsed and used by the theme handling functions.

    Thread Starter Opto-mystic

    (@opto-mystic)

    Thanks Esmi, much obliged for the info

    No problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘** Requested theme does not exist – TwentyTen’ is closed to new replies.