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
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
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...
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 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.