Questions tagged [404-page]
The 404-page tag has no usage guidance.
23 questions
0
votes
0
answers
25
views
Why are my entry changes not appearing on my live website
When I move/add/edit my pages they are appearing on live preview, but when I search my website manually on a they are not there.
2
votes
1
answer
855
views
Template not found: $PRIMARY_SITE_URL/$PRIMARY_SITE_URL/blog/this-is-my-blog
Very new to craft CMS, recently just installed XAMPP with php 7 and craft 3 and followed the getting started tutorial from Craft CMS. Then when I try to preview or open the page created from the ...
0
votes
1
answer
207
views
404 Page for Multi-lingual Page
For my multi-lingual-Page (de + en) I've made a 404.html-File in my templates-Folder with a language-changer for html-content-output like
{% if craft.app.language == 'de-CH' %}<p>Hallo</p> ...
1
vote
1
answer
127
views
Craft CMS shows disabled entry page
Entry is disabled
https://monosnap.com/file/l8tgvr5Fxpw0OXPbpcwiI57JmZjL51
But despite that on its address I see its template loaded only without entry data.
I expected to see 'Page Not Found'.
2
votes
1
answer
356
views
How to route 404 errors for multi-site Craft?
Craft looks for /templates/404 by default. What do you do if you have multiple sites?
1
vote
1
answer
561
views
devMode false, Internal Server Error
Wanted to test 404 error page on our beta site. Set devMode to "false" in general.php. When I do this and try to view inner pages on the website, we receive an "internal server error". All inner pages ...
1
vote
1
answer
607
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
1
answer
2k
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
1
answer
1k
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 ...
3
votes
3
answers
9k
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
2
answers
591
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
1
answer
1k
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
1
answer
2k
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
1
answer
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
1
answer
1k
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
1
answer
1k
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 ...
4
votes
1
answer
441
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
1
answer
161
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
2
answers
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
0
answers
970
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
1
answer
351
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
2
answers
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 ...
11
votes
3
answers
5k
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 ...