{"id":49,"date":"2009-06-15T09:42:22","date_gmt":"2009-06-15T08:42:22","guid":{"rendered":"http:\/\/www.wickham.uk\/blog\/?p=49"},"modified":"2009-07-20T11:05:23","modified_gmt":"2009-07-20T10:05:23","slug":"warning-compilation-failed-error","status":"publish","type":"post","link":"https:\/\/www.wickham.uk\/blog\/2009\/06\/warning-compilation-failed-error\/","title":{"rendered":"Warning: Compilation failed error"},"content":{"rendered":"<p>Are you suffering from:<\/p>\n<p>Warning: Compilation failed: characters with values &gt; 255 are not yet supported in classes at offset 16 in \/path\/to\/website\/blog\/wp-includes\/shortcodes.php on line xxx.<\/p>\n<p>Fix it by changing a line\u00a0 in \/wp-includes\/shortcodes.php. Look for the section headed &#8220;function shortcode_parse_atts($text)&#8221; and change the preg_replace line with<\/p>\n<pre>$text = preg_replace(\"\/[\\x{00a0}\\x{ff}]+\/u\", \" \", $text);<\/pre>\n<p>This maintains the functionality but only includes the supported characters.<\/p>\n<p>This error occurs when using a version of PHP with an outdated PCRE library.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you suffering from: Warning: Compilation failed: characters with values &gt; 255 are not yet supported in classes at offset 16 in \/path\/to\/website\/blog\/wp-includes\/shortcodes.php on line xxx. Fix it by changing a line\u00a0 in \/wp-includes\/shortcodes.php. Look for the section headed &#8220;function shortcode_parse_atts($text)&#8221; and change the preg_replace line with $text = preg_replace(&#8220;\/[\\x{00a0}\\x{ff}]+\/u&#8221;, &#8221; &#8220;, $text); This maintains &hellip; <a href=\"https:\/\/www.wickham.uk\/blog\/2009\/06\/warning-compilation-failed-error\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Warning: Compilation failed error&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[15],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-techno-wibble","tag-wordpress-error"],"_links":{"self":[{"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":0,"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wickham.uk\/blog\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}