Odoo - Show 404 record not found page - odoo-8

I am working on odoo 10. What i want to do is simply show 404 page like we show in other website if the requested page doesn't exist.
I am sending email to client and in that email template there is a link to record but some times users with upper user roles deletes that specific record due to some reason. I want to show 404 page in this case.

You can just return website page 404 according to our condition.
return request.render('website.404')

Related

How to get the admin login page in magento if it is showing 404 Error page not Found?

I am doing a project in Magento.I have uploaded the project onto the server, the front end design of the project is showing correctly but when the admin login page is retrieved, its showing 404 error page not found.I have tried many solutions shown in the links below:
Magento 404 on Admin Page
But still it is not working.Can anyone suggest a solution for this?
I had a similar issue. After moving from one server to another admin showing 404. Problem was in configuration. In System->Configuration->Web->Secure->Use Secure URLs in Admin was set to "Yes", but https wasn't configured.
I'm in table core_config_data found row with path "web/secure/use_in_adminhtml" and set "value" = 0.
The problem is not widespread, but you can check this. Hope this helps

Translate 404 page in Magento

I've translated a whole webshop for a customer. The only page I still need to translate is the '404 not found' page. But I can't find it anywhere on my server.
Does someone know where the 404 page is located.
I'm talking about .csv files here.
For Magento 2:
The 404-page is located in Content > Pages, with title 404 Not Found.
Picture of Magento 2-menu
Within the Stores > Configuration > Web, you set which page to load when encountering a 404-error. The default is the "404 Not Found".
Picture of Magento 2-settings for selecting 404-page
To translate, there are then two options, 1) Edit existing 404-page. 2) Create a new page and select it as the default 404-page in the Store configuration. In these settings, make sure to select the appropriate store scope.
For Magento 1:
Process is similar, "404 Not Found" page can be found in (menu) CMS > Pages. The settings to select which page that gets delivered as the 404-page is in (menu) System > Configuration > Web, and search for "CMS No Route Page".
To get 404 page in magento
You have to create 404 page with url key as no-route on magento backend.
You can create custom html contents/designs for 404 page on the editor itself.

404 Error Page at first login to admin panel - Magento

Since a few days I have the weird issue, that when I first login to my magento admin panel, it will show a 404 error page. The header and menu items are all visible but the page content shows 404.
As soon as I click any given link, it will work and also the overview page works normally.
I have tried the common tweaks to resolve it, I couldn't fix the problem yet though.
I have the same problem and from the comments there is no comprehension of the sequence. This only happen for the FIRST LOGIN, but is is only the "main page content (<div id="page:main-container">) that has the 404 error, not the entire page. So the header and menu are still accessible. As in the original question once selecting a menu item everything works. That is to say my login page is https://somewesite.com/admin/dashboard/ and the dashboard does not load but generates a "404 page not found", but clicking the dashboard menu button displays the DashBoard.

I have disabled products in magento which are showing 404 not found crawling error

I have disabled products in magento which are showing 404 not found crawling error,I want to remove this crawling errors for seo
When you try to visit disabled product in Magento then it shows 404 error. In order to open product details correctly you must mark product as enabled.
just update your latest sitemap and submit it to google. Google take some time to update your sitemap till sitemap not update you can use redirect disabled product url to home page url.

Magento - clicking on parent category returns a 403 error

I have a problem with my Magento 1.5.0.1 installation.
Clicking on subcategories works fine and will send me to the proper URL and display products. When I click on a parent category however, I get a 403 forbidden error.
Does anyone know what the problem is?
There are a few reasons that a category link would 403.
My first guess would be that there is a directory in the web root with the same name as the category and you have URL suffixes disabled.
For example giving a top level category the URL key of 'media' while URL suffixes are disables will usually result in a 403.
Another possibility would be if you are using Apache and have mod_security enabled and the category name contains a work that mod_security doesn't like (e.g. select, insert & delete).

Resources