inside of ow_plugins/photo/init.php you have this function
function photo_hash_redirect()
{
$script = 'var lochash = document.location.hash.substr(1);
if ( lochash )
{
var photo_id = lochash.substr(lochash.indexOf("view-photo=")).split("&")[0].split("=")[1];
if ( photo_id )
{
document.location = '.json_encode(OW::getRouter()->urlForRoute('view_photo', array('id' => ''))).' + photo_id;
}
}';
OW::getDocument()->addScriptDeclarationBeforeIncludes($script);
}
which causes this issue
character "&" is the first character of a delimiter but occurred as data
which can be corrected by wrapping it in and open and close cdata like so
function photo_hash_redirect()
{
$script = '//<![CDATA[
var lochash = document.location.hash.substr(1);
if ( lochash )
{
var photo_id = lochash.substr(lochash.indexOf("view-photo=")).split("&")[0].split("=")[1];
if ( photo_id )
{
document.location = '.json_encode(OW::getRouter()->urlForRoute('view_photo', array('id' => ''))).' + photo_id;
}
}
//]]>';
OW::getDocument()->addScriptDeclarationBeforeIncludes($script);
}