Answers.Body: <p>I'd start by clearing CiviCRM Cache <code>https://yoururl.org/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Fadmin%2Fsetting%2FupdateConfigBackend&amp;reset=1</code></p>
  <p>I'd also refresh permalinks by visiting <code>https://yoururl.org//wp-admin/options-permalink.php</code></p>
  <p>Then double check that you have abase page set here and it is publicly visible <code>https://yoursiteurl.org/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Fadmin%2Fsetting%2Fuf&amp;reset=1</code></p>
  <p>Once that is complete, see if you still have any errors.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-04T01:20:02.580Z
Answers.Text: Thanks Kevin for your suggestions. Have done all these things already and same result with signing petition and then submitting it.
Answers.UserDisplayName: Garry Hyman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-03T17:10:07.123Z
Answers.LastActivityDate: 2020-09-03T17:10:07.123Z
Answers.UserDisplayName: Kevin Cristiano
Answers.Body: <p>This all related to the session key issue.
  Have been able to get over the session key error by installing a fresh install of WP and CiviCRM, then restoring Wordpress and CiviCRM DBs, repointing wp_config.php and CiviCRM.settings.php. Also had to rename my table prefixes in wp_config.php to match my restored tables. The caches get created once you start up CiviCRM and do things. Testing so far all functionality is working again. Hopefully this may help someone should you come across this issue which is pretty horrible.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-08T07:15:13.857Z
Answers.LastActivityDate: 2020-09-08T07:15:13.857Z
Answers.UserDisplayName: Garry Hyman
Body: <p>Wordpress 5.5.1 upgraded today and I now get a screen full of messages as below:
  CiviCRM is V 5.27.1 and PHP 7.3. Have cleared Civi cache. Any ideas please?</p>
  <p>Warning: session_destroy(): Trying to destroy uninitialized session in /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php on line 490</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 987</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 988</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 989</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 990</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 991</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 992</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 995</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 996</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 999</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1000</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1001</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1002</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1005</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1006</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1007</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1008</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1011</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1296</p>
  <p>Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1299</p>
  <p>Thank you for creating with WordPress.</p>
  <p>Version 5.5.1</p>
  <p><strong>Another error</strong>
  Users reporting the following error when trying t respond to a petition. Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
  We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.<br /><br />Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is <a href="http://example.org" rel="nofollow noreferrer">http://example.org</a>, but some users are accessing the page via <a href="http://www.example.org" rel="nofollow noreferrer">http://www.example.org</a> or a domain alias like <a href="http://myotherexample.org" rel="nofollow noreferrer">http://myotherexample.org</a>.<br /><br />Error type: Could not find a valid session key.
  Return to home page.</p>
  
Tags: <wordpress>
Title: WP upgraded 5.5.1 and get Warning: session_destroy(): Trying to destroy uninitialized session
ThreadText: # WP upgraded 5.5.1 and get Warning: session_destroy(): Trying to destroy uninitialized session
  
  (Asked by: username_0 on 2020-09-03)
  
  Wordpress 5.5.1 upgraded today and I now get a screen full of messages as below:
  CiviCRM is V 5.27.1 and PHP 7.3. Have cleared Civi cache. Any ideas please?
  
  Warning: session\_destroy(): Trying to destroy uninitialized session in /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php on line 490
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 987
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 988
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 989
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 990
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 991
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 992
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 995
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 996
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 999
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1000
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1001
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1002
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1005
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1006
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1007
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1008
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1011
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1296
  
  Warning: Cannot modify header information - headers already sent by (output started at /home/cremorne/www/www/prodwp/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:490) in /home/cremorne/www/www/prodwp/wp-includes/pluggable.php on line 1299
  
  Thank you for creating with WordPress.
  
  Version 5.5.1
  
  **Another error**
  Users reporting the following error when trying t respond to a petition. Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
  We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.  
    
  Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is <http://example.org>, but some users are accessing the page via <http://www.example.org> or a domain alias like <http://myotherexample.org>.  
    
  Error type: Could not find a valid session key.
  Return to home page.
  
  **Tags:** wordpress
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-09-03. Score: 1
  
  I'd start by clearing CiviCRM Cache `https://yoururl.org/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fsetting%2FupdateConfigBackend&reset=1`
  
  I'd also refresh permalinks by visiting `https://yoururl.org//wp-admin/options-permalink.php`
  
  Then double check that you have abase page set here and it is publicly visible `https://yoursiteurl.org/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fsetting%2Fuf&reset=1`
  
  Once that is complete, see if you still have any errors.
  
  > **Comments:**
  > **username_0**: Thanks Kevin for your suggestions. Have done all these things already and same result with signing petition and then submitting it.  
  
  ---
  
  ### Answer by username_0 on 2020-09-08. Score: 0
  
  This all related to the session key issue.
  Have been able to get over the session key error by installing a fresh install of WP and CiviCRM, then restoring Wordpress and CiviCRM DBs, repointing wp\_config.php and CiviCRM.settings.php. Also had to rename my table prefixes in wp\_config.php to match my restored tables. The caches get created once you start up CiviCRM and do things. Testing so far all functionality is working again. Hopefully this may help someone should you come across this issue which is pretty horrible.
  
  
  ---
  
  