Recently I tried to set up a custom 404 page using this guide:
https://thepugautomatic.com/2014/08/404-with-rails-4/
It ended up not working, so I reverted all the changes, recreated the default 404 page in the /public folder, and customised it from there, but it will now only load when visiting /404 directly, and won't display when going to another unlisted route (i.e. localhost:3000/foo). Instead I get a blank white page with "Not Found" displayed in the top left-hand corner. I thought this may have been coming from /node_modules/builtin-status-codes/browser.js where it has a list of errors including "404": "Not Found".
I've been through the code multiple times with a fine-toothed comb but I cannot figure out why it won't work in it's default settings anymore. Any help is greatly appreciated!
Related
There is something very weird happening on a website I'm working with. When I do a research on Google about a product of the website, the return result is a page that doesn't exist but it doesn't return a 404 error.
The "page.html" does exist, but it is not on the path that Google found, the URL is somehow being created out of nowhere, and since it is inside Joomla, it is causing some visual errors.
I've done some research, and a-lot of people have this kind of error, but normally the page is a 404 or a duplicated version. In my case, the page opens normally, the only thing is that the "page.html" is somehow being put on a path that is not correct. I've already checked inside the folders and there is not a duplicated page inside them.
What could be happening?
If this is a website you host, you can mark the page as a nofollow. If not, Google Search has a beta feature called "About this Result" in which you can leave feedback telling Google the page does not exist. Also, if you reach a 404 page, Web Crawlers will find it on their own eventually.
I have a problem with the page which I edit from my site admin (no CMS used), it have different versions based on all edits by admin user (me).
When I go to that page on the site as normal user (who available only to view public webpage, not to edit), and press Ctrl+R(refresh page) several times sometimes it loads (oops!) old version of the page with no sequence and sometimes shows 404 error page (like "page not found"). What's that magic and where I should look to fix it? I see no problem neither in Unicorn production.log, nor in browser logs. Tried different browsers from different machines (even that never opened my site before), clearing cookies&cache in browser, even going to that "magic" page from my iPhone - result was the same - strange behaviour.
Could you please tell me how to fix or at least where to look up for fixing this problem?
I am running an instance of Umbraco 6.1.x and it has started throwing 404 on published pages.
My page structure is as follows,
Content
Home
About
Course
...
Component
Home
About
Course
Where component holds all resources and modules (HTML sections and stuff) for a page and using a partial view macro I dynamically load all components at runtime for a specific page.
We are facing an issue where we get 404 on every page after a full republish once we hit the HomePage. Before hitting home page they are all fine, but the moment we hit the homepage they are all throwing 404. By overriding the handlers I found out that they are hitting ~/umbraco/RenderMvc!
Any idea what can cause this?
Thanks in advance.
EDIT:
It is actually throwing:
No template exists to render the document at url '/'
considering the aforementioned scenario.
I have proper allowed template setup and property on nodes are showing the correct template associated with the respective items. Not sure why it's losing template info. I can force it to load under correct template using ?altTemplate=templateName.
Some pointers, we have a view in Views/Shared folder (apart from macro partials) tied to a surface controller.
One thing I would like to say is, we are using nested (library.RenderMacroContent with Umbraco markup) in our partial views and I have realized that the whole page throws 404 if there's a page with a link to the broken page which is broken (i.e. page got re-created and on t==e of the components is holding a link to the page with previous id). Suggestions?
did you get to the bottom of this? We're having exactly the same problem at the moment, on the same version of Umbraco.
I've noticed that when it happens, the umbraco.config becomes either corrupt or rolls back to a much, much earlier version, with all sorts of attributes missing. This lead us to believe it was a sync issue between the DB and umbraco.config.
We initially thought we had solved it by deleting App_Data > TEMP > ExamineIndex and recycling the app pool etc. Maybe give this ago, as it fixed it for a while for us, but alas, the demon has reared its ugly head once more. We are still in a full on dev stage though, so the constant changing may be complicating it further for us - perhaps it will be a fix for you.
If you have any more info, or even a fix, it would be greatly appreciated.
Cheers
EDIT:
Ok, I think I've solved this now, but only time will tell. Try emptying your recycle bin & then republish entire site.
I managed to consistently recreate the bug using IIS SEO site analysis. Each time I did this, the log threw up an error 'cannot find node id xyz', turns out that (and other) nodes were in the recycle bin. Upon emptying it the errors stopped. Good luck!
I am working on learning Orchard. I have got my development machine in a state where it will not load the home page. I get a 404 error with this message...
Server Error in '/OrchardLocal' Application 404
I realized that it is because no content item is set as the home page. However, the checkbox for making a page (or anything else) the home page is not showing in the edit page screen.
How do I fix this? I need the Make this a Home page checkbox back or some other way to accomplish the same thing.
Is there a way to do this in the database directly (which I realize is a hack but might let me move the ball forward on the problem).
I thought I would mention the EXACT exception thrown by the error is "The controller for path '/OrchardLocal/' was not found or does not implement IController."
Any help is appreciated. If I can't figure this out it seems I will be back to doing Orchard from scratch (new pull, new db etc) which seems to happen EVERY time I try to learn Orchard.
Here are the Parts I have on the Page Content Type. This is probably not the default list because I have been messing with it to get it fixed.
Common
Publish Later
Title
Autoroute
Body
Containable
Navigation
Identity
Menu
For the record I added the blog Module to the site and added a blog. But same behavior when I create a blog...no Make this the Home page and no way to set the permalink.
Do you have the AutoRoute Part attached to the Page Content type.
Check to make sure that your User has the permissions to set a content item as the homepage
To set an item as a homepage just set its permalink to an empty string.
My JQM app has a page in it called "settings" which has three buttons serving as links to other pages. One of those pages is called "tracks" and the code for it is below.
Control your relaxation resources
When I click this button I get a "File not found" error and the browser is pointing to the "file:///C:/inetpub/wwwroot/SITES/jQuery%20Mobile%20Form/tracks#tracks" url rather than the "file:///C:/inetpub/wwwroot/SITES/jQuery%20Mobile%20Form/index.html#tracks" url. I'm using FF but it happens in all browsers and it also happens when running on the test website.
The navigation works for the other two buttons on the page.
The behavior occurs regardless of what name I give the page.
I know I've seen this problem discussed but can't find the answer to it, so my apologies in advance it this is a duplicate or triplicate.
Can anyone point me in the right direction?
Updating to beta 2 of JQM took care of this problem. Don't know why but it is resolved now.