WP-Members: Membership Framework
[resolved] [Plugin: WP-Members] help - parse error (2 posts)

  1. kr2sn
    Posted 5 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.


  2. Chad Butler
    Plugin Author

    Posted 5 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

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic