Okay, in lib/core.php where the error is made, which I found, I altered the error to give debug information. I replaced the render function with:
function render($template_name, $vars = array ()) {
foreach ($vars AS $key => $val) {
$$key = $val;
}
if (file_exists (TEMPLATEPATH . “/nggallery/$template_name.php”)) {
include (TEMPLATEPATH . “/nggallery/$template_name.php”);
} else if (file_exists (NGGALLERY_ABSPATH . “/view/$template_name.php”)) {
include (NGGALLERY_ABSPATH . “/view/$template_name.php”);
} else {
echo “<p>Rendering of template $template_name.php failed</p>
DEBUG INFOMATION:
TEMPLATEPATH: ” . TEMPLATEPATH . “
NGGALLERY_ABSPATH: ” . NGGALLERY_ABSPATH . “
template_name: “. $template_name;
}
}
Now I get:
DEBUG INFOMATION:
TEMPLATEPATH: /home/users/web/b2863/d5.godofgod/public_html/frd/wordpress/wp-content/themes/fluid-blue-10
NGGALLERY_ABSPATH: /home/users/web/b2863/d5.godofgod/public_html/frd/wordpress/wp-content/plugins//hermes/bosweb/web286/b2863/d5.godofgod/public_html/frd/wordpress/wp-content/plugins/nextgen-gallery/
template_name: gallery
So the NGGALLERY_ABSPATH is completely, bizarrely wrong. Where is that constant defined so I can fix it?
I recommend others try replacing the function and see what they get.