Title: Problems with the plugin
Last modified: August 21, 2016

---

# Problems with the plugin

 *  [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * (@khromov)
 * [12 years ago](https://wordpress.org/support/topic/problems-with-the-plugin-1/)
 * You have a logic error in round_social_media_buttons.php at line 41.
 *     ```
       if (current_user_can( 'mange_options' )) {
       	wp_die( 'You do not have suffiecient permissions to view the page.');
       }
       ```
   
 * But there is a typo in the capability and the logic is inverted, so it doesn’t
   actually check the permissions as you intend.
 * What you really want to do is:
 *     ```
       if (!current_user_can( 'manage_options' )) {
       	wp_die( 'You do not have suffiecient permissions to view the page.');
       }
       ```
   
 * That makes only admins able to change the options.
 * Second issue is that you forgot to initialize $hidden_field in settings_page_wrapper
   which results in the text fields being populated with this on the first admin
   page view:
 *     ```
       Notice: Undefined variable: hidden_field in /var/www/site/trunk/wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 29
       ```
   
 * Lastly, when inserting the widget, again an undefined notice appears:
 *     ```
       Notice: Undefined index: title in /var/www/html/site/trunk/wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php on line 144
       ```
   
 * You should enable WP_DEBUG and fix these errors. I do quite like the plugin though,
   so good luck. 🙂
 * [https://wordpress.org/plugins/round-social-media-buttons/](https://wordpress.org/plugins/round-social-media-buttons/)

The topic ‘Problems with the plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/round-social-media-buttons.svg)
 * [Round Social Media Buttons](https://wordpress.org/plugins/round-social-media-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/round-social-media-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/round-social-media-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/round-social-media-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/round-social-media-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/round-social-media-buttons/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/problems-with-the-plugin-1/)
 * Status: not resolved