I'm getting this same error.
Here is the source of a test page:
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
?>
<?php require_once( "webassist/security_assist/helper_php.php" ); ?>
<!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>Untitled Document</title>
</head>
<body>
<p>some stuff </p>
<p><br />
<?php if(WA_Auth_RulePasses("UserLoggedIn")){ // Begin Show Region ?>
some other stuff
<?php } // End Show Region ?>
</p>
</body>
</html>
Error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in E:\Websites\cmhi.org\htdocs\webassist\security_assist\helpergroupsrulesphp.php on line 34