Answers.Body: <p>You can either:</p>
  <ol>
  <li><p>Submit a <a href="https://docs.civicrm.org/dev/en/latest/core/contributing/#open-a-pull-request" rel="nofollow noreferrer">PR</a> that fixes it. It's probably something like <a href="https://github.com/civicrm/civicrm-core/blob/0b060b8459cf3b7abe65ef2137aee11ba3e8cd38/CRM/Profile/Page/View.php#L114" rel="nofollow noreferrer">this</a> should be assigned <em>some</em> value regardless of whether the user has permissions or not.</p>
  </li>
  <li><p>Set your php.ini error_reporting in your web hosting to be E_ERROR (or 1), so that you don't see warnings on a live site.</p>
  </li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-12-22T15:56:48.457Z
Answers.LastActivityDate: 2024-12-22T15:56:48.457Z
Answers.UserDisplayName: Demerit
Body: <p>I'm getting these errors after upgrading to 5.80.1 on Drupal 7:</p>
  <pre><code>Warning: Undefined array key &quot;listingURL&quot; in include() (line 28 of /home/username/www/address.com/sites/default/files/civicrm/templates_c/en_US/%%7F/7F9/7F984A8A%%View.tpl.php).
  Warning: Undefined array key &quot;mapURL&quot; in include() (line 32 of /home/username/www/address.com/sites/default/files/civicrm/templates_c/en_US/%%7F/7F9/7F984A8A%%View.tpl.php).
  </code></pre>
  <p>This is after submitting a public profile form.</p>
  <p>I've cleared caches, deleted cached templates. Any suggestions?</p>
  
Tags: <upgrade><profile>
Title: Template errors after upgrading to 5.80.1
ThreadText: # Template errors after upgrading to 5.80.1
  
  (Asked by: username_0 on 2024-12-19)
  
  I'm getting these errors after upgrading to 5.80.1 on Drupal 7:
  Warning: Undefined array key "listingURL" in include() (line 28 of /home/username/www/address.com/sites/default/files/civicrm/templates_c/en_US/%%7F/7F9/7F984A8A%%View.tpl.php).
  Warning: Undefined array key "mapURL" in include() (line 32 of /home/username/www/address.com/sites/default/files/civicrm/templates_c/en_US/%%7F/7F9/7F984A8A%%View.tpl.php).
  
  This is after submitting a public profile form.
  I've cleared caches, deleted cached templates. Any suggestions?
  
  **Tags:** upgrade, profile
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-12-22. Score: 0
  
  You can either:
  
  1. Submit a [PR](https://docs.civicrm.org/dev/en/latest/core/contributing/#open-a-pull-request) that fixes it. It's probably something like [this](https://github.com/civicrm/civicrm-core/blob/0b060b8459cf3b7abe65ef2137aee11ba3e8cd38/CRM/Profile/Page/View.php#L114) should be assigned *some* value regardless of whether the user has permissions or not.
  2. Set your php.ini error\_reporting in your web hosting to be E\_ERROR (or 1), so that you don't see warnings on a live site.
  
  
  ---
  
  