Forums

Theme Editor won't work (8 posts)

  1. Hjorthen
    Member
    Posted 5 years ago #

    Be gentle with me, this is my first post here:-)

    I've just moved my blog from wp.com to my own domain, and are fiddling with the template to get it the way I want it to be. I just ran into a little problem here.

    The Theme Editor won't work, and this is the error message:

    You don't have permission to access /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.

    Now, I've tried changing the permissions so I don't think that's the problem?

    At this point somebody is getting ready to tell me that I can use Notepad and FTP to do the job. Yes, I know that, and that's the way I do it. The only problem is that when uploading through ftp the norwegian charachters æ-ø-å gets changed to questionmarks. Damn annoying!

    So the question is: What do I do to get the Theme Editor working, OR can somebody tell me how I get them stupid norwegian charachters to stick?

  2. DustyPaws
    Member
    Posted 5 years ago #

    Are you 100% sure that the permissions are set correctly?
    If not, try to chmod everything to 777 (more precisely 0777).

    For the character problem WITHIN a HTML-File I strongly recommend you to use HTML-Entities instead of plain text.

    So for example æ = æ
    and so on...

    Here's a full Entity listing

    Dusty :)

  3. Hjorthen
    Member
    Posted 5 years ago #

    Thank you for the Entity tips, I didn't know about that:-)

    Yes, I'm sure that the permissions are set correctly, and to make the confusion complete:

    I just discovered that I can use the Theme Editor to edit several of the theme-files. I haven't tried all of them, but it seems like it's only the sidebar.php bit that won't work in the editor. And the permissions ARE 777. I don't understand this at all, thank god for computers or else I wouldn't know what to do with my time!

  4. DustyPaws
    Member
    Posted 5 years ago #

    Oh well...stop thinking about it and use an editor+ftp ;)
    I know....lame joke...:p

    Anyways...I think you safe yourself a lot of grief.
    To avoid the questionmark problem, use entities.
    That should solve most of your problems. :)

    Dusty :)

  5. Hjorthen
    Member
    Posted 5 years ago #

    Yeah, I guess I will, but you now how it is when you first have started to itch...it's hard to keep from scratching.

    Thanks anyway:-)

  6. moshu
    Member
    Posted 5 years ago #

    I can use Notepad and FTP to do the job. Yes, I know that, and that's the way I do it. The only problem is that when uploading through ftp the norwegian charachters æ-ø-å gets changed to questionmarks.

    Actually that happens NOT because of FTP but because either your Notepad doesn't have utf-8 support (older editions) or you just don't use it! When saving the file at the bottom of the dialog window you have the option to chose the encoding...

  7. Hjorthen
    Member
    Posted 5 years ago #

    Yeah, when I switched to textpad instead of notepad it worked like a dream. Hey,I'm learning something new everyday with my new wordpressinstall:-)

  8. Hjorthen
    Member
    Posted 5 years ago #

    And by the way, if anybody is interested I discovered that it must have been something in the code in the sidebar.php file that stopped me from using the theme editor. When I removed the code below I suddenly was allowed to use the editor.

    <h2>Ord for dagen</h2>
    <ul class="files">
    <script language="JavaScript">

    // ==============================================
    // Copyright 2004 by CodeLifter.com
    // Free for all; but please leave in this header.
    // ==============================================

    var Quotation=new Array(1) // do not change this!

    // Set up the quotations to be shown, below.
    // To add more quotations, continue with the
    // pattern, adding to the array. Remember
    // to increment the Quotation[x] index!

    Quotation[0] = "I knew him when he was nothing and he hasn't changed a bit (Tom Waits).";
    Quotation[1] = "I'm so goddamn horny the crack of dawn better watch itself around me (Tom Waits).";
    Quotation[2] = "It was a hubba, hubba, ding dang, baby you are just everythang. A week later it's a hubba, hubba, ding dong, baby sure didn't last too long (Tom Waits).";
    Quotation[3] = "If I exorcise my devils, well my angels may leave too (Tom Waits).";

    ...and a whole lot of quotes before the code ends with this bit:

    // ======================================
    // Do not change anything below this line
    // ======================================
    var Q = Quotation.length;
    var whichQuotation=Math.round(Math.random()*(Q-1));
    function showQuotation(){document.write(Quotation[whichQuotation]);}
    showQuotation();
    </script>

    Something to do with the javascript maybe?

Topic Closed

This topic has been closed to new replies.

About this Topic