Title: Parse error:
Last modified: August 20, 2016

---

# Parse error:

 *  [jeremyBass](https://wordpress.org/support/users/jeremybass/)
 * (@jeremybass)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-158/)
 * In the last few versions I’v had to make a few edits to make this work fully.
 * Parse error: syntax error, unexpected ‘}’ in /var/www/html/blog/wp-content/plugins/
   bp-gallery/includes/templates/album/albumcomments.php on line 76
 * The fix is just to make
 * <?php } endif; ?>
 * to
 * <?php endif; ?>
 * [http://wordpress.org/extend/plugins/bp-gallery/](http://wordpress.org/extend/plugins/bp-gallery/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [caevan](https://wordpress.org/support/users/caevan/)
 * (@caevan)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-158/#post-3375188)
 * Hi
    I have run a syntax check on the current albumcomments.php (v1.2.5) using
   [http://www.piliapp.com/php-syntax-check/](http://www.piliapp.com/php-syntax-check/)
   and I get no errors if I remove the } as you have said I get a syntax error.
 *     ```
       <?php else : ?>
   
       	<? if(bp_is_my_profile() && bp_gallplus_comments_enabled()) { ?>
   
       		<div id="message" class="info">
   
       			<p><?php echo sprintf(__( 'Comments are disabled for this album. %sEdit the album %s to enable them.', 'bp-galleries-plus' ),'<a href="'.bp_gallplus_get_album_edit_url().'">','</a>'); ?></p>
   
       		</div>
   
       	<!-- /div -->
   
       <?php } endif; ?>
       ```
   
 * The closing } is required for the { after the if statement. Is it possible for
   you to send me the version you have to compare?

Viewing 1 replies (of 1 total)

The topic ‘Parse error:’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-gallery.svg)
 * [BuddyPress BP Gallery Plus](https://wordpress.org/plugins/bp-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [caevan](https://wordpress.org/support/users/caevan/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/parse-error-158/#post-3375188)
 * Status: not resolved