WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] help - parse error (2 posts)

  1. kr2sn
    Member
    Posted 3 years ago #

    I just uploaded and activated the wp-members plugin. The quick start is great and I think this is going to add the functionality that I need. I am a beginning wp user. The following error is on every page. 'Parse error: syntax error, unexpected '>' in /home/.../wp-content/themes/twentyten/comments.php on line 2'
    I don't know how to fix this.

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 3 years ago #

    Make sure that this code is at the absolute very top of the page:

    <?php if (!is_user_logged_in() && !get_post_custom_values('unblock')) { $post->post_password = wpmem_generatePassword(); } ?>

    In the error you posted, I see you are using the twentyten theme. The error you are getting would occur if you put this code snippet after the first "<?php". Make sure it is before that.

    Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags