Title: Errors everywhere
Last modified: August 22, 2016

---

# Errors everywhere

 *  Resolved [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/errors-everywhere-4/)
 * After plugin activation I see this errors all over the site:
    [http://screencast.com/t/COCQBWgCN8l](http://screencast.com/t/COCQBWgCN8l)
 * Using WordPress 4.0, BuddyPress 2.1, your plugin 1.6
 * [https://wordpress.org/plugins/buddypress-profile-views/](https://wordpress.org/plugins/buddypress-profile-views/)

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

 *  Plugin Author [chaladi](https://wordpress.org/support/users/chaladi/)
 * (@chaladi)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5356937)
 * The plugin is working fine. Let me know your URL. Or send details to [gopal@dhrusya.com](https://wordpress.org/support/topic/errors-everywhere-4/gopal@dhrusya.com?output_format=md).
   Will check the problem.
 * Thank you
 *  Thread Starter [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5356940)
 * If the plugin worked fine, there would not be that error in screenshot.
    Enable
   WP_Debug, and please escape everything you save into DB.
 * Using v1.8 of your plugin
 *  Plugin Author [chaladi](https://wordpress.org/support/users/chaladi/)
 * (@chaladi)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5357077)
 * Even with wp_debug true I didnt see any error. And the plugin is live on 7 of
   my customers without any problem. There must be a problem with your site configuration.
   Arrange a skype session to look into your problem.
 * My skype: gopalchaladi
 * Thank you
 *  [NicolaCirotto](https://wordpress.org/support/users/nicolacirotto/)
 * (@nicolacirotto)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5357087)
 * I have the same problem! All pages (backend and frontend) with this message on
   the top of pages:
 *     ```
       prefix . "bp_profilevisits"; $makecount=false; //echo "
       ".bp_displayed_user_id()." - ". bp_loggedin_user_id()."
       "; if($user_id!=0 and $user_id!= bp_loggedin_user_id()){ if(isset($_SESSION['profile_visit'])){ if(!in_array(bp_displayed_user_id(), $_SESSION['profile_visit'])){ $makecount=true; $_SESSION['profile_visit'][]=$user_id; } }else{ $makecount=true; $_SESSION['profile_visit']=array(); $_SESSION['profile_visit'][]=$user_id; } $sql="select views from $table_name where userid=$user_id"; $view_count = $wpdb->get_var( $sql); $view_count=$view_count?$view_count:0; if($makecount){ if($view_count<1){ $sqli="insert into ".$wpdb->prefix . "bp_profilevisits values(NULL, $user_id, 1)"; $wpdb->query( $sqli); $view_count=1; }else{ $view_count++; $sql="update $table_name set views=$view_count where userid=$user_id"; $wpdb->query($sql); } } } echo"
       Total Profile Visits: $view_count
       "; } ?>
       ```
   
 *  [NicolaCirotto](https://wordpress.org/support/users/nicolacirotto/)
 * (@nicolacirotto)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5357095)
 * I found the problem…
 * Open the file: buddypress-profile-views\includes\bp_views_core.php
 * in the first line the file start with: <?
    you need to change it to: <?php
 * Now all work fine
 *  [blackspiritofc](https://wordpress.org/support/users/blackspiritofc/)
 * (@blackspiritofc)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5357106)
 * Nice Plugin…just one issue…The profile views are displaying too low beneath the
   avatar..How to shift it up a bit..using CSS ?
 *  Plugin Author [chaladi](https://wordpress.org/support/users/chaladi/)
 * (@chaladi)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5357112)
 * Thanks Guys,
 * The issue is solved now.
 * [@blackspiritofc](https://wordpress.org/support/users/blackspiritofc/) I added
   a class(bp_profile_views) to the div. Just write css to fix your problem.
 * Thank you
 *  Thread Starter [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5357113)
 * Can you release new version too?

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

The topic ‘Errors everywhere’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-profile-views.svg)
 * [Buddypress Profile Views](https://wordpress.org/plugins/buddypress-profile-views/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-profile-views/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-profile-views/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-profile-views/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-profile-views/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-profile-views/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/errors-everywhere-4/#post-5357113)
 * Status: resolved