{"id":220,"date":"2015-04-23T14:45:51","date_gmt":"2015-04-23T17:45:51","guid":{"rendered":"https:\/\/www.kinghost.com.br\/wiki\/?post_type=article&#038;p=220"},"modified":"2021-06-17T14:15:22","modified_gmt":"2021-06-17T17:15:22","slug":"fatal-error-class-not-found","status":"publish","type":"article","link":"https:\/\/king.host\/wiki\/artigo\/fatal-error-class-not-found\/","title":{"rendered":"Fatal error: Class not found"},"content":{"rendered":"\n<p>O erro <em>Fatal error: Class not found<\/em> ocorre quando o PHP n\u00e3o encontra a classe que se deseja instanciar.<br>\nC\u00f3digo de exemplo:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\" lang=\"wp-block-preformatted\">&lt;?php<br>$k = new kinght();<br>?&gt; <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">MENSAGEM DE ERRO<\/h2>\n\n\n\n<div class=\"alerta\">Fatal error: Class \u2018kinght\u2019 not found in script.php on line 2<\/div>\n\n\n\n<p><i class=\"fa fa-long-arrow-right\"><\/i> A solu\u00e7\u00e3o para este tipo de erro \u00e9 verificar se a classe foi declarada, al\u00e9m de verificar se n\u00e3o houve erro de digita\u00e7\u00e3o ou falta de inclus\u00e3o de arquivo.<\/p>\n","protected":false},"author":9,"featured_media":0,"menu_order":45,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","article-category":[173],"article-tag":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/article\/220"}],"collection":[{"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":0,"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/article\/220\/revisions"}],"wp:attachment":[{"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/article-category?post=220"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/king.host\/wiki\/wp-json\/wp\/v2\/article-tag?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}