{"id":7400,"date":"2020-04-15T11:53:28","date_gmt":"2020-04-15T11:53:28","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=7400"},"modified":"2021-07-07T09:25:42","modified_gmt":"2021-07-07T09:25:42","slug":"view-access-and-wordpress-error-logs","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/","title":{"rendered":"Ways to View Access and WordPress Error Logs"},"content":{"rendered":"<p>Logs can help you when you troubleshoot and debug issues on your WordPress sites. Checking your access and WordPress error logs is very simple. Just follow this tutorial.<\/p>\n<h2>Ways to View Access and WordPress Error Logs<\/h2>\n<p>There are few different ways to view your access and WordPress error logs as below:<\/p>\n<h3>View Raw Access and WordPress Error Logs Using FTP<\/h3>\n<p>You can view your logs by simply downloading the raw log files. First, connect to your site using SFTP. Then in the root, search for the folder called \u201clogs\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9339\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/wordpress-error-logs-folder-sftp-min-1024x375.png\" alt=\"\" width=\"1024\" height=\"375\" \/><\/p>\n<p>In this folder, you will see your access logs and WordPress error logs.<\/p>\n<ul>\n<li>access.log<\/li>\n<li>error.log<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9338\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/logs-wordpress-min-1024x401.png\" alt=\"\" width=\"1024\" height=\"401\" \/><\/p>\n<p>For older logs archives, Gzip (.gz) backups are automatically created. In order to see additional debugging information in WordPress, you can see the codex.<\/p>\n<h3>Enable Error Logs in wp-config.php File<\/h3>\n<p>WordPress error logs can also be seen by enabling your wp-config.php file. First, connect to your site using SFTP.<\/p>\n<p>Then download your wp-config.php for editing it.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> Ensure that you have a backup of this file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9340\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/download-wp-config-php-file-min-1024x632.png\" alt=\"\" width=\"1024\" height=\"632\" \/><\/p>\n<\/div>\n<\/div>\n<p>Search for the line that says \/* That&#8217;s all, stop editing! Happy blogging. *\/ and just prior to it, add the below code:<\/p>\n<pre class=\"lang:default decode:true \">define( 'WP_DEBUG', true );<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9341\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/wp_debug-min-1024x370.png\" alt=\"\" width=\"1024\" height=\"370\" \/><\/p>\n<p>In case the above code is already present in your wp-config.php file but is set to \u201cfalse,\u201d just change it to \u201ctrue.\u201d With this, the debug mode will get enabled.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> If warnings or error are present in your WordPress admin, you will see them.<\/p>\n<\/div>\n<\/div>\n<p>Then enable the debug log so that all errors are sent to a file by adding the below code immediately after the WP_DEBUG line:<\/p>\n<pre class=\"lang:default decode:true \">define( 'WP_DEBUG_LOG', true );<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9342\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/WP_DEBUG_LOG-min-1024x379.png\" alt=\"\" width=\"1024\" height=\"379\" \/><\/p>\n<p>Save the changes and re-upload this to your server. Due to this, the errors will get logged to the debug.log file within your \/wp-content\/ folder. In case you don\u2019t see this file for some reason, you can always create one.<\/p>\n<p>In this way, you have learned to view access and WordPress error logs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Logs can help you when you troubleshoot and debug issues on your WordPress sites. Checking your access and WordPress error logs is very simple. Just follow this tutorial. Ways to View Access and WordPress Error Logs There are few different ways to view your access and WordPress error logs as below: View Raw Access and [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[1379,78,1378],"class_list":["post-7400","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-wordpress-faq","tag-access-view-and-wordpress-error-logs","tag-wordpress-2","tag-wordpress-error-logs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ways to View Access and WordPress Error Logs<\/title>\n<meta name=\"description\" content=\"Logs can help you when you troubleshoot and debug issues on your WordPress sites. You can check your WordPress error logs easily by following this tutorial.\" \/>\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.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ways to View Access and WordPress Error Logs\" \/>\n<meta property=\"og:description\" content=\"Logs can help you when you troubleshoot and debug issues on your WordPress sites. You can check your WordPress error logs easily by following this tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-15T11:53:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-07T09:25:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/wordpress-error-logs-folder-sftp-min-1024x375.png\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/\",\"name\":\"Ways to View Access and WordPress Error Logs\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/wordpress-error-logs-folder-sftp-min-1024x375.png\",\"datePublished\":\"2020-04-15T11:53:28+00:00\",\"dateModified\":\"2021-07-07T09:25:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"Logs can help you when you troubleshoot and debug issues on your WordPress sites. You can check your WordPress error logs easily by following this tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/file-manager-new-min.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/file-manager-new-min.jpg\",\"width\":403,\"height\":173},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ways to View Access and WordPress Error Logs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ways to View Access and WordPress Error Logs","description":"Logs can help you when you troubleshoot and debug issues on your WordPress sites. You can check your WordPress error logs easily by following this tutorial.","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.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/","og_locale":"en_GB","og_type":"article","og_title":"Ways to View Access and WordPress Error Logs","og_description":"Logs can help you when you troubleshoot and debug issues on your WordPress sites. You can check your WordPress error logs easily by following this tutorial.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-04-15T11:53:28+00:00","article_modified_time":"2021-07-07T09:25:42+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/wordpress-error-logs-folder-sftp-min-1024x375.png","type":"","width":"","height":""}],"author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/","name":"Ways to View Access and WordPress Error Logs","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/04\/wordpress-error-logs-folder-sftp-min-1024x375.png","datePublished":"2020-04-15T11:53:28+00:00","dateModified":"2021-07-07T09:25:42+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"Logs can help you when you troubleshoot and debug issues on your WordPress sites. You can check your WordPress error logs easily by following this tutorial.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/file-manager-new-min.jpg","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/file-manager-new-min.jpg","width":403,"height":173},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/view-access-and-wordpress-error-logs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Ways to View Access and WordPress Error Logs"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":567,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=7400"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7400\/revisions"}],"predecessor-version":[{"id":7409,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7400\/revisions\/7409"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=7400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=7400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=7400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}