Hi,
I know this doesn't belong here, I didn't want to open an account with the LDAP thing.
I used the extension on PHP 7.0, it broke my test site. The bug is due to a deprecated command being used in preg_replace. I just fixed it as it was easier than downgrading PHP.
On Widgets/WidgetRenderer.php, line 140, method processEncodedWidgetOutput, replace this:
$text = preg_replace(
'/ENCODED_CONTENT ' . self::$mRandomString . '([0-9a-zA-Z\/+]+=*)* END_ENCODED_CONTENT/esm',
'base64_decode("$1")',
$text
);
With this:
$text = preg_replace_callback(
'/ENCODED_CONTENT ' . self::$mRandomString . '([0-9a-zA-Z\/+]+=*)* END_ENCODED_CONTENT/sm',
function($matches) {
return base64_decode($matches[1]);
},
$text
);
The full method looks like this:
public static function processEncodedWidgetOutput( &$out, &$text ) {
// Find all hidden content and restore to normal
$text = preg_replace_callback(
'/ENCODED_CONTENT ' . self::$mRandomString . '([0-9a-zA-Z\/+]+=*)* END_ENCODED_CONTENT/sm',
function($matches) {
return base64_decode($matches[1]);
},
$text
);
return true;
}
I only tested this in my own environment.