{"id":18768710,"date":"2025-12-27T23:21:24","date_gmt":"2025-12-27T23:21:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-enable-error\/"},"modified":"2026-01-31T20:39:05","modified_gmt":"2026-01-31T20:39:05","slug":"php-enable-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-enable-error\/","title":{"rendered":"PHP enable error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">On the homepage of <em>[ redundant link deleted ]<\/em>, PHP code has been embedded for years, but recently its execution stopped working on its own.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example: I created the shortcode [the_ad id=&#8221;2740&#8243;] with the following content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\necho \"Hello World\";\n?&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I enabled the \u201cPHP enable\u201d option.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I inserted the above shortcode on the homepage.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Result: In the page source, the full PHP code is displayed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\necho \"Hello World\";\n?&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">But nothing from the above code appears on the homepage itself. (However, if I save plain \u201ctext\u201d content, it does appear.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the page source view, the PHP code is shown with both opening and closing tags, but it is not rendered on the website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What could be the cause of this error? It worked fine for years.<\/p>\n","protected":false},"template":"","class_list":["post-18768710","topic","type-topic","status-publish","hentry","topic-tag-php","topic-tag-php-error"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18768710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18768710\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18768710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}