Fatal error: Call to undefined method WP_User::exists()
-
I’m trying to add membership features to an older site. Because it states in the wordpress.org s2Member plugin page that it ‘Requires: 3.3 or higher’, I upgraded the site from WP 3.2.1 to 3.3. That went without a hitch, but then, when I tried to add a user in the admin, I got this error message:
Fatal error: Call to undefined method WP_User::exists() in /home/domain_name/public_html/wp-content/plugins/s2member/includes/classes/access-cap-times.inc.php on line 61
I looked up WP_User in the codex, and it shows that the
exists()
method exists since WP 3.4. Here’s the codex article: http://codex.wordpress.org/Class_Reference/WP_User#exists.28.29So now I have to upgrade the site to WP 3.4 perhaps. But before I do that, I want to be sure that WP 3.4 will be enough. Can a developer confirm that WP 3.4 will work, or does it have to be a more recent WP version?
I know I can remove all doubt by upgrading to WP 3.9.1, but I cannot do that because it’s likely to break the theme.
thanks
- The topic ‘Fatal error: Call to undefined method WP_User::exists()’ is closed to new replies.