{"id":698,"date":"2021-08-03T21:52:56","date_gmt":"2021-08-03T21:52:56","guid":{"rendered":"https:\/\/www.reselhost.com.ar\/kb\/?p=698"},"modified":"2021-08-03T21:52:56","modified_gmt":"2021-08-03T21:52:56","slug":"como-habilitar-el-registro-de-errores-de-php-en-wordpress","status":"publish","type":"post","link":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/","title":{"rendered":"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>WordPress es un CMS de c\u00f3digo abierto ampliamente utilizado y est\u00e1 codificado en PHP y MySQL. WordPress proporciona algunas opciones de depuraci\u00f3n que le ayudar\u00e1n a encontrar los registros de error. Una vez que encuentre los registros de error para el sitio web de WordPress, ser\u00e1 muy \u00fatil para solucionar sus problemas. Los siguientes son los consejos para habilitar el registro de errores de PHP.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Habilitar la depuraci\u00f3n desde el archivo WP-Config<\/strong><\/h5>\n\n\n\n<p><br>Puede habilitar el error de WordPress desde el archivo wp-config.php. Por defecto el registro de errores estar\u00e1 deshabilitado, tendr\u00e1 que hacer algunos cambios de configuraci\u00f3n para habilitar la depuraci\u00f3n. WordPress utiliza la constante de PHP para habilitar la depuraci\u00f3n. Puede editar el archivo wp-config.php y hacer los siguientes cambios que afectar\u00e1n a todo WordPress para habilitar el registro de errores.<\/p>\n\n\n\n<p><strong>define( \u2018WP_DEBUG\u2019, true );<\/strong><br>Una vez que habilite el registro de errores de\u00a0<a href=\"\/wordpress-hosting.html\">WordPress<\/a>, todos los errores, avisos y advertencias de PHP se mostrar\u00e1n en su sitio web. Puede introducir la siguiente l\u00ednea dentro de su archivo wp-config.php. Almacenar\u00e1 el error en el archivo debug.log ubicado dentro de wp-content.<\/p>\n\n\n\n<p><strong>define( \u2018WP_DEBUG_LOG\u2019, true );<\/strong><br>WP_DEBG_DISPLAY evitar\u00e1 que los errores aparezcan en el sitio web. Por defecto esta opci\u00f3n estar\u00e1 en True, tendremos que hacer cambios para desactivarla.<\/p>\n\n\n\n<p><strong>define( \u2018WP_DEBUG_DISPLAY\u2019, false );<\/strong><br>Te recomendamos que realices los siguientes cambios en tu archivo .htaccess de\u00a0<a href=\"\/wordpress-hosting.html\">WordPress<\/a>\u00a0para restringir el acceso de debug.php de forma p\u00fablica. Tambi\u00e9n puede establecer 600 permisos al archivo debug.php. Una vez hecho esto, debug.php no ser\u00e1 accesible en la web. Sin embargo, puede acceder al archivo dentro de su WordPress.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><\/p><cite><strong>&lt;Files debug.log&gt;<\/strong><br><strong>Order allow,deny<\/strong><br><strong>Deny from all<\/strong><br><strong>&lt;Files\/&gt;<\/strong><\/cite><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>WordPress es un CMS de c\u00f3digo abierto ampliamente utilizado y est\u00e1 codificado en PHP y MySQL. WordPress proporciona algunas opciones de depuraci\u00f3n que le ayudar\u00e1n a encontrar los registros de error. Una vez que encuentre los registros de error para el sitio web de WordPress, ser\u00e1 muy \u00fatil para solucionar sus problemas. Los siguientes son [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[70,84,103],"class_list":["post-698","post","type-post","status-publish","format-standard","hentry","category-wordpress-hosting","tag-htaccess","tag-php","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>C\u00f3mo habilitar el registro de errores de PHP en WordPress - Reselhost<\/title>\n<meta name=\"description\" content=\"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress Hosting Certificados SSL Gratis Hosting SSD Soporte Especializado.\" \/>\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.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C\u00f3mo habilitar el registro de errores de PHP en WordPress - Reselhost\" \/>\n<meta property=\"og:description\" content=\"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress Hosting Certificados SSL Gratis Hosting SSD Soporte Especializado.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Reselhost\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/reselhost\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-03T21:52:56+00:00\" \/>\n<meta name=\"author\" content=\"soporte\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@reselhost\" \/>\n<meta name=\"twitter:site\" content=\"@reselhost\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"soporte\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/\"},\"author\":{\"name\":\"soporte\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/#\/schema\/person\/8dec3057bcd9236dfd2c1466851115ae\"},\"headline\":\"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress\",\"datePublished\":\"2021-08-03T21:52:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/\"},\"wordCount\":313,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.reselhost.es\/kb\/#organization\"},\"keywords\":[\"htaccess\",\"PHP\",\"WordPress\"],\"articleSection\":[\"WordPress Hosting\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/\",\"url\":\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/\",\"name\":\"C\u00f3mo habilitar el registro de errores de PHP en WordPress - Reselhost\",\"isPartOf\":{\"@id\":\"https:\/\/www.reselhost.es\/kb\/#website\"},\"datePublished\":\"2021-08-03T21:52:56+00:00\",\"description\":\"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress Hosting Certificados SSL Gratis Hosting SSD Soporte Especializado.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.reselhost.es\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/#website\",\"url\":\"https:\/\/www.reselhost.es\/kb\/\",\"name\":\"Reselhost\",\"description\":\"Base de Conocimientos Reseller Hosting\",\"publisher\":{\"@id\":\"https:\/\/www.reselhost.es\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.reselhost.es\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/#organization\",\"name\":\"Reselhost LLC\",\"url\":\"https:\/\/www.reselhost.es\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.reselhost.es\/kb\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg\",\"contentUrl\":\"https:\/\/www.reselhost.es\/kb\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg\",\"width\":500,\"height\":500,\"caption\":\"Reselhost LLC\"},\"image\":{\"@id\":\"https:\/\/www.reselhost.es\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/reselhost\",\"https:\/\/x.com\/reselhost\",\"https:\/\/www.instagram.com\/reselhost\",\"https:\/\/www.linkedin.com\/in\/reselhost\",\"https:\/\/www.youtube.com\/@reselhost\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/#\/schema\/person\/8dec3057bcd9236dfd2c1466851115ae\",\"name\":\"soporte\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.reselhost.es\/kb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e889bfe45e57e333934f731d2f44d88bc7a50c1d0b8c9b5c48e9a69b5a775459?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e889bfe45e57e333934f731d2f44d88bc7a50c1d0b8c9b5c48e9a69b5a775459?s=96&d=mm&r=g\",\"caption\":\"soporte\"},\"sameAs\":[\"https:\/\/www.intelhost.es\/kb\"],\"url\":\"https:\/\/www.reselhost.es\/kb\/author\/intelhost\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\u00f3mo habilitar el registro de errores de PHP en WordPress - Reselhost","description":"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress Hosting Certificados SSL Gratis Hosting SSD Soporte Especializado.","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.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/","og_locale":"es_ES","og_type":"article","og_title":"C\u00f3mo habilitar el registro de errores de PHP en WordPress - Reselhost","og_description":"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress Hosting Certificados SSL Gratis Hosting SSD Soporte Especializado.","og_url":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/","og_site_name":"Reselhost","article_publisher":"https:\/\/www.facebook.com\/reselhost","article_published_time":"2021-08-03T21:52:56+00:00","author":"soporte","twitter_card":"summary_large_image","twitter_creator":"@reselhost","twitter_site":"@reselhost","twitter_misc":{"Escrito por":"soporte","Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/"},"author":{"name":"soporte","@id":"https:\/\/www.reselhost.es\/kb\/#\/schema\/person\/8dec3057bcd9236dfd2c1466851115ae"},"headline":"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress","datePublished":"2021-08-03T21:52:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/"},"wordCount":313,"commentCount":0,"publisher":{"@id":"https:\/\/www.reselhost.es\/kb\/#organization"},"keywords":["htaccess","PHP","WordPress"],"articleSection":["WordPress Hosting"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/","url":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/","name":"C\u00f3mo habilitar el registro de errores de PHP en WordPress - Reselhost","isPartOf":{"@id":"https:\/\/www.reselhost.es\/kb\/#website"},"datePublished":"2021-08-03T21:52:56+00:00","description":"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress Hosting Certificados SSL Gratis Hosting SSD Soporte Especializado.","breadcrumb":{"@id":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.reselhost.es\/kb\/como-habilitar-el-registro-de-errores-de-php-en-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.reselhost.es\/kb\/"},{"@type":"ListItem","position":2,"name":"C\u00f3mo habilitar el registro de errores Error Log de PHP para WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.reselhost.es\/kb\/#website","url":"https:\/\/www.reselhost.es\/kb\/","name":"Reselhost","description":"Base de Conocimientos Reseller Hosting","publisher":{"@id":"https:\/\/www.reselhost.es\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.reselhost.es\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.reselhost.es\/kb\/#organization","name":"Reselhost LLC","url":"https:\/\/www.reselhost.es\/kb\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.reselhost.es\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.reselhost.es\/kb\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg","contentUrl":"https:\/\/www.reselhost.es\/kb\/wp-content\/uploads\/2023\/06\/logo-grande-ok.jpg","width":500,"height":500,"caption":"Reselhost LLC"},"image":{"@id":"https:\/\/www.reselhost.es\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/reselhost","https:\/\/x.com\/reselhost","https:\/\/www.instagram.com\/reselhost","https:\/\/www.linkedin.com\/in\/reselhost","https:\/\/www.youtube.com\/@reselhost"]},{"@type":"Person","@id":"https:\/\/www.reselhost.es\/kb\/#\/schema\/person\/8dec3057bcd9236dfd2c1466851115ae","name":"soporte","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.reselhost.es\/kb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e889bfe45e57e333934f731d2f44d88bc7a50c1d0b8c9b5c48e9a69b5a775459?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e889bfe45e57e333934f731d2f44d88bc7a50c1d0b8c9b5c48e9a69b5a775459?s=96&d=mm&r=g","caption":"soporte"},"sameAs":["https:\/\/www.intelhost.es\/kb"],"url":"https:\/\/www.reselhost.es\/kb\/author\/intelhost\/"}]}},"_links":{"self":[{"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/posts\/698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/comments?post=698"}],"version-history":[{"count":0,"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/posts\/698\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/media?parent=698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/categories?post=698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reselhost.es\/kb\/wp-json\/wp\/v2\/tags?post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}