This just started happening for me on the tx cloud:
This code in a snippet throws a server 500 error (works fine on other servers):
if (!function_exists("my_debug")) {
function my_debug($message, $clear = false) {
return $message;
}
}
This code doesn't:
if (!function_exists("mydebug")) {
function mydebug($message, $clear = false) {
return $message;
}
}
The code above is the entire code of the snippet (uncached). The page has a minimal template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>[[++site_name]] | [[*pagetitle]]</title>
<base href="[[++site_url]]" />
</head>
<body>
[[*content]]
</body>
</html>
Also, a minimal page content:
<p>Hello Tester</p>
[[!Test]]
[ed. note: BobRay last edited this post 11 years, 1 month ago.]