Fatal Gallery Plug-in error Here's the error from Gallery2 Plug-in: Plug-in has not been Activated"; exit; } //Check if we're wrapping the WP Theme //Get Theme settings. $themes = get_themes(); $current_theme = get_current_theme(); $current_template_dir = $themes[$current_theme]['Template Dir']; $current_stylesheet_dir = $themes[$current_theme]['Stylesheet Dir']; // Log into G2 $ret = g2_login(); if ($ret) { $g2data = GalleryEmbed::handleRequest(); if ($g2data['isDone']) { exit; // G2 has already sent output (redirect or binary data) } // Should we Disable the Header output and instead allow the g2wpheader to control the Output? if ( $g2_option['g2_externalheader']=="Yes" ) include ($current_stylesheet_dir.'/wpg2header.php'); else { //Include the WP Header get_header(); //Include any plug-in header content set in the plugin options echo stripslashes($g2_option['g2_header']); } // Display G2 Output echo $g2data['headHtml']; //Include the gallery header echo $g2data['bodyHtml']; //Display the gallery content //Close Gallery Connection GalleryEmbed::done(); // Should we Disable the Header output and instead allow the g2wpheader to control the Output? if ($g2_option['g2_externalfooter']=="Yes" ) { include ($current_stylesheet_dir.'/wpg2footer.php'); } else { //Include plug-in footer content echo stripslashes($g2_option['g2_footer']); //Include WP footer get_footer(); } } ?>