I think I found a fix for this. But I'm not sure if this is a fix or a temporary workaround. In the find_available_addons() function in sources\addons2.php, I added an 'else' clause on the $info['copyright_attribution] check. I added to this block of code:
if (!empty($info['copyright_attribution'])) {
$info['copyright_attribution'] = explode("\n", $info['copyright_attribution']);
}
so it looks like this:
if (!empty($info['copyright_attribution'])) {
$info['copyright_attribution'] = explode("\n", $info['copyright_attribution']);
} else {
$info['copyright_attribution'] = array ();
}
I just ran into a similar stack trace when re-installing a previously installed addon and used the same fix in the inform_about_addon_install() function in sources\addons2.php.
I created a pull request for it, and a small cosmetic fix for the side_printer_friendly block.
if (!empty($info['copyright_attribution'])) {
$info['copyright_attribution'] = explode("\n", $info['copyright_attribution']);
}
so it looks like this:
if (!empty($info['copyright_attribution'])) {
$info['copyright_attribution'] = explode("\n", $info['copyright_attribution']);
} else {
$info['copyright_attribution'] = array ();
}
I just ran into a similar stack trace when re-installing a previously installed addon and used the same fix in the inform_about_addon_install() function in sources\addons2.php.
I created a pull request for it, and a small cosmetic fix for the side_printer_friendly block.