Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

Filter by
Sorted by
Tagged with
0
votes
1answer
80 views

404 not working, going to homepage; how to fix?

Whenever I call a non-existent page, say http://www.example.com/foobar/, it should invoke the 404.php theme template file. In my case, however, the site redirects to the homepage, / I'm not sure ...
0
votes
3answers
271 views

Site Address (URL) - causing error 404

I have the following situation which I tried to solve by using the website and forum but unfortunately no success so far. I am working on a new site (old still-now online) but when changing the Site ...
0
votes
0answers
57 views

Show custom post status when logged out

Background: I have a few different custom post status on my installation. We use them for a workflow. Lets just say for example we have: Draft (built in) ForClient (custom) Published (built in) Now ...
0
votes
0answers
290 views

Loading ACF Field content on a 404.php page

I am trying to load a ACF Field from a page to my 404.php but i cannot get it to work. get_post_field works fine but get_field does not <?php /** * The template for displaying 404 pages (not ...
0
votes
1answer
167 views

Custom taxonomy template list not working (404)

I have created a custom post type 'item': function mywp_add_item_post() { $labels = array( 'name' => 'Items', 'singular_name' => 'Item', 'add_new' => 'Add New ...
0
votes
1answer
30 views

404 error when calling php

<html> <body> ***<form action="abc.php" method="post"> First Name: <input type="text" name="firstname"><br> ...
0
votes
0answers
4k views

WP Rest API not working

WP 5.2.4 /wp-json/wp/v2/ Gives 404 error. I updated permalinks,have a working .htaccess on Apache and not using "plain permalinks" and still this thing don't work. My Apache and its configuration ...
0
votes
2answers
23 views

HTTP status 404 (error) when trying to log in

I've changed the http:// host to https://, then accidentally saved it. Now I can't log in to the admin panel having '404 Not Found' page. How can I fix this?
1
vote
0answers
532 views

Some PDF files get Forbidden Access and other open normally on the same directory subsites

I have a WordPress multi-site with 4 subdomains. All PDFs in the main domain site work fine while on subdomain I get Forbidden access for certain PDFs. For instance when I open: http://example.com/...
0
votes
1answer
84 views

wp-admin send 404 error

I installed the plugin "yoast seo" and now when I enter and exit, they give me an error. And I can only come through /wp-login.php. how to fix ? please help
0
votes
2answers
40 views

I have a 404 error on all my pages! What do I do?

I have changed default permalinks into custom structure, and I got 404 error across all of my site.
2
votes
1answer
7k views

REST API: No route was found matching the URL and request method

I'm having issues adding a custom REST API route to Wordpress. Using my own plugin, i've registered the route as followed: add_action( 'rest_api_init', function() { register_rest_route( $namespace, ...
1
vote
1answer
68 views

Missing Page, But Still Exists In Preview

A page went down and I get a "Page Not Found" error. I tried looking at all existing pages and the page is simply not there. It isn't in trash, either. However, when I created another page and hit "...
0
votes
2answers
15 views

Error 404 Display on otherlinks apart from homepage

i transfered wp hosting to godaddy only the homepage displays i get 404 error when click on other links.. (The domain name is hosted on namecheap tho and i changed name server from the former hosting ...
0
votes
2answers
248 views

Giving specific category posts its own permalink structure returns 404

i am trying to give a specific category posts it's own permalink. Followed the steps from this topic (Give specific category its own permalink structure) but the posts are giving a 404 error. Cleared ...
0
votes
0answers
25 views

Custom taxonomy named 'tag' return 404 page

I registered a custom taxonomy named 'tag', code below: add_action('init', 'reg_custom_tag'); function reg_custom_tag() { register_taxonomy('tag', array('my_custom_post_type'), array( '...
0
votes
0answers
45 views

Problem with a wordpress admin system. and website

When i use wordpress i got random connection problem, and website is off for around 5 to 10 min. Wen i check error logs i got somethink like this: Any help?
0
votes
0answers
20 views

Custom post shows 404 after theme change

i have a custom post created using a plugin. But randomly say if i change the theme the post shows a 404. I tried flush_rewrite_rules() and resaving the permalink, theme change but still it shows 404. ...
0
votes
1answer
25 views

How can I get custom post types to recognize pretty permalink variables?

I'm using PODS to create a custom post type called "automobile" on my site. This results in a permalink structure that looks like this: /automobile/automobile-page I want to be able to send ...
0
votes
1answer
76 views

How to customize file path for 404 redirection in php?

I made a plugin with a custom post type postcard. Most of postcards are private. I would like to redirect the logged out user in a specific php file inside my plugin instead of the 404.php or achive....
0
votes
1answer
80 views

Custom rewrite to fetch feed data

I am trying to fetch and display data from a feed when the user goes to a specific url like /items/32 where the 32 is the actual id of the feed item that should be fetched and displayed. Notice that I ...
0
votes
1answer
46 views

Expired event redirect to parent category

I build a website for a client of mine, that is going to continuously host events for his area. One of the requirements he has is to expire and remove from the database the events already completed. ...
0
votes
0answers
18 views

404 Not Found Error showing when I run wordpress

I setup all things properly means I did all things that need wordpress running with LEMP stack on Ngnix. But when I load localhost/wordpress for test purpose it is giving 404 Error code. Please ...
0
votes
0answers
808 views

Pages in wp-admin is not found 404

I moved my website from localhost to web server. The website works fine. When I explore any page the urls on the website(front-end) are working fine so permalinks are not a problem. Issue is when I ...
0
votes
0answers
116 views

Wordpress as backend for SPA - problem of 404 page for custom routing

I'm going to use wordpress as backend rest api and vue.js (it doesn't matter what framework) as frontend part. I have some custom route on frontend side, e.g. "/custom". Actually it works on my ...
3
votes
1answer
97 views

How can I force a “404 Not Found” error

I have a couple of pages that are populated with data from non-Wordpress tables in my database. https://pageURL/?asi_id=12345 causes the DB-lookup to get the correct data. If someone uses the wrong ...
0
votes
0answers
71 views

Scripts/styles not loading on cloned WP Site when logged in

I've cloned a WordPress site using installatron (on cPanel). The front-end loads fine when not logged in, but when I am logged in, scripts & styles aren't loading and changes I make to plugin ...
1
vote
2answers
72 views

Exclude JS file from 404 error page

I have a custom tracking system in place which works with an include of a .js file in the footer of each page. Unfortunately some high traffic sites are including images from my site which are ...
1
vote
1answer
91 views

How do I redirect all 404 error url to Subcategory url

I have a b blog of over 200k+ post and I moved all post from a specific category to a subcategory, I have also deleted the post from the my main site, so all the post of that category have been moved ...
0
votes
2answers
377 views

Page editing in backend redirecting to 404 page not found with url /post.php

Today I migrated a WordPress site from another server to a new server, there is a new domain and new host, so I follow the manual way to upload my site. That was, I downloaded files and upload it on ...
0
votes
0answers
258 views

Enabling hierarchical in a Custom Post Type gives error 404

For a project I have a custom post type called Place. This custom post type can have a page as a parent, and that page can have other parent and so on. Place is always at the end of the sequence. At ...
1
vote
1answer
2k views

oEmbed 404 errors when trying to use embed block

When trying to add a Youtube Embed Block in the Gutenberg editor, I'm seeing these 404 errors in the browser console: GET https://example.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube....
0
votes
0answers
23 views

Another site within WordPress page, disabling 404 error for pages that exist but outside of WP system

TLDR; Is there a way to disable WordPress's 404 feature for certain pages? On one domain, I am running a WordPress site and, under the same domain, I am also trying to run another site parallel to ...
2
votes
1answer
38 views

Why specific file directory fails to redirect but its parent folder succeeds?

I activated multisite using subdirectories on my old WordPress site, and I created a new site (say my-example.com/new-site/). I found links such as my-example.com/new-site/wp-content/mu-plugins/css/ ...
1
vote
1answer
122 views

Error 404 using wpml plugin

I have a multi site in WordPress. I want to use the wpml plugin for the root site. The problem I encounter is that when I add a new language to the website, it does not recognize the second language ...
1
vote
0answers
149 views

Page preview is shown, updating page gives 404 error

I can add new pages and preview them, but once I upload them I get a 404 "Not found" error. I thought it's a problem with my permalinks, so I followed some tutorials to fix this like http://www....
0
votes
2answers
351 views

404 on pretty permalinks when serving via HTTPS

I deployed my wordpress site in Google Cloud Compute Engine. To enable SSL I followed the the steps outlined here https://www.onepagezen.com/free-ssl-certificate-wordpress-google-cloud-click-to-deploy ...
0
votes
1answer
53 views

404 error on published page with specific permalink

I am experiencing a strange error with my Wordpress install. I've got a dozen of pages, %postname% permalink structure, everything works fine. For one of the published pages, I reverted it to draft ...
0
votes
1answer
295 views

Wordpress Inner pages giving 404 Error after shifted to new server

When we made site at our server end it was working fine which was linux server.after hosting this site to AWS then it is giving me error for inner pages and if we change something it is not affecting ...
0
votes
1answer
389 views

removed index.php now all pages 404

I added this code to my .htaccess file to get rid of index.php, but now all the pages 404 (the hyperlinks are mapped to the correct url) # BEGIN WordPress <IfModule mod_rewrite.c> ...
0
votes
1answer
38 views

Since moving HTTPS using cloudflare, the admin and login pages no longer work

Recently routed our site through cloudflare as part of moving to HTTPS. All the pages work apart from the administrative pages for which we get a 404 error. I don't really know what is causing the ...
-1
votes
1answer
31 views

Please Help me with Archive 404 Pagination

When I click on page 2, there is a 404 page. How could i fix it ? This is my pagination on archive.php <?php global $query; $big = 999999999; // need an unlikely integer echo paginate_links( ...
0
votes
2answers
2k views

Why am I sometimes getting a 404 error when I try to update a page with Elementor?

When updating a page with Elementor, we're occasionally receiving a 404 error. Most of the time we can update the page just fine, but when we try to add a <script> tag or a button with a custom ...
0
votes
1answer
28 views

Pages counts are showing in WordPress backend but pages shows 404

I'm using WP latest version and suddenly I saw today all of my pages are shows 404. It's working fine till yesterday. Here are screenshots that what happens to me. What I have done : All plugins are ...
1
vote
2answers
41 views

Should the actual /category/ directory be 404? Is that normal WP behaviour

I'm not sure if this is 'normal' but on my WP install the actual directory for 'category' throws a 404 error. So, for example, if I had a category called 'apples' then every post or page associated ...
1
vote
1answer
2k views

<!doctype html> : Failed to load resource

I am using the code below: <!doctype html> <html lang="<?php language_attributes(); ?>" dir="ltr"> <head> <meta charset="<?php bloginfo('charset') ?>"> &...
0
votes
1answer
361 views

Custom post type permalink returns 404 when set to private

I have a custom post type that is configured to use a permalink structure prepended with the post type name. When using get_permalink(), the URL that is returned does not include the post type name. ...
0
votes
1answer
311 views

404s after changing site url in settings

I was working on my Wordpress site (hosted on DigitalOcean) using the ip address as the website address. I decided to change the address to my domain name so I went into settings and updated the ...
0
votes
0answers
570 views

Display a custom 404 page without a redirect

In a plugin I want to display a specific page without redirecting (and thus without changing the URL) like the plugin https://wordpress.org/plugins/404page/ does. I can capture 404s and redirect them, ...
0
votes
0answers
32 views

Standard Page Child of CPT Not Found (404)

I am about to lose my mind figuring this out. I have a custom post type called "portal" and posts of that type can be the parent of a standard page. To accomplish that I've written code that adds the ...

1 2
3
4 5
18