Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • M4TTHEW 21 posts 61 karma points
    Oct 14, 2009 @ 18:37
    M4TTHEW
    0

    argh, illegal characters in path

    i named a new doctype/template with a "?" in the name and now i have the "illegal characters in path" error and can't edit any doctypes or see any templates. how do i fix this?

    there is an unsolved ticket here: http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=22243

    it says:Fix: add "Charset=utf8" to connection string.

    but, i do not understand that, any idea how to fix this?

     

  • Rich Green 2246 posts 4008 karma points
    Oct 14, 2009 @ 18:53
    Rich Green
    0

    I assume it means add "Charset=utf8" to your connection string in your web.config file (which will be in the root of your Umbraco/installation  directory).

    Something like this:

    <add key="umbracoDbDSN" value="server=mySQL;database=Umbraco;user id=user;password=pass;Charset=utf8;" />

    Hope that helps

    Rich

  • M4TTHEW 21 posts 61 karma points
    Oct 14, 2009 @ 19:06
    M4TTHEW
    0

    thanks, that didn't fix it though :(

    in my web.config at the very top it already has:

    <?xml version="1.0" encoding="UTF-8"?>

    when i try to add it to the string you show in your example, it returns a new error saying:

    Keyword not supported 'charset'

    so, what else can i do? is there a way to reinstall umbraco without losing my site? do my ".masterpage" files include my doctypes and templates?

  • Rich Green 2246 posts 4008 karma points
    Oct 14, 2009 @ 19:19
    Rich Green
    0

    What database are you using? (MySQL / SQL Server ?)

  • M4TTHEW 21 posts 61 karma points
    Oct 14, 2009 @ 19:22
    M4TTHEW
    0

    SQL server express, i found the entry in the database, trying to remove it now. it's in the Templates table.

  • Rich Green 2246 posts 4008 karma points
    Oct 14, 2009 @ 19:24
    Rich Green
    1

    OK, that fix was for MySQL I believe.

    Take a back up of your database before you change anything!

  • M4TTHEW 21 posts 61 karma points
    Oct 14, 2009 @ 19:24
    M4TTHEW
    0

    oh my god, that was nerve racking, it's fixed now, thanks for the responses RIch!

  • M4TTHEW 21 posts 61 karma points
    Oct 14, 2009 @ 19:27
    M4TTHEW
    0

    so, the moral of the story is, if you get an "illegal characters in path" error you may need to go into your database and physically remove the character.

Please Sign in or register to post replies

Write your reply to:

Draft