Title: Several bugs
Last modified: August 22, 2016

---

# Several bugs

 *  Resolved [jongleur1983](https://wordpress.org/support/users/jongleur1983/)
 * (@jongleur1983)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/several-bugs/)
 * 1st bug: frontend where a userphoto is included:
 * Notice: load_plugin_textdomain was called with an argument that is deprecated
   since version 2.7 with no alternative available. in wp-includes/functions.php
   on line 3195
 * fixed by replacing line 77 of user-photo.php:
 * was:
    load_plugin_textdomain(‘user-photo’, PLUGINDIR . ‘/user-photo/localization’);#(
   thanks Pakus)
 * changed to:
    load_plugin_textdomain(‘user-photo’, FALSE, dirname(plugin_basename(
   __FILE__)).’/localization/’); #(thanks Pakus)
 * 2nd bug, in backend, plugins page:
    Notice: has_cap wurde mit einem Parameter
   oder Argument aufgerufen, der seit Version 2.0 veraltet ist! Die Benutzung von
   user_level in Plugins und Themes ist veraltet. Nutze stattdessen das Abfragen
   von roles oder capabilities. in wp-includes/functions.php on line 3193
 * fix included:
    – in function userphoto_add_page replaced the user level 8 with‘
   edit_pages’ code now: add_options_page(‘User Photo’, ‘User Photo’, ‘edit_pages’,
   __FILE__, ‘userphoto_options_page’);
 * [https://wordpress.org/plugins/user-photo/](https://wordpress.org/plugins/user-photo/)

The topic ‘Several bugs’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-photo.svg)
 * [User Photo](https://wordpress.org/plugins/user-photo/)
 * [Support Threads](https://wordpress.org/support/plugin/user-photo/)
 * [Active Topics](https://wordpress.org/support/plugin/user-photo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-photo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-photo/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jongleur1983](https://wordpress.org/support/users/jongleur1983/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/several-bugs/)
 * Status: resolved