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.

Unable to select 404 Page in Global Template Preferences

July 06, 2011 4:14pm

Subscribe [2]
  • #1 / Jul 06, 2011 4:14pm

    charlie spider

    125 posts

    Just as the title says

    I go to Design > Template > Global Preferences

    and when I select my 404 template (desktop/404) from the 404 Page drop-down then hit submit, it simply reverts back to an empty drop-down box.

    typing junk into the address bar simply results in a blank page
    but if I go to http://www.domain.com/desktop/404 then I can see my 404 page

    this is my first EE site so I am a little unsure about everything,

    but my understanding is that if I don’t Enable Strict URLs, then I can trigger my 404 page from any template group - which doesn’t really matter at this point because I only have one template group.

    So how come http://www.domain.com/kjsdhfkjsd or www.domain.com/benefits/sdhfjsdhf results in a blank age instead of redirecting to http://www.domain.com/desktop/404

    Any help is greatly appreciated.

  • #2 / Jul 07, 2011 12:10am

    charlie spider

    125 posts

    SOLVED

    err…  KINDA solved

    Went through every single page in the control panel looking for another setting that might be affecting the 404 page and under:

    Admin >> System Administration >> Config File Editor

    I found a field called: $config[‘site_404’] which had the value “404/index” which was not set by me.

    Changing this to the path for my 404 page got things working properly, and as well, now if I go to:

    Design >> Templates >> Global Preferences

    It actually displays the correct value in the 404 Page drop-down box.

    I’m thinking maybe my config file isn’t writable ???

    Thoughts anyone?

  • #3 / Jul 07, 2011 7:36am

    John Henry Donovan

    12339 posts

    Hi Brent ,

    If it was on your config file then it was overriding any change you tried to make in the control panel.
    So you can do as you’ve done and change the option in the config file or remove it there and change it in the control panel. Note that your config file needs permission of 666.

    Hope that clears it up for you. Feel free to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases