{"id":1131,"date":"2022-01-28T03:41:36","date_gmt":"2022-01-28T09:41:36","guid":{"rendered":"http:\/\/www.schwie.com\/brad\/?p=1131"},"modified":"2022-01-28T15:12:55","modified_gmt":"2022-01-28T21:12:55","slug":"abspath-and-wordpress","status":"publish","type":"post","link":"https:\/\/www.schwie.com\/brad\/?p=1131","title":{"rendered":"ABSPATH and WordPress"},"content":{"rendered":"<p>My blog was displaying a funky error message at the top of every page:<\/p>\n<p><code>ABSPATH already defined in \/Library\/WebServer\/Documents\/Default\/wp-config.php on line 25<\/code><\/p>\n<p>After looking at line 25:<\/p>\n<p><code>define('ABSPATH', dirname(__FILE__).'\/');<\/code><\/p>\n<p>I added one line above it:<\/p>\n<p><code>if ( !defined('ABSPATH') )<\/code><\/p>\n<p>And now the funky error message is gone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My blog was displaying a funky error message at the top of every page: ABSPATH already defined in \/Library\/WebServer\/Documents\/Default\/wp-config.php on line 25 After looking at line 25: define(&#8216;ABSPATH&#8217;, dirname(__FILE__).&#8217;\/&#8217;); I added one line above it: if ( !defined(&#8216;ABSPATH&#8217;) ) And &hellip; <a href=\"https:\/\/www.schwie.com\/brad\/?p=1131\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1131","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1131"}],"version-history":[{"count":4,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1131\/revisions"}],"predecessor-version":[{"id":1135,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1131\/revisions\/1135"}],"wp:attachment":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}