最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

errors - <!doctype html> : Failed to load resource

matteradmin7PV0评论

I am using the code below:

<!doctype html>
<html lang="<?php language_attributes(); ?>" dir="ltr">

<head>
    <meta charset="<?php bloginfo('charset') ?>">
    <meta name="description" content="<?php bloginfo('description') ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php wp_head(); ?>
</head>

I have an error in line 1 in firebug sources tab .

Failed to load resource: the server responded with a status of 404 (Not Found)

Now the site is not showing part of the site and footer!!

Thanks for helping.

I am using the code below:

<!doctype html>
<html lang="<?php language_attributes(); ?>" dir="ltr">

<head>
    <meta charset="<?php bloginfo('charset') ?>">
    <meta name="description" content="<?php bloginfo('description') ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php wp_head(); ?>
</head>

I have an error in line 1 in firebug sources tab .

Failed to load resource: the server responded with a status of 404 (Not Found)

Now the site is not showing part of the site and footer!!

Thanks for helping.

Share Improve this question edited Apr 4, 2019 at 22:17 rudtek 6,3935 gold badges30 silver badges52 bronze badges asked Apr 4, 2019 at 9:18 Mostafa NorzadeMostafa Norzade 3732 gold badges7 silver badges17 bronze badges 3
  • 1 Well, the <!doctype html> was likely not the first line being referenced by Firebug. So check the first resource (JS/CSS file, image, etc.) which might not be properly linked to or it may have already been deleted, or simply doesn't exist. – Sally CJ Commented Apr 4, 2019 at 9:26
  • "first resource" - I mean, the corresponding resource. – Sally CJ Commented Apr 4, 2019 at 9:34
  • I did not make a change on the site. Suddenly it became like that . now not showing part of the site and footer !! – Mostafa Norzade Commented Apr 4, 2019 at 10:50
Add a comment  | 

1 Answer 1

Reset to default 3

I see a few errors in your code: Your first line:

<html lang="<?php language_attributes(); ?>" dir="ltr">

should actually be:

<html <?php language_attributes();?> dir="ltr">

(notice that you dont need to add lang=. The function does that by itself. That will likely fix the problem)

You didn't add the ; to 2 of your lines in the head:(shouldn't be a problem, but it's good to be consistent)

<meta charset="<?php bloginfo('charset') ?>">
<meta name="description" content="<?php bloginfo('description') ?>">

they should be

<meta charset="<?php bloginfo('charset'); ?>">
<meta name="description" content="<?php bloginfo('description'); ?>">
Post a comment

comment list (0)

  1. No comments so far