Title: Registered Users Only Plugin
Last modified: August 18, 2016

---

# Registered Users Only Plugin

 *  Resolved [complexed](https://wordpress.org/support/users/complexed/)
 * (@complexed)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/)
 * I installed the plugin that Carthik Sharma made, and I get this error:
    “
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/16/d152387834/htdocs/wp-content/themes/k2betatwor163/header.php:
   6) in /homepages/16/d152387834/htdocs/wp-content/plugins/registered_only.php 
   on line 63
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/16/d152387834/htdocs/wp-content/themes/k2betatwor163/header.php:
   6) in /homepages/16/d152387834/htdocs/wp-content/plugins/registered_only.php 
   on line 64
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/16/d152387834/htdocs/wp-content/themes/k2betatwor163/header.php:
   6) in /homepages/16/d152387834/htdocs/wp-content/plugins/registered_only.php 
   on line 65
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/16/d152387834/htdocs/wp-content/themes/k2betatwor163/header.php:
   6) in /homepages/16/d152387834/htdocs/wp-content/plugins/registered_only.php 
   on line 66
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/16/d152387834/htdocs/wp-content/themes/k2betatwor163/header.php:
   6) in /homepages/16/d152387834/htdocs/wp-content/plugins/registered_only.php 
   on line 72
    “
 * Any ideas on how to fix it? I’m using WP2.0 and my site is [http://www.complexed.org](http://www.complexed.org)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329216)
 * [http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 * Check the plugin file for the issues brought up there.
 *  Thread Starter [complexed](https://wordpress.org/support/users/complexed/)
 * (@complexed)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329223)
 * Would it be the plug in file or my header.php ? It keeps saying line 6 on my 
   header.php and this is what it looks like:
 *  <title><?php wp_title(”); ?> <?php if ( !(is_404()) && (is_single()) or (is_page())
   or (is_archive()) ) { ?> at <?php } ?> <?php bloginfo(‘name’); ?></title>
 * And thats what line 6 of my header.php looks like… I have no idea what whitespaces
   I should be deleting in that.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329226)
 * *ahem*
 * “Check the plugin file for the issues brought up there.”
 * If you copy/pasted the plugin to a file, you would have (most likely) added lines
   to the top (before the `<?php`) and bottom (after `?>`) in the script.
 *  Thread Starter [complexed](https://wordpress.org/support/users/complexed/)
 * (@complexed)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329227)
 * Then there must be something else wrong :-\. There were no white areas and I 
   never copied/pasted it into a new file.
 *  Thread Starter [complexed](https://wordpress.org/support/users/complexed/)
 * (@complexed)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329230)
 * On another note:
    [http://www.complexed.org](http://www.complexed.org) I tried
   adding the “How many users online” thing… I get that error at the top “
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   ON DUPLICATE KEY UPDATE timestamp = ‘1138675944” at line 1]
    INSERT INTO wp_useronline
   VALUES (‘1138675943’, ‘Guest’, ‘70.68.14.120’, ”, ‘%2F’) ON DUPLICATE KEY UPDATE
   timestamp = ‘1138675944’ “
 * :(, not my dad in terms of adding plugins. Any ideas?
 *  Thread Starter [complexed](https://wordpress.org/support/users/complexed/)
 * (@complexed)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329376)
 * Ok scratch that above post.
    Just need help on how to get the registered users
   only plugin working
 *  Thread Starter [complexed](https://wordpress.org/support/users/complexed/)
 * (@complexed)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329428)
 * Ok, I downloaded and uploaded the .4 patch and now everytime I activate the plugin
   I can’t access my blog at all. “It says maximum requests exeeded” I have to go
   through FTP to delete the “registered users only” file before I can access my
   blog at all.
 *  Thread Starter [complexed](https://wordpress.org/support/users/complexed/)
 * (@complexed)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329430)
 * Wooohoo, I got it working :O.
    Thanks everyone!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Registered Users Only Plugin’ is closed to new replies.

 * 8 replies
 * 2 participants
 * Last reply from: [complexed](https://wordpress.org/support/users/complexed/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/registered-users-only-plugin/#post-329430)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
