Parse error: syntax error when activating
-
Another user posted this error a few months ago. There was no response so I am posting it again in hopes that someone can be of assistance.
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_STRING in /nfs/c03/h01/mnt/49292/domains/dev.specialparent.com/html/wp-content/plugins/buddypress-links/bp-links-core.php on line 601Here’s the code that begins at line 601 in bp-links-core.php
if ( $link instanceof BP_Links_Link ) {
$bp->links->current_link = $link;
do_action( ‘bp_links_link_details_edited’, $bp->links->current_link->id );
bp_core_add_message( __( ‘Link details were successfully updated.’, ‘buddypress-links’ ) );if ( $_POST == 1 ) {
bp_core_redirect( bp_get_link_permalink( $bp->links->current_link ) . ‘/admin/link-avatar’ );
} else {
bp_core_redirect( bp_get_link_permalink( $bp->links->current_link ) . ‘/admin/edit-details’ );
}} else {
bp_core_add_message( sprintf( ‘%s %s’, __( ‘There was an error updating link details.’, ‘buddypress-links’ ), __( ‘Please try again.’, ‘buddypress-links’ ) ), ‘error’ );
}
}
}
You must be logged in to reply to this topic.
Thanks in advance.