Viewing 1 replies (of 1 total)
  • Plugin Author caevan

    (@caevan)

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