Questions tagged [404-page]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
204 views

404 page title SEOmatic

404 page doesn't have a title. It shows "| Sitename" in my case. I'm using Craft 3 with the SEOmatic plugin and would like to set the title in the 404 template. {% set seomaticMeta = seomaticMeta | ...
2
votes
1answer
705 views

How to show homepage for 404 errors

Instead of a standard 404 error page, I want to send 404s to the homepage and can't seem to get this working right. If I add {% redirect '/' %} in my 404.html template, that works except it gives a ...
2
votes
1answer
432 views

404 error page not loading

I found this question "404 Page Not Showing" asked 3 years ago that the person who asked figured it out but didn't really expand on how they did. I have basically the same issue, craft doesn't load ...
2
votes
2answers
3k views

Craft not loading custom 404 template for errors

Whenever I hit a non-existent page on a dev site, I only get Craft's native 404 page, not the one I have at /craft/templates/404.html. The site has no routes. Any ideas why this might be?
0
votes
2answers
379 views

404 problems, staging only

I've got a bizarre issue that is only happening on staging. Locally all urls work correctly. on staging http://domain.com/archives and http://domain.com/photography/entry_slug both return a 404 page ...
1
vote
1answer
650 views

How can I test if a request returns a 404?

In my 404 template I am extending a layout template. Inside that layout template I want to hide a section use an {% if craft.request... == 404 %} test. Any ideas on how I can accomplish this?
3
votes
1answer
1k views

Controller action works but still gives 404

I'm writing my first plugin and I'm slowly getting there, but I hit on a problem: I have a controller class in which I have a function that sets a cookie. I call on this function from within a ...
1
vote
1answer
1k views

404.html template causing twig_error_syntax

I created a generic 404.html template to replace the default Craft page. I'm getting the following error when forcing a 404 in browser. Any idea what the issue is? Twig_Error_Syntax The filter "...
2
votes
1answer
932 views

Allowing a new locale to fallback on content from a default locale?

I am setting up a localized site that defaults to English (en_us). Alternate locales will have URLs such as example.com/fr I would like to ensure that users browsing the French website don't ...
3
votes
1answer
826 views

Limit entry pagination to 6 pages?

I've been given a site and asked to prevent visitors from seeing the news archive beyond page 6. The navigation has already been done, but if the user manually enters example.com/news/p7 they'll see ...
3
votes
1answer
382 views

Contact Form plugin - Error loading 404 Pages

So I have a contact form in my layout (just using the contact form plugin from the Craft guys) and on 404 pages I'm getting the following: Impossible to invoke a method ("getErrors") on a string ...
0
votes
1answer
159 views

6 month old site is suddenly throwing 404s

http://denizen.tv/work/2011-kca-image-campaign http://denizen.tv has been up and running well since June, but it's suddenly throwing 404s. It looks like the same /index.php/ problem I was recently ...
1
vote
2answers
1k views

Can't remove index.php without getting a 404, .htaccess redirect not working, why?

So this is not my first craft build, and basically, it's identical to my last setup on the craft front, I can't see anything wrong, but I can't remove index.php without causing a 404. I've tried the ....
2
votes
0answers
891 views

404 Page Not Showing

This probably has a very simple answer but cannot seem to get it working. I have a 404.html template in craft/templates and it works fine within a section (such as https://shanehudson.net/articles/...
1
vote
1answer
341 views

Channel URL Format leads to 404s for individual entries

I've broken my news channel but I don't know how I did it, or consequently to fix it. If one clicks on 'I just installed Craft' or 'Continue reading', it will take you to the URL I specified in the ...
5
votes
2answers
2k views

Can I define a path to my 404 template?

Wanting to move static/single templates in to a directory pages and thus, the path to my 404 template is now pages/404.html. I don't necessarily need dynamic content as asked here. Is there a config ...
10
votes
3answers
4k views

What's the best way to set up a content-manageable 404 page?

I'd like to make my 404 page editable through Craft, but when I create a single for it, a URI is required. Is there a way to make a single with no URI, or is the best route to setup globals for ...