Skip to main content
4 votes
Accepted

Template not found 404

Craft will serve one of 3 types of 404 errors. When Dev Mode is enabled, you will get something like this, which shows the full stack trace leading up to the NotFoundHttpException: If this looks ...
Brandon Kelly's user avatar
3 votes

Template not found 404

If you've set devMode to false in your local environment and you still can't see your 404 template, go to your own user account in the CMS and uncheck "Show full exception views when Dev Mode is ...
Ryan's user avatar
  • 1,952
3 votes

Template not found 404

There's a long discussion of all of this in the Handling Errors Gracefully in Craft CMS article, if it helps.
andrew.welch's user avatar
  • 11.6k
2 votes

Template not found 404

Take a look in your general.php config file and see if you're overwriting the errorTemplatePrefix setting. It might look something like: 'errorTemplatePrefix' => "_errors/" So you might need to ...
Jamie Jenkins's user avatar
2 votes
Accepted

Wrong urls printed for small subset using getNext and getPrev

I believe I already answered this in the OP's other, similar question, but: You shouldn't pass a string value (i.e. 'posts') to getNext() and getPrev() – those methods expect either an ...
Mats Mikkel Rummelhoff's user avatar
2 votes

Blog template not displaying posts

If blog is a channel and site.com/blog/blog-post-name is correctly displayed but you can't access site.com/blog, that is probably because you are missing an index.html template inside the blog folder. ...
Cryptomothy's user avatar
2 votes

Blog template not displaying posts

If you've setup a channel, it does not include a "blog index" by default, for this you need to make it yourself by placing an index.twig file within the blog folder (If that is a directory in your ...
Helge Sverre's user avatar
2 votes

Template not found: $PRIMARY_SITE_URL/$PRIMARY_SITE_URL/blog/this-is-my-blog

You have to go to your Admin Dashboard > Settings > Sites > Your site and delete Base URL field, then save it and try to navigate.
Alexis Dalai Waldo Jiménez's user avatar
1 vote
Accepted

Creating a new SINGLES page presents a PAGE CAN'T BE FOUND or TEMPLATE CAN'T BE FOUND

This could be several things, but perhaps most likely is that Craft isn't able to find the new single's entry template. If you go into your new single's settings, in the "Site Settings" ...
Mats Mikkel Rummelhoff's user avatar
1 vote

vhost.conf and general understanding

Your virtual hosting config looks good to me. However, how are you running SSL? You've only shown the port 80 / non-SSL config and it shows a redirect to https so the DocumentRoot probably differs ...
RitterKnight's user avatar
  • 6,582
1 vote
Accepted

Error on functions in queue: "Session does not exist in a console request."

This is a gotcha with the recent move to emails being sent by the queue and not during the actual checkout process. Your problem is this line (and other lines you might have like it...): variant....
Jeremy Daalder's user avatar
1 vote

Craft admin twig templates broken somehow

Sorted YAY! In case this is helpful to anyone, I tried deleting and reinstalling via composer then replacing the config and .env files but no luck there so I downloaded the latest version and ...
Jana's user avatar
  • 21
1 vote

Can access admin page (now), but not any site pages...yii not found http execption

I am presuming Craft 3 because of composer, but you didn't say. To start with look in your craft templates folder. I would suggest that you simply don't have the template that Craft is looking for. ...
32423hjh32423's user avatar
1 vote
Accepted

How can I test my 500 error page works

Any chance you're out of disk space? That error shows that it can't create a file in /tmp which means either the permissions on /tmp are wrong, or potentially you're out of disk space. c.f.: https://...
andrew.welch's user avatar
  • 11.6k
1 vote

Custom 503 template

Check your phperrors.log and see if there are any errors with your 503 template. As you posted, if it encounters any errors in the template, it will just render the 503 error message instead. I was ...
Andrea Hall's user avatar
1 vote

Wrong urls printed for small subset using getNext and getPrev

Take a look at this: https://craftcms.com/docs/templating/paginate I use this all the time and it will work then.
Lennard's user avatar
  • 41
1 vote
Accepted

Suppress HttpException.404 for bad URLs

The good news in the upcoming Craft 3 this isn't an issue. 404's get logged to their own separate log files and won't clutter up the main Craft log files specifically for this reason. In Craft 2, I ...
Brad Bell's user avatar
  • 67.5k
1 vote

Why is Craft rendering a blank page instead of an error template?

Turns out it was HHVM causing the issue. Switching back to 'normal' PHP made the problem disappear.
Gaz's user avatar
  • 201
1 vote

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

This is something I discuss in the Handling Errors Gracefully in Craft CMS article, not just for 404s, but for a number of different status codes/errors. The actual templating code then ends up ...
andrew.welch's user avatar
  • 11.6k

Only top scored, non community-wiki answers of a minimum length are eligible