Results 1 to 4 of 4

Thread: No active page for page ID "page-not-found"

  1. #1
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default No active page for page ID "page-not-found"

    I constantly get these in my installation. What can be the solution. I have the root setup with a fallback language of "en" and I obviously have a page called "page-not-found", so why is the syslog generating these message when the language is empty.

    No active page for page ID "page-not-found", host "adventurebookings.co.za" and languages "" (http://www.adventurebookings.co.za/page-not-found)

    Anyone, any ideas?

    UPDATE: This also happens if I go to the page-not-found page directly with my language set to "en" so it must be a Contao thing.

    Does the .htaccess setup to point 404 Errordocuments to this page make this screw up??

    Code:
    ErrorDocument 404 page-not-found

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default Re: No active page for page ID "page-not-found"

    Hi thyon,

    have you already tried to map any error codes directly to index.php?
    Code:
    ErrorDocument 403 /index.php
    ErrorDocument 404 /index.php
    Contao Community Moderator
    → Support options

  3. #3
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: No active page for page ID "page-not-found"

    Can you walk through the code, go backwards from the point the message is logged. That woul normaly be my method to figure out what the logic behind the problem is. You must run into an if statement sooner or later that clears this up...

  4. #4
    User
    Join Date
    07-20-09.
    Location
    Middlesbrough - United Kingdom
    Posts
    95

    Default Re: No active page for page ID "page-not-found"

    Hey,

    I have been having similar issues.

    It seems to have been fixed by adding
    Code:
    IndexIgnore *
    to the htaccess file, this will stop bots, spiders and people from accessing the tl_files folder and any other files on the server. I also removed any CSS files which are not being used. The website I had the error on was a website with multiple themes and therefore multiple CSS files which were not being used.

    Hope this helps,
    Cheers,
    Ste.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •