Skip to main content

Questions tagged [404]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
2 answers
2k views

Element API plugin - Return message when no results are found

Per this code example, it's clear that the API is expecting to return results based on an existing element... 'transformer' => function(EntryModel $entry) { ... } And when the criteria finds ...
Lindsey D's user avatar
  • 24k
6 votes
3 answers
1k views

Multi-locale pages 404 on subdirectories

I'm developing and running a Craft site locally through Laravel Homestead and am having issues with pages 404'ing in a multi-locale setup. I've followed this guide closely: https://craftcms.com/docs/...
Tyler's user avatar
  • 61
5 votes
2 answers
2k views

Craft 3 404 and 503 pages in devMode

Is there any way to get Craft 3 to display 404.html and 503.html for the 404 and 503 pages while in devMode, as it did in Craft 2, rather than returning the entire Yii 2 error stack? Sometimes, we ...
Dustin C's user avatar
  • 379
4 votes
1 answer
627 views

Migrating Craft site to another server --- throws 404 for all pages but homepage

I've been asked to migrate a Craft site from one server to another. The new server setup is the same as the server I'm migrating from. I moved all the files in the webroot directory over to the new ...
jwaymire's user avatar
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?
Sandwich's user avatar
  • 636
3 votes
4 answers
8k views

Assets (images) return a 404 on the front-end

I have the following issue which I can't seem to wrap my head around. All images assets uploaded to Craft return a 404 not found on the front-end. Everything works fine in the admin CP though (...
sctgraham's user avatar
2 votes
3 answers
1k views

Unable to manage robots.txt in Craft

I would like my robots.txt file to be generated by Craft. Things that I have tried that don't work: a craft/templates/robots.txt template a craft/templates/robots.txt.twig template a route for robots....
Marion Newlevant's user avatar
2 votes
1 answer
456 views

Get 404 Error When Going to mydomain.com/news

Craft newbie here. I have been playing with craft now for a few weeks and built out a couple of pages. I am really liking it this CMS. The one small problem that I just noticed however, is when I ...
Vince M.'s user avatar
2 votes
1 answer
341 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?
4midori's user avatar
  • 656
2 votes
2 answers
2k views

Control Panel or admin dashboard not found

I have installed craftcms 3 on my localhost. It got installed and the following screen appeared: If I click on Control Panel I see the following screen
falcon's user avatar
  • 23
2 votes
1 answer
1k views

Craft 3 Controller giving 404

Updating a plugin to Craft 3 (also changed its name). I know this is probably something very simple, like capitalization, but can anyone point out what's wrong? Firefox console shows a 404 for http://...
kr37's user avatar
  • 1,355
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 ...
Janine's user avatar
  • 241
2 votes
1 answer
980 views

Changing the default admin path

I am trying to reset the default path to the dashboard from admin to something else. I have this in config/general.php: return array( 'cpTrigger' => 'new-url', 'omitScriptNameInUrls' => ...
Anna's user avatar
  • 127
2 votes
1 answer
1k views

Controller Action 404

Ok once again I'm having an issue with a plugin controller. It was working once upon a time but stopped sometime in the past year. I have stripped the plugin down to bare, so there is no reason it ...
Shane Hudson's user avatar
2 votes
1 answer
408 views

Can I disable logging 404 errors in my craft.log file?

I want to get a better understanding of some issues in production surrounding timeouts but as its a high traffic site the craft logs get replaced about every 15 minutes due to the amount of 404's that ...
Seán O'Grady's user avatar
2 votes
1 answer
135 views

Security test generated large compiled_templates directory, site outage

We just moved an installation of one of our sites to a new server. Previously, it was on a machine where the versions of Ubuntu / PHP prevented us from upgrading the Craft core version from 2.3.x to 2....
TJ Nicolaides's user avatar
2 votes
1 answer
2k views

Redirecting "if entry is not defined" returns 404 instead

All the documentation, and answers here say this should work... But it returns the 404 instead of redirecting and I can't figure out why? Section: Structure = help Entry URL Format: Top-Level ...
Shane Robinson's user avatar
2 votes
1 answer
279 views

"Single" Entry page gives 404, even though it's enabled

I added a new Single Entry on my site and populated it with content. When I try to access it at the URL I set, it only returns a 404 error, as if the page were disabled. It's not disabled, though. I ...
GDP2's user avatar
  • 141
2 votes
1 answer
203 views

Some (but not all) controller action routes return 404 on staging server

I've created a module for a project that has several actions, all of which are called through AJAX. Each is a post request that sends over any required params plus the CSRF token using the method ...
slander's user avatar
  • 73
2 votes
2 answers
1k views

Uploaded image not appearing

I'm having an issue where a user is uploading images but they're not showing up correctly. The photo is listed in /admin/assets and shows the correct file size, kind, dimensions, etc but I'm getting a ...
Enaud's user avatar
  • 29
2 votes
1 answer
810 views

favicon.ico throwing 404 TemplateLoader exception

This is my first Craft site, I inherited it. I've manually set a link tag to my favicon in my templates/_layouts/_header.twig file: Everything else in that /dist/img folder renders fine - .png, .jpg, ...
Will Langley's user avatar
2 votes
1 answer
262 views

Installing happylager demo site on own server (not locally)

I would like to install the happylager demo site on my server instead of installing it locally, but all i get is 404 pages when i visit http://adamridovics.com/happylager.dev/admin Is this possible at ...
moklek's user avatar
  • 41
2 votes
1 answer
692 views

I moved my craft site to a subdirectory, and things are broken now, help!

I installed craftcms on a regular .com root folder, and everything worked fine. I can go to .com/news and it will go to my /templates/news.html file, etc. Now my client wants their site on a ...
user3259420's user avatar
2 votes
1 answer
114 views

404 when clicking on the Disqus embed urls

I've just noticed on a site that the Disqus comment embed is suggesting other articles but they're adding a token to the end of the URL, for example: http://australia.thegospelcoalition.org/article/...
Steven Grant's user avatar
  • 1,855
2 votes
1 answer
144 views

Strange 404 Errors

A client is suddenly getting 404 Errors on new entries. Old entries display correctly. New entries display correctly when the site is put into Dev Mode. The pages preview correctly if any content is ...
Document Services's user avatar
1 vote
4 answers
9k views

Template not found 404

Having a strange issue - devMode is set to false, if I go to /404, I get the custom 404 page, which is great. If I go to /something1234567890 (which is definitely not an entry's URL) I get the ...
Mike F's user avatar
  • 185
1 vote
3 answers
7k views

Can't access admin panel

It's the first time I'm using Wamp for local hosting my Craft website. I've changed my Windows and Wamp apache host file for accessing my domainname instead of localhost. (ronvanderwerf.loc instead of ...
Mr. Sam's user avatar
  • 287
1 vote
1 answer
558 views

Basic 404 setup not working

I look at past Q & A about this, but am still perplexed. Not logged in to CP or frontend I have a simple template called 404.twig which resides in the templates folder I can access the template ...
4midori's user avatar
  • 656
1 vote
2 answers
438 views

404 error on Craft homepage

I'm having some trouble on a fresh install of Craft. I've uploaded all the files to my server and moved index.php (etc) out of the public folder and into the root directory. I've also changed index....
Chrish's user avatar
  • 41
1 vote
2 answers
94 views

Plugin does not exist on 404 page?

Before I go into detail and share my error logs and plugin details, I'll ask the simple question first: When testing my 404 page, no plugin functionality works. Is this intentional? Just for ...
Mark Notton's user avatar
  • 2,337
1 vote
1 answer
136 views

Can't Update CraftCMS

I'm currently using Craft CMS 3.7.9. When I go into Utilities -> Updates (which shows a 5 so there must be updates), a red message appears at the top that says "A server error has occurred&...
Jake1293's user avatar
  • 159
1 vote
1 answer
270 views

See 404 error cause by some weird URI in index.php

I have Craft 2.6.2986 in an AWS EC2 environment. My site looks fine, but in my craft.log, I see a lot of 404 errors. We don't have phpmyadmin2011 or phpmyadmin2012 page. Does anyone know how they get ...
Angela Chan's user avatar
1 vote
1 answer
634 views

{% Exit 404 %} doesn't work right with routes

The {% exit 404 %} doesn't work right on routed templates. It's fine on pages that aren't affected by routes. Mysite.com/asdfasdf shows me the proper 404 page. I've got some routes configured like ...
SamC's user avatar
  • 482
1 vote
1 answer
2k views

Craft CMS 3 admin panel returns 404 with SSL

I'm using MAMP Pro for local development and was gong to set up my site with SSL this time around. I got a self-signed cert for local dev and I can go to my development site over https:// without any ...
Stuart McCoy's user avatar
1 vote
2 answers
295 views

404 error if folder in public_html has same name as folder in craft/templates

I am currently transfering a live website to Craft CMS. I am trying to keep all URLs of pages and images exactly the same as the live version, because of all the pages and images cached in Google. ...
remcomu19's user avatar
1 vote
1 answer
792 views

Ajax call to action 404

I've a trigger on my frontend that requires an action. I've started from the businessLogic template but I'm getting a 404 and can't find why. My function public function actionExampleAjax() { ...
Alessio Breviglieri's user avatar
1 vote
2 answers
145 views

Can't get rid of 404 error

I set up my first Craft site on my shared hosting and I can't get it to work for the life of me. Whatever I do, I run into a 404 error. .htaccess is there and named correctly, craft folder is one ...
koni666's user avatar
  • 11
1 vote
1 answer
70 views

Environmental variable coming back as literal braces

I have my general config file set up as follows: return array( 'localhost' => array( 'devMode' => true, 'environmentVariables' => array( 'baseUrl' => 'http://localhost:8888/path/...
strandall's user avatar
  • 188
1 vote
1 answer
288 views

404 in HTTP Header on working site

I have a Craft site which seems to function properly but I see a 404 in the header http status code. I’ve located the following in the error logs: 2016/07/28 15:22:30 [error] [exception.Craft\...
Alex Mejias's user avatar
1 vote
2 answers
1k views

404 when viewing assets

I'm having some trouble getting started with Craft. I'm attempting to upload some image assets for the first time. I've set up an asset source. I've tried using both a relative and an absolute path ...
jimchristie's user avatar
1 vote
1 answer
191 views

Successful login with 'requireLogin' redirects to 404.shtml

I have recently migrated an intranet to its production environment, and the requireLogin is misbehaving: I'd go to intranet.example.com/ Log in with my details Craft will redirect me to intranet....
Alex Lillo's user avatar
1 vote
1 answer
233 views

Redirecting certain 404s to a page, handling all others as normal

I'm having trouble setting things up to redirect some old news articles a certain way, while still serving existing articles: If a page exists at /news/my-article then it should be served as normal....
Phil Gyford's user avatar
1 vote
1 answer
660 views

Template fails to load intermittently

I have a template that fails to load intermittently, resulting in a 404. I haven't been able to debug it since 99% of the time the page loads perfectly. 2015/07/18 12:18:57 [error] [exception.Craft\...
Incraigulous's user avatar
1 vote
2 answers
2k views

How to use my site's 404 page?

I am using Craft only for the blog section of my site. The rest is HTML. How do I make my site's 404 page come up for errors in the Craft-blog section? Do I use the errorTemplatePrefix? Where does ...
Steve VH's user avatar
1 vote
1 answer
1k views

404 page redirect to homepage

Is it possible to set up a 404 page, and after x amount of time redirecting to the homepage? {% extends "_layout/_layout" %} {% set metaTitle = "404" %} {% set bodyId = "404" %} {% set ...
Johannes Lamers's user avatar
1 vote
1 answer
160 views

Why is my custom route registering as a 404?

The context I have a URL schema that is either doing something new, via a custom Route (no entry set): bookings/new/* …or reviewing an existing entry: bookings/{slug} My custom route is working fine ...
Jonathan Schofield's user avatar
1 vote
1 answer
815 views

.htaccess file not rewriting url

Hi I'm having major problems trying to get my .htaccess file to rewriteRule or redirect one url to another. I've used .htaccess before on other cms installs and always work but for the life of me I ...
cannon303's user avatar
  • 309
1 vote
1 answer
545 views

Craft 2 -> 3 Update /admin 404

I'm attempting to update a craft 2 site to craft 3. Following these instructions, I used composer to install Craft: https://docs.craftcms.com/v3/upgrade.html#if-you-want-your-directory-structure-to-...
Mark's user avatar
  • 741
1 vote
1 answer
84 views

TemplatesController error related to webfont!

I'm getting a very strange 404 error on my live site: Craft\HttpException: template = fonts/BlissBold-webfont.ttf in /path/to/mydomain/craft/app/controllers/TemplatesController.php:72 I've ...
dorothy Dorothy's user avatar
1 vote
1 answer
108 views

Deleting oldest 404 redirects task stalling

I have a site which has 100's of pending "Deleting oldest 404 redirects" tasks and they keep stalling so the list isn't clearing. The client has added lots of custom rules to the .htaccess which I ...
Readio's user avatar
  • 131