WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress BP Gallery Plus
Parse error: (2 posts)

  1. jeremyBass
    Member
    Posted 1 year ago #

    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/

  2. caevan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi
    I have run a syntax check on the current albumcomments.php (v1.2.5) using 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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags