Answers.Body: <p>A few possibilities:</p>
  
  <p>You may have an old version of the file <strong>customised</strong>. Check in your custom PHP folder, or do a find on the name of the file that contains CRM_Utils_System::isUserLoggedIn to see if this is a possibility. You may need to update it to match the newer version of the file, while keeping your change (a consultant will happily help you here if it gets tricky - either myself john@civifirst.com or a partner organisation <a href="https://civicrm.org/partners-contributors" rel="nofollow">https://civicrm.org/partners-contributors</a>).</p>
  
  <p>Alternatively, are your resources and URLs <strong>set correctly</strong> in your administer tab?</p>
  
  <p>Failing all of those, double check the site's URL in your <strong>civicrm.settings.php</strong> file.</p>
  
  <p>Good luck!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-13T00:55:29.453Z
Answers.LastActivityDate: 2016-03-13T00:55:29.453Z
Answers.UserDisplayName: JohnFF
Answers.Body: <p>Does the method CRM_Utils_System::isUserLoggedIn() exist in the files? i.e. CRM/Utils/System.php have a method isUserLoggedIn()? Seems more like a code issue than a data issue.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-08T08:38:41.573Z
Answers.Text: Yes it does. In CRM > Utils > System there's a Base class and then custom classes for the different environments, e.g. WordPress.php. So I did wonder if somehow it couldn't work out it was a WordPress system and therefore not loading the right file. But I've no idea why that might suddenly start happening when it was working OK before.
Answers.UserDisplayName: DenisH
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-08T04:02:47.643Z
Answers.LastActivityDate: 2016-02-08T04:02:47.643Z
Answers.UserDisplayName: Adam
Body: <p>I've just upgraded from 4.5.2 to 4.7.1 and everything seemed to be working OK. I was able to use the system fine for an hour or so.</p>
  
  <p>Then I was trying to re-assign some transactions from one user to another using PHPMyAdmin (by changing the contact id--I've done this before without problems) and suddenly I get a 500 Server error and nothing works.</p>
  
  <p>Looking in the logs I find:</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method
    CRM_Utils_System::isUserLoggedIn() in
    /var/www/vhosts//httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFMatch.php on line 98</p>
  </blockquote>
  
  <p>I also can see some references to:</p>
  
  <blockquote>
    <p>Call to undefined method CRM_Utils_System::getUFLocale()</p>
  </blockquote>
  
  <p>I can't see how a change in data can have caused this??</p>
  
  <p>I re-imported the db (back to the 4.5.2 version) but I still can't access anything--I can't even run the upgrade script.</p>
  
  <p>I put a clean install of the 4.7.1 plugin code and that's not fixed it either.</p>
  
  <p>I'm stuck, it works fine on the test system but is totally broken on my live system now.</p>
  
  <p>Thanks</p>
  
  <p><strong>Update 9th Feb:</strong> </p>
  
  <p>I'm running:
  PHP Version 5.3.25
  MySQL Version: 5.5.32
  Unfortunately because it's a shared hosted system, I'm not sure I can get the version of PHP updated.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-08T05:50:30.440Z
Comments.Text: I'm looking on my phone so might be wrong, but what i see is that https://github.com/civicrm/civicrm-core/blob/master/CRM/Utils/System.php doesn't have CRM_Utils_System::isUserLoggedIn() but https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/BAO/UFMatch.php calls it several times. If that's right, this looks like an issue worth reporting.
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-08T11:51:43.550Z
Comments.Text: May be entirely unrelated, but David Christie had to set up a settings_location.php to get WP working with 4.7.1: http://civicrm.stackexchange.com/questions/9361/problem-with-upgrade-to-4-7-0-wordpress-4-4-2
Comments.UserDisplayName: Andrew West
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-08T20:24:41.437Z
Comments.Text: Seems like the change in [091db90](https://github.com/civicrm/civicrm-core/commit/091db9085e779dc6b50f1644c721846437b6c844) has moved these methods to being called via [`__callStatic`](http://php.net/manual/en/language.oop5.magic.php). For some reason this isn't happening on your site. Could you update your question and tell us what PHP version you're using?
Comments.UserDisplayName: Chris Burgess
Tags: <wordpress><upgrade><error>
Title: Error after upgrade to 4.7.1 "Call to undefined method CRM_Utils_System::isUserLoggedIn" (WordPress)
ThreadText: # Error after upgrade to 4.7.1 "Call to undefined method CRM_Utils_System::isUserLoggedIn" (WordPress)
  
  (Asked by: username_0 on 2016-02-07)
  
  I've just upgraded from 4.5.2 to 4.7.1 and everything seemed to be working OK. I was able to use the system fine for an hour or so.
  
  Then I was trying to re-assign some transactions from one user to another using PHPMyAdmin (by changing the contact id--I've done this before without problems) and suddenly I get a 500 Server error and nothing works.
  
  Looking in the logs I find:
  
  > Fatal error: Call to undefined method
  > CRM\_Utils\_System::isUserLoggedIn() in
  > /var/www/vhosts//httpdocs/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFMatch.php on line 98
  
  I also can see some references to:
  
  > Call to undefined method CRM\_Utils\_System::getUFLocale()
  
  I can't see how a change in data can have caused this??
  
  I re-imported the db (back to the 4.5.2 version) but I still can't access anything--I can't even run the upgrade script.
  
  I put a clean install of the 4.7.1 plugin code and that's not fixed it either.
  
  I'm stuck, it works fine on the test system but is totally broken on my live system now.
  
  Thanks
  
  **Update 9th Feb:**
  
  I'm running:
  PHP Version 5.3.25
  MySQL Version: 5.5.32
  Unfortunately because it's a shared hosted system, I'm not sure I can get the version of PHP updated.
  
  **Tags:** wordpress, upgrade, error
  
  > **Comments:**
  > **username_1**: I'm looking on my phone so might be wrong, but what i see is that https://github.com/civicrm/civicrm-core/blob/master/CRM/Utils/System.php doesn't have CRM_Utils_System::isUserLoggedIn() but https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/BAO/UFMatch.php calls it several times. If that's right, this looks like an issue worth reporting.  
  > **username_2**: May be entirely unrelated, but David Christie had to set up a settings_location.php to get WP working with 4.7.1: http://civicrm.stackexchange.com/questions/9361/problem-with-upgrade-to-4-7-0-wordpress-4-4-2  
  > **username_1**: Seems like the change in [091db90](https://github.com/civicrm/civicrm-core/commit/091db9085e779dc6b50f1644c721846437b6c844) has moved these methods to being called via [`__callStatic`](http://php.net/manual/en/language.oop5.magic.php). For some reason this isn't happening on your site. Could you update your question and tell us what PHP version you're using?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2016-03-13. Score: 1
  
  A few possibilities:
  
  You may have an old version of the file **customised**. Check in your custom PHP folder, or do a find on the name of the file that contains CRM\_Utils\_System::isUserLoggedIn to see if this is a possibility. You may need to update it to match the newer version of the file, while keeping your change (a consultant will happily help you here if it gets tricky - either myself john@civifirst.com or a partner organisation <https://civicrm.org/partners-contributors>).
  
  Alternatively, are your resources and URLs **set correctly** in your administer tab?
  
  Failing all of those, double check the site's URL in your **civicrm.settings.php** file.
  
  Good luck!
  
  
  ---
  
  ### Answer by username_4 on 2016-02-08. Score: 0
  
  Does the method CRM\_Utils\_System::isUserLoggedIn() exist in the files? i.e. CRM/Utils/System.php have a method isUserLoggedIn()? Seems more like a code issue than a data issue.
  
  > **Comments:**
  > **username_0**: Yes it does. In CRM > Utils > System there's a Base class and then custom classes for the different environments, e.g. WordPress.php. So I did wonder if somehow it couldn't work out it was a WordPress system and therefore not loading the right file. But I've no idea why that might suddenly start happening when it was working OK before.  
  
  ---
  
  