Title: [an error occurred while processing this directive]
Last modified: August 20, 2016

---

# [an error occurred while processing this directive]

 *  [Christopher656](https://wordpress.org/support/users/christopher656/)
 * (@christopher656)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/an-error-occurred-while-processing-this-directive-4/)
 * Hello all! So I have been tinkering with a feedback plugin designed by [@justbishop](https://wordpress.org/support/users/justbishop/)(
   as described here: [http://wordpress.org/support/topic/any-plugin-similar-to-ebays-user-feedback-member-rating-feedback?replies=2](http://wordpress.org/support/topic/any-plugin-similar-to-ebays-user-feedback-member-rating-feedback?replies=2)).
   It works well but i need to set a conditional that causes it to only create a
   feedback page for members with an s2member level 1.
 * I changed:
 *     ```
       add_action ( 'user_register', 'create_feedback_page' );
   
       function create_feedback_page($user_id){
   
       $user_info = get_userdata($user_id);
       ```
   
 * **and i changed that to:**
 *     ```
       add_action ( 'user_register', 'create_feedback_page' );
   
       function create_feedback_page(){
   
       	if (!current_user_can('access_s2member_level1')) 
   
              create_feedback_page($user_id);
   
       		$user_info = get_userdata($user_id); }
       ```
   
 * It worked at first but then I tested it a second time and upon clicking on the
   registration confirmation email i got the message “[an error occurred while processing
   this directive]” and when that page is refreshed it leads me to a page that asks
   for a valid activation code. I know it has to do with the changes I made to this
   plugin because when I reverse it all goes well. Any ideas on how to remedy this?
   ANY input would be GREATLY appreciated!

The topic ‘[an error occurred while processing this directive]’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Christopher656](https://wordpress.org/support/users/christopher656/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/an-error-occurred-while-processing-this-directive-4/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
