Error when using do_action( ’bp_album_featured_sitewide’ ); [RESOLVED]
-
Hello
I’m getting error when I’m trying to use this action. (bp_album_2010-06-26)
I’d like to show random pictures on a wordpress page or wherever on the site, but I always get the same error:Warning: include(/home/myname/public_html/wp-content/plugins/bp_album_2010-06-26/includes../templates/album/content-sitewide.php) [function.include]: failed to open stream: No such file or directory in /home/myname/public_html/wp-content/plugins/bp_album_2010-06-26/includes/bp-album-core.php on line 951
Warning: include() [function.include]: Failed opening ‘/home/myname/public_html/wp-content/plugins/bp_album_2010-06-26/includes../templates/album/content-sitewide.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/myname/public_html/wp-content/plugins/bp_album_2010-06-26/includes/bp-album-core.php on line 951
This is in ‘bp-album-core.php’ from line 943 to 951:
function bp_album_load_subtemplate( $template_name ) {
if ( file_exists(STYLESHEETPATH . ‘/’ . $template_name . ‘.php’)) {
$located = STYLESHEETPATH . ‘/’ . $template_name . ‘.php’;
} else if ( file_exists(TEMPLATEPATH . ‘/’ . $template_name . ‘.php’) ) {
$located = TEMPLATEPATH . ‘/’ . $template_name . ‘.php’;
} else{
$located = dirname( __FILE__ ) . ‘../templates/’ . $template_name . ‘.php’;
}
include ($located);
}
Any hint could be helpful.
Thank you.p.s: Anyway, the plugin is awesome, keep up the good work!
You must be logged in to reply to this topic.