Answers.Body: <p>My coworker finally found copies of both PriceSet.php and PriceField.php in the customPHP folder from an old customization. Once the new method was added to both files the page began to work normally again.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-08T03:40:54.283Z
Answers.LastActivityDate: 2017-12-08T03:40:54.283Z
Answers.UserDisplayName: Survifit
Answers.Body: <p>That method IS present in 4.7.27 - <a href="https://github.com/civicrm/civicrm-core/blob/4.7.27/CRM/Price/BAO/PriceField.php#L892" rel="nofollow noreferrer">it's at line 892</a>.</p>
  
  <p>If it's not present for you, then either:</p>
  
  <ul>
  <li>There's something squirrelly in your upgrade process - perhaps some file wasn't actually replaced;</li>
  <li>You've got some extension or PHP override that's overriding the file in question.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-05T22:00:00.963Z
Answers.Text: You're right, it is there, I was looking at the core documentation on doc.symbiotic.coop based on a google search. The files on github and my server both have the method. Still not sure why it's working for logged in admins but not public site visitors.
Answers.UserDisplayName: Survifit
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-05T22:24:46.713Z
Answers.Text: That means it's likely an extension/override causing this.  Please check your [ConfigAndLog log](https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories) and edit your question to include the backtrace, and we can identify the source of the issue.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-05T21:50:44.253Z
Answers.LastActivityDate: 2017-12-05T21:50:44.253Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>After upgrading to CiviCRM 4.7.27 on WordPress 4.9.1 the civi contribute pages for donations are only rendering for users who are logged into the WordPress backend. Enabling PHP error reporting gives this error: Fatal error: Call to undefined method CRM_Price_BAO_PriceField::getVisibilityOptionID() in /var/www/wp-content/plugins/civicrm/civicrm/CRM/Price/BAO/PriceSet.php on line 1062.</p>
  
  <p>Any suggestions for resolution? I checked the documentation for CRM_Price_BAO_PriceField and could not find the referenced method (edit: I was able to find the method in the github files and on my server (PriceSet.php and PriceField.php), it just doesn't appear on the doc.symbiotic.coop core file information pages)</p>
  
  <p>The current error doesn't seem to be generating a backtrace, you can go to www.parksandtrails.org and click on the 'Donate Now' or 'Join or Renew Now' links to see the error as listed above, but no backtrace when that happens. </p>
  
Tags: <upgrade><4.7>
Title: CiviCRM 4.7.27 upgrade undefined method CRM_Price_BAO_PriceField::getVisibilityOptionID()
ThreadText: # CiviCRM 4.7.27 upgrade undefined method CRM_Price_BAO_PriceField::getVisibilityOptionID()
  
  (Asked by: username_0 on 2017-12-05)
  
  After upgrading to CiviCRM 4.7.27 on WordPress 4.9.1 the civi contribute pages for donations are only rendering for users who are logged into the WordPress backend. Enabling PHP error reporting gives this error: Fatal error: Call to undefined method CRM\_Price\_BAO\_PriceField::getVisibilityOptionID() in /var/www/wp-content/plugins/civicrm/civicrm/CRM/Price/BAO/PriceSet.php on line 1062.
  
  Any suggestions for resolution? I checked the documentation for CRM\_Price\_BAO\_PriceField and could not find the referenced method (edit: I was able to find the method in the github files and on my server (PriceSet.php and PriceField.php), it just doesn't appear on the doc.symbiotic.coop core file information pages)
  
  The current error doesn't seem to be generating a backtrace, you can go to www.parksandtrails.org and click on the 'Donate Now' or 'Join or Renew Now' links to see the error as listed above, but no backtrace when that happens.
  
  **Tags:** upgrade, 4.7
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-12-08. Score: 0 | Accepted answer
  
  My coworker finally found copies of both PriceSet.php and PriceField.php in the customPHP folder from an old customization. Once the new method was added to both files the page began to work normally again.
  
  
  ---
  
  ### Answer by username_1 on 2017-12-05. Score: 0
  
  That method IS present in 4.7.27 - [it's at line 892](https://github.com/civicrm/civicrm-core/blob/4.7.27/CRM/Price/BAO/PriceField.php#L892).
  
  If it's not present for you, then either:
  
  * There's something squirrelly in your upgrade process - perhaps some file wasn't actually replaced;
  * You've got some extension or PHP override that's overriding the file in question.
  
  > **Comments:**
  > **username_0**: You're right, it is there, I was looking at the core documentation on doc.symbiotic.coop based on a google search. The files on github and my server both have the method. Still not sure why it's working for logged in admins but not public site visitors.  
  > **username_1**: That means it's likely an extension/override causing this.  Please check your [ConfigAndLog log](https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories) and edit your question to include the backtrace, and we can identify the source of the issue.  
  
  ---
  
  