Title: Problematic plugin
Last modified: August 21, 2016

---

# Problematic plugin

 *  [SemiBur](https://wordpress.org/support/users/semibur/)
 * (@semibur)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problematic-plugin/)
 * It stopped showing the custom post type, created in it (visible in the plugin
   settings, but not in the admin panel). When you deactivate it, it hides the Products
   tab of woocommerce plugin….
 * [https://wordpress.org/plugins/simple-content-construction-kit/](https://wordpress.org/plugins/simple-content-construction-kit/)

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

 *  Thread Starter [SemiBur](https://wordpress.org/support/users/semibur/)
 * (@semibur)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problematic-plugin/#post-5069655)
 * Notice: Undefined index: post_type in /wp-content/plugins/simple-content-construction-
   kit/wp-simple-cck.php on line 132
    Notice: Undefined index: post_type in /wp-
   content/plugins/simple-content-construction-kit/wp-simple-cck.php on line 134
   Notice: Undefined variable: post in /wp-content/plugins/simple-content-construction-
   kit/wp-simple-cck.php on line 137 Notice: Trying to get property of non-object
   in /wp-content/plugins/simple-content-construction-kit/wp-simple-cck.php on line
   141 Notice: Trying to get property of non-object in /wp-content/plugins/simple-
   content-construction-kit/wp-simple-cck.php on line 142
 *  Thread Starter [SemiBur](https://wordpress.org/support/users/semibur/)
 * (@semibur)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problematic-plugin/#post-5069662)
 * This is the code:
 *     ```
       function parent_menu_header() {
          global $wp_query,$wpdb;
          $post_type = $wp_query->query_vars['post_type'];
         	if(!$post_type) {
         		$post_type = $_REQUEST['post_type'];
         	}
         	if(!$post_type) {
         		$post_type =get_post_type( $post ) 	;
         	}
   
          $row = $wpdb->get_row("select * from ".$wpdb->prefix."scck_content_type where  	product_machine_name = '$post_type'");
         	$lbl = $row->menu_label;
          $row_menu_id = $row->menu_id;
         	$id = "toplevel_page_cck-main-".$row_menu_id;
         	if($post_type) {
   
         ?>
       ```
   

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

The topic ‘Problematic plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-content-construction-kit_f0f0f0.
   svg)
 * [Simple Custom post type custom field](https://wordpress.org/plugins/simple-content-construction-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-content-construction-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-content-construction-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-content-construction-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-content-construction-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-content-construction-kit/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [SemiBur](https://wordpress.org/support/users/semibur/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/problematic-plugin/#post-5069662)
 * Status: not resolved