ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Pages Module, EE 1.6.6, 'Invalid Page URI'

December 02, 2008 4:58pm

Subscribe [2]
  • #1 / Dec 02, 2008 4:58pm

    bkuberek

    124 posts

    I am getting an error:

    “Invalid Page URI”

    when trying to save an entry. This is what I have so far:

    When I first create an entry, I go to the “Pages” tab and enter

    Pages URI: credits
    Template: main/page

    it saves fine. However when I reopen the entry for editing, the pages URI now have slashes

    Pages URI: /credits/

    This is causing the error when I try to save.

  • #2 / Dec 02, 2008 5:08pm

    bkuberek

    124 posts

    This is how I resolved it:


    go to
    Admin › System Preferences › General Configuration


    Before:
    URL to the root directory of your site: /

    After:
    URL to the root directory of your site: http://domain.com/


    Why does it cause the problem?

  • #3 / Dec 02, 2008 5:16pm

    Ingmar

    29245 posts

    I think it’s supposed to be a full URL, not a path. I have a full URL http://example.com/ in there as well.

  • #4 / Dec 02, 2008 5:54pm

    bkuberek

    124 posts

    everything works fine if I have a relative path like “/” so I never noticed it before. It was just now that as I decided to use the pages module that I got an error.

    I don’t always use a relative path. There are circumstances in which I do need a relative path. For example, this particular site needs to be accessed from 2 different domains, so having a relative path allows me to do that. Otherwise, links will redirect to one of the domains.

  • #5 / Dec 02, 2008 9:58pm

    Greg Aker

    6022 posts

    bkuberek:

    The pages module is intended to be used with the proper full url to the site in the general config.  Unintended consequences (such as this) may arise by not using it.

    link

  • #6 / Dec 03, 2008 1:28am

    bkuberek

    124 posts

    ok. I agree that there must be a site url for many things to work. I have an idea and would love to hear your opinion.

    Instead of setting the field to a URL such http://domain.com/

    Have it accept a tag such as {http_host}.

    The preferences class will then translate this to the current url.

    This way we have the option to enter a desired URL or let the system figure that out.

  • #7 / Dec 03, 2008 2:32am

    Ingmar

    29245 posts

    bkuberek, please feel free to make the appropriate feature request. Since all Technical Support issues seem to have been resolved for now, I am going to mark this thread as “Resolved”. Please feel free to start a new one should you need further assistance.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases