Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

Filter by
Sorted by
Tagged with
0
votes
1answer
1k 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
213 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
250 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
386 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 ...
0
votes
0answers
27 views

Permalink issue with Wordpress Site at domain root and another Wordpress Site in a Subfolder

If you look at my site: https://alphahedron.com/ You will see a functioning wordpress site (although not configured yet). If you go to one of my subfolder sites: https://alphahedron.com/game/...
0
votes
0answers
147 views

htaccess redirects invalid request to home page not 404

Trying to work out how to get Wordpress / .htaccess to show a 404 error page for invalid requests. With a default WP .htaccess file a request like https://example.com/?exam=testing.html will ...
1
vote
0answers
32 views

Built-In Postname Redirection vs Hard Redirects in relation to SEO and performance

It seems that many Wordpress users, even very experienced ones, aren't aware that, in normal circumstances, with pretty permalinks enabled, an inexactly written or superficially non-matching URL will ...
0
votes
0answers
24 views

Custom Post Type Front Page Gives 404

I have developed a plugin on one site and just now moved it to another. At start I had that problem in the initial site too. Saving permalinks again solved it in the initial website. I then moved it ...
0
votes
1answer
55 views

Function for Sticky Post on Categories causes issues with 404 behavior

I want to how sticky posts on category pages and I am using a code on my function.php file in order to manage it. The sticky posts are being shown on the category pages, everything is OK. But with ...
1
vote
1answer
42 views

Using taxonomy term in CPT permalink – Pages 404's

Having some issues with creating the permalink structure that I'd like. Found a piece of code on Stack Exchange, which unfortunately I cannot locate right now. I have a CPT called project and I want ...
0
votes
1answer
566 views

How to fix 404 error in pagination in categories of woocommerce with common url base /shop/?

I can’t find a solution — unification of url bases of products and categories in woocommerce. I have found only one working solution: In Settings -> Permalinks: Category base change on shop Custom ...
1
vote
0answers
594 views

Repeating admin-ajax.php not found error in admin

I seem to be getting a repeating 404 error in the Chrome console when in wordpress admin very occasionally it gets marked as a 500 error for the same line, perhaps is something to do with an ...
0
votes
1answer
19 views

404 page not found - Yet open admin page it works

Having a weird problem on a new site we are putting together. Everything is working OK with one exception - one page always returns a 404 page not found. In the admin pages, if the page is veiwed or ...
0
votes
0answers
30 views

How to add a full working piece of website already coded, to a large scale Website design project?

I've written 5 PHP files each of which are dependant of each other and contains one style.css also. This whole project works fine when executed alone and includes home.php which includes HTML code for ...
0
votes
1answer
198 views

Assign Parent Page - Now 404 Error

The strangest thing is happening. I have a page that I want to assign a parent page to. When I assign a specific parent page to it, then the page shows a 404 error. Here is the weird thing, this ...
0
votes
1answer
177 views

Page 404 Error on Localhost

I am currently working on my localhost and the problem is that all the wordpress related urls would direct me to error 404 page not found but somehow i can still access my website which still ...
0
votes
0answers
18 views

All Post Wordpress Page Error

I set up the number of elements per page in the Wordpress "Post" page in 999 (max) because i have more than 4k post but since i did that every time I want to go to the page and see my post i'm ...
0
votes
1answer
449 views

Dynamic 404 page content while still keeping 404 status code?

I used Divi to build the layout for a custom 404 page. I'm using this plugin https://wordpress.org/plugins/redirect-404-error-page-to-homepage-or-custom-page/ to redirect 404 errors to this page. It ...
0
votes
1answer
248 views

Unable to declare AOS library in functions

Greeting WP Devs, I am planning to transfer the script libraries in my function.php . In my function.php I registered AOS function mypage() { if ( is_page( 'mypage' ) ) { wp_register_script( '...
0
votes
2answers
177 views

How to convert multisite subdomain from http to https

I have created a WordPress multisite on the primary domain alaksns.com which is secure with ssl certificate. Then I added a new site as blog.alaksns.com which only works when accessed with http ...
0
votes
0answers
82 views

add_rewrite_rule() returns 404 page

I'm using add_rewrite_rule function to add this rule: function custom_rewrite_rules() { add_rewrite_rule( 'category/books/crime', 'category/books/?filter_category=crime', ...
1
vote
0answers
26 views

permalink structure postname and wp internal routing (301 vs 404) [duplicate]

I don't understand the following behavior: to verify, I have a fresh default/standard wp installation (no themes, no plugins) I change in settings the permalink structure to "post name". I create ...
0
votes
1answer
34 views

wp-admin throws 404 when accessed from some IPs

When I am trying to access wp-admin I am getting a 404 page for some specific internet connections on some days. I have tried deactivating Jetpack, that did not solve the issue. Except for Jetpack I ...
0
votes
0answers
81 views

PageNavi redirects to 404 when used as archive page

I'm using a page as archive for a custom post type called event. register_post_type('event', array( 'labels' => array( 'name' => 'Événements', 'singular_name' => '...
0
votes
2answers
1k views

wp-login not found - All usual solutions not working

A new client of me can't login to his old(er) Wordpress website: wp-login gives a 404 error and wp-admin gives a 500 error. Here are the links (removed) I came across this issue before, but this ...
2
votes
2answers
38 views

HTAccess stops me from accessing WordPress Dashboard links

I have a WP site which I have not looked at for a while. I have just logged in to update aspects of it, including WP itself, now on 5.0.2. Now if I click on any of the Dashboard links - Posts, ...
0
votes
1answer
342 views

404 on CSS and JS only on Homepage

I had to use a backup of the website and on restoration the Homepage has 404's to all JS/CSS files Every other page is accessible and does not experience the issue I've checked the permalinks, I've ...
0
votes
2answers
414 views

404 Not found error after update to WordPress 5.0

I have a WordPress website which was working good before WordPress 5.0. after update to WordPress 5.0 I get an 404 error on loading resources. style.min-rtl.css:1 Failed to load resource: the server ...
0
votes
1answer
33 views

404 on internal pages, in all sites in my local server

I have a local Apache server, with module rewrite loaded, all my Wordpress files in this server fail to find internal pages whenever permalinks options are set to something different than simple. ...
-1
votes
2answers
140 views

Theme making direct ajax calls to theme folder

So, I'm using a wordpress theme (unfortunately, I'm not able to get support for the theme any longer), and it has a contact form that makes a direct ajax call to a php file in the theme's "includes" ...
0
votes
1answer
51 views

Custom permalink gives 404 error only in some pages

Some pages of my Wordpress don't work after creating a custom permalink for products URL in my localhost environment. Home page works, but for example /contact page returns 404. If I look at Apache ...
0
votes
1answer
157 views

Some one is trying to hack my website, Need guidance [closed]

There are multiple IPs that are trying to access my directories. I am using iThemes Security plugin and it shows the following lists. These are the files all of the IPs are trying to access every ...
0
votes
2answers
30 views

I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php

I am actually building a custom theme for my blog and I use single quotes for HTML everywhere like: <div class='div'></div> Does this cause me redirection to index.php?? My site ...
0
votes
1answer
55 views

Custom post type slug 404

I have created a custom post type public function register_post_types() { $args = array( 'labels' => array( 'name' => 'Android Apps', 'singular_name' => '...
1
vote
2answers
823 views

Getting a 404 error when clicking edit page

The problem I've run into is the WordPress for my website yesterday randomly stopped allowing us to edit any of the pages. Every time you click to edit a page it comes up with a 404 error. Things I ...
0
votes
1answer
37 views

Wordpress website dont load CSS, JS and images

I have a basic website with the Betheme installed as theme with the plug-ins: Yoast SEO WPBakery Page Builder Ultimate Addons for Visual Composer Slider Revolution Site Reviews Really Simple SSL ...
0
votes
0answers
24 views

Why my post showing not found in admin side when i click on count of category?

i am building new theme in wordpresss and i posted some post inside my post with specific categories and when i click on count of category to see how many posts are of this category but every time i ...
-1
votes
1answer
194 views

%20 in URL in archive page shows error 404 on page [closed]

I have made a custom archive page, so the page is working for single words like - National Category. For this the archive page works as it should be but when it comes to two words like - Economy and ...
2
votes
1answer
1k views

Removing CPT slug from URL results in 404 error for archive page

I have created a CPT with rewrite rules as follows: "rewrite" => array( "slug" => "/", "with_front" => false ), In the functions.php, I have added the following code: function ...
1
vote
0answers
40 views

Wordpress category with 404 error

Okay, so I'm facing a weird problem as I'm receiving 404 errors on blog category pages and I already did the most popular tricks to solve it, such as: re-install Wordpress update permalinks update ....
0
votes
0answers
86 views

Why is there a 404 on page 2+ for my search page?

I've overridden the search.php template from within a plugin, and I've replaced the global $wp_query with a different one, and without any paging parameters it works fine. Once I add a /page/2/ on ...
0
votes
0answers
23 views

Published page but it is page not found

I have published page with post type abc, but the page is not found. If I keep post type, then it works fine. I insert post data and publish through query: add_action( 'init', 'my_cpt_init' ); ...
0
votes
0answers
581 views

Woocommerce product page 404 not found

I don't know what else to try to fix this, i am working on localhost with laragon and i get 404 not found when i go to product link, the url is the same as permalink which i have /%postname%/ and ...
0
votes
1answer
36 views

“Headers already sent” error triggered in “parse_query” action

I have this code registered to the "parse_query" action which attempts to trigger a 404 based on the availability of an API asset. My implementation is based on this answer to another question. ...
1
vote
0answers
40 views

Custom post URL 404 error

I have custom post type and custom taxonomy. Categories works well but posts give me 404. I dont know why. It worked before I define URL for hiearchical categories. Can anybody help me? Main fragments ...
1
vote
0answers
350 views

Getting “404 page not found” error when i access to my Login page

I am getting the 404 error when I enter wp-admin after my domain.I am using infinity free hosting and getting this page https://infinityfree.net/errors/404/ when I access my WordPress login page. Can ...
0
votes
1answer
164 views

Wordpress 404 errors for old plugin files via Google Bot

I get a lot of 404 errors on my WordPress site and I have controlled a lot of those using the Redirection plugin. Now there is a particular type of 404s that originate from Googlebot requests. These ...
0
votes
2answers
1k views

Migrated site - Images have 404 error

I migrated my site from localhost (LAMP) to Namecheap and it is broken in that the images it is supposed to load from /wp-content return a 404 error. I can login to wp-admin and I can see the pages ...
0
votes
0answers
27 views

Param causing 404

I just moved over from blogger and which added ?m=1 and ?m=0 params on a lot of urls, and they are currently saved on a lot of social media, bookmarks, etc. All requests coming in with m=x in the ...

1 2
3
4 5
17