Parse error: syntax error, unexpected T_FUNCTION …
-
I tried to update my plugins today to the newest version. Word press updated automatically and my pictures were not showing up on my pages. I am hosted on GO Daddy and have figured out how to get to the file in order to fix it, but I am not a programmer and have no idea what is wrong with the syntax. I copied the whole function, but the error is for the line preceeded by ****. It is the add action before the else.
Is it missing a ; somewhere? I ran it through two checkers I found online and they came back with no error found..?
I can’t get into my webpage. Any thoughts would be appreciated.function start_plugin() {
// Content Filters
add_filter(‘flag_gallery_name’, ‘sanitize_title’);// Load the admin panel or the frontend functions
if ( is_admin() ) {// Pass the init check or show a message
if (get_option( “flag_init_check” ) != false )
***** add_action( ‘admin_notices’, function(){ echo ‘<div id=”message” class=”error”><p>‘ . get_option( “flag_init_check” ) . ‘</p></div>’; } );} else {
// Add MRSS to wp_head
if ( $this->options[‘useMediaRSS’] )
add_action(‘wp_head’, array(‘flagMediaRss’, ‘add_mrss_alternate_link’));// Add the script and style files
add_action(‘wp_print_scripts’, array(&$this, ‘load_scripts’) );
add_action( ‘flag_footer_scripts’, array( &$this, ‘load_scripts’ ) );// Add a version number to the header
add_action(‘wp_head’, function(){ global $flag; echo “\n<!– <meta name=’Grand Flagallery’ content='{$flag->version}’ /> –>\n”; } );}
}The page I need help with: [log in to see the link]
The topic ‘Parse error: syntax error, unexpected T_FUNCTION …’ is closed to new replies.