{"id":1388,"date":"2020-02-19T10:39:28","date_gmt":"2020-02-19T09:39:28","guid":{"rendered":"https:\/\/www.wp-moon.com\/comment-remedier-a-certains-warning-require-ou-fatal-error-require\/"},"modified":"2020-02-19T16:30:19","modified_gmt":"2020-02-19T15:30:19","slug":"how-to-fix-warning-require-or-fatal-error-require","status":"publish","type":"post","link":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/","title":{"rendered":"How to fix Warning: require or Fatal error: require"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_custom_heading text=&#8221;Issue&#8221; use_theme_fonts=&#8221;yes&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<code>Warning: require(\/...\/wp-includes\/...) [function.require]: failed to open stream: No such file or directory in...<\/code>is a problem indicating a missing file within WordPress. This can cause various malfunctions depending on the missing file or the number of missing files.<\/p>\n<p>Two examples:<\/p>\n<p><code>Warning: require(\/...\/wp-includes\/class-wp-meta-query.php) [function.require]: failed to open stream: No such file or directory in \/...\/wp-settings.php on line 101<\/code><\/p>\n<p><code>Fatal error: require() [function.require]: Failed opening required \u2018\/...\/wp-includes\/class-wp-meta-query.php\u2019 (include_path=\u2019.:\/...\/php\u2019) in \/...\/wp-settings.php on line 101<\/code><\/p>\n<p>Depending on the criticality of the missing file, a simple Warning may be displayed or a Fatal error may occur. It is important to consider these warnings, try to find the cause(s) and deal with them.[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;Where does this error come from?&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Different actions can lead to this type of error. It is best to try to pinpoint the cause in order to solve it and to see that it does not happen again.<\/p>\n<ul>\n<li>The fo<span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">WordPress installation failed<\/span><\/span><\/li>\n<li><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">WordPress update failed<\/span><\/span><\/li>\n<li><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">Malicious plugin<\/span><\/span><\/li>\n<li><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Clumsy handling of files or folders (moving, deleting &#8230;)<\/span><\/span><\/li>\n<li><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">Malicious act<\/span><\/span><\/li>\n<li><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">Unsecured site offering access to site files and folders<\/span><\/span><\/li>\n<\/ul>\n<p>You can see that there are multiple causes, whose risks and consequences can be varied: a failed installation of WordPress has fewer consequences (just identify the blockage or try again) than a deliberate and malicious act to harm the site (this may involve the destruction of the site or in the worst case access to confidential data in the base). It is up to you to identify the cause of the problem or to call in an expert to do so.[\/vc_column_text][\/vc_column][vc_column][vc_custom_heading text=&#8221;What can be done to solve this problem?&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]Depending on the origin of the error, there are several possible solutions:<\/p>\n<ul>\n<li>If it is the installation of WordPress that is causing the problem: simply try again.<\/li>\n<li>If the problem persists, check the rights on the folders, contact your host or try to find out more details about the error to submit it to an expert. You can also, via (S)FTP, try to put the right files in the right places. Be careful in this case, make sure that there are no more errors and that the site is working normally.<\/li>\n<li>If it is an update failure: the instructions are the same as for the installation. Please note, however, that you must respect the versions of the files. If you decide to add these files, be sure that your entire WordPress installation is homogeneous, with the files in their correct version.<br \/>\nIf it is a malicious plugin: clean your site, remove all traces of the plugin and analyze the damage caused. The best thing to do is to have a backup of these files and its base and restore them.<\/li>\n<li>Manipulating files or folders: simply put the right files back in the right places in the right version.<\/li>\n<li>Malicious act: reintroduce the good files but find the origin of this act (a person having access to your site?, rights problem?).<\/li>\n<li>Unsecured site offering access to the site&#8217;s files and folders: identify the breach in your site to plug it. A site that lacks security is a danger for you and your visitors. Make the right settings, put if necessary recognized security plugins and do not hesitate to ask an expert for an audit of your site and solutions to avoid as much as possible that such problems recur.<\/li>\n<\/ul>\n<p>Of course, other solutions are possible, especially depending on the identified cause. If you have any doubts, especially in the case of unauthorized access to your site, talk to someone who is familiar with WordPress and server security.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>When files are missing, Wordpress displays &#8220;require&#8221; with a Warning or a Fatal. Let&#8217;s find out why&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1362,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[65,58,60,59],"class_list":["post-1388","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fix-errors","tag-error-2","tag-fatal","tag-require","tag-warning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to fix Warning: require or Fatal error: require - WP Moon<\/title>\n<meta name=\"description\" content=\"When files are missing, Wordpress displays &quot;require&quot; with a Warning or a Fatal. Let&#039;s find out why...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fix Warning: require or Fatal error: require - WP Moon\" \/>\n<meta property=\"og:description\" content=\"When files are missing, Wordpress displays &quot;require&quot; with a Warning or a Fatal. Let&#039;s find out why...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Moon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpmoonwebsite\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-19T09:39:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-19T15:30:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/question-mark-2492009_640.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"320\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alexandre G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@alexgaboriau\" \/>\n<meta name=\"twitter:site\" content=\"@WPMoon4\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alexandre G\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fix Warning: require or Fatal error: require - WP Moon","description":"When files are missing, Wordpress displays \"require\" with a Warning or a Fatal. Let's find out why...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/","og_locale":"en_US","og_type":"article","og_title":"How to fix Warning: require or Fatal error: require - WP Moon","og_description":"When files are missing, Wordpress displays \"require\" with a Warning or a Fatal. Let's find out why...","og_url":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/","og_site_name":"WP Moon","article_publisher":"https:\/\/www.facebook.com\/wpmoonwebsite","article_published_time":"2020-02-19T09:39:28+00:00","article_modified_time":"2020-02-19T15:30:19+00:00","og_image":[{"width":640,"height":320,"url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/question-mark-2492009_640.jpg","type":"image\/jpeg"}],"author":"Alexandre G","twitter_card":"summary_large_image","twitter_creator":"@alexgaboriau","twitter_site":"@WPMoon4","twitter_misc":{"Written by":"Alexandre G","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/#article","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/"},"author":{"name":"Alexandre G","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d"},"headline":"How to fix Warning: require or Fatal error: require","datePublished":"2020-02-19T09:39:28+00:00","dateModified":"2020-02-19T15:30:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/"},"wordCount":628,"commentCount":0,"publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/question-mark-2492009_640.jpg","keywords":["error","Fatal","require","Warning"],"articleSection":["Fix Errors"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/","url":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/","name":"How to fix Warning: require or Fatal error: require - WP Moon","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/#primaryimage"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/question-mark-2492009_640.jpg","datePublished":"2020-02-19T09:39:28+00:00","dateModified":"2020-02-19T15:30:19+00:00","description":"When files are missing, Wordpress displays \"require\" with a Warning or a Fatal. Let's find out why...","breadcrumb":{"@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/#primaryimage","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/question-mark-2492009_640.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/question-mark-2492009_640.jpg","width":640,"height":320,"caption":"Comment faire ?"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wp-moon.com\/en\/how-to-fix-warning-require-or-fatal-error-require\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wp-moon.com\/en\/"},{"@type":"ListItem","position":2,"name":"Fix Errors","item":"https:\/\/www.wp-moon.com\/en\/category\/fix-errors\/"},{"@type":"ListItem","position":3,"name":"How to fix Warning: require or Fatal error: require"}]},{"@type":"WebSite","@id":"https:\/\/www.wp-moon.com\/en\/#website","url":"https:\/\/www.wp-moon.com\/en\/","name":"WP Moon","description":"","publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wp-moon.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wp-moon.com\/en\/#organization","name":"WP Moon","url":"https:\/\/www.wp-moon.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/logo.png","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/logo.png","width":290,"height":95,"caption":"WP Moon"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wpmoonwebsite","https:\/\/x.com\/WPMoon4"]},{"@type":"Person","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d","name":"Alexandre G","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","caption":"Alexandre G"},"description":"Alexandre, Web Developer &amp; Website Editor. I've been using WordPress for over 10 years in my professional environment and on personal projects. I created WP Moon to teach you how to use this CMS, solve your problems and show you all the tricks.","sameAs":["https:\/\/www.croque-pixel.com\/","https:\/\/x.com\/alexgaboriau","https:\/\/www.youtube.com\/@wp_moon\/videos"],"url":"https:\/\/www.wp-moon.com\/en\/author\/wp-moon\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/comments?post=1388"}],"version-history":[{"count":0,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1388\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media\/1362"}],"wp:attachment":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media?parent=1388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/categories?post=1388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/tags?post=1388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}