Title: Undefined property: stdClass::$create_posts
Last modified: August 20, 2016

---

# Undefined property: stdClass::$create_posts

 *  [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/undefined-property-stdclasscreate_posts/)
 * I was getting alot of:
 * > Notice: Undefined property: stdClass::$create_posts in /path/to/wp-content/
   > plugins/role-scoper/definitions_cr.php on line xxx
 * Seems $cap doesn’t have create_posts variable so in definitions_cr.php I changed:
 *     ```
       if ( $force_create_posts_cap )
       	$arr["rs_{$name}_author"][$cap->create_posts] = true;
       ```
   
 * to
 *     ```
       if ( $force_create_posts_cap )
       	if ( isset($cap->create_posts) )
       		$arr["rs_{$name}_author"][$cap->create_posts] = true;
       ```
   
 * on all the lines referencing create_posts. This was in WPMU network section of
   WP3.4.2 just after activating the plugin..
 * [http://wordpress.org/extend/plugins/role-scoper/](http://wordpress.org/extend/plugins/role-scoper/)

The topic ‘Undefined property: stdClass::$create_posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/role-scoper.svg)
 * [Role Scoper (Obsolete - Please install PublishPress Permissions)](https://wordpress.org/plugins/role-scoper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/role-scoper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/role-scoper/)
 * [Active Topics](https://wordpress.org/support/plugin/role-scoper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/role-scoper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/role-scoper/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/undefined-property-stdclasscreate_posts/)
 * Status: not resolved