Body: <p>I have installed CiviCRM using wordpress:latest and running it inside a docker container.</p>
  <p>After installing CiviCRM, any change I do in the system by saving, I get a 500 error</p>
  <p><a href="https://i.sstatic.net/NpL2g.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NpL2g.png" alt="enter image description here" /></a></p>
  <p>Can someone give me clues on how to fix this?</p>
  <p>The log from ConfigAndLog file is below -</p>
  <blockquote>
  <p>wordpress/uploads/civicrm/ConfigAndLog$ tail -f
  CiviCRM.1_03e8e875ec930fd208c5c90d.log  Jan 23 15:36:30  [debug]
  $backTrace = #0
  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(441):
  CRM_Core_Error::backtrace(&quot;backTrace&quot;, TRUE)
  #1 /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(39):
  CRM_Core_Error::handleUnhandledException(Object(CRM_Core_Exception))
  #2 /var/www/html/wp-content/plugins/civicrm/civicrm.php(1199): CRM_Core_Invoke::invoke((Array:4))
  #3 /var/www/html/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress-&gt;invoke(&quot;&quot;)
  #4 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook-&gt;apply_filters(&quot;&quot;, (Array:1))
  #5 /var/www/html/wp-includes/plugin.php(517): WP_Hook-&gt;do_action((Array:1))
  #6 /var/www/html/wp-admin/admin.php(259): do_action(&quot;toplevel_page_CiviCRM&quot;)
  #7 {main}</p>
  </blockquote>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-01-23T17:50:33.770Z
Comments.Text: You might find more info about the error in [ConfigAndLog](https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories) but based on the error it's possible that you have CIVICRM_BASEURL set incorrectly in civicrm.settings.php. Check if it is http vs https too, because if part of the page is using http and part is using https it might not think it's the same session.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-01-24T10:10:55.010Z
Comments.Text: Thanks for the reply.  I dont have civicrm.settings.php.  Could not find anywhere except in the uploads folder.  My site is http.  The configAndLog output is attached to the issue.
Comments.UserDisplayName: BTR Naidu
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-02T00:09:56.663Z
Comments.Text: The civicrm.settings.php in your uploads folder is most very likely exactly the one you need!
Comments.UserDisplayName: Luke Stewart
Tags: <wordpress>
Title: Error 500 when saving anything
ThreadText: # Error 500 when saving anything
  
  (Asked by: username_0 on 2023-01-23)
  
  I have installed CiviCRM using wordpress:latest and running it inside a docker container.
  
  After installing CiviCRM, any change I do in the system by saving, I get a 500 error
  
  [![enter image description here](https://i.sstatic.net/NpL2g.png)](https://i.sstatic.net/NpL2g.png)
  
  Can someone give me clues on how to fix this?
  
  The log from ConfigAndLog file is below -
  
  > wordpress/uploads/civicrm/ConfigAndLog$ tail -f
  > CiviCRM.1\_03e8e875ec930fd208c5c90d.log Jan 23 15:36:30 [debug]
  > $backTrace = #0
  > /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(441):
  > CRM\_Core\_Error::backtrace("backTrace", TRUE)
  > #1 /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(39):
  > CRM\_Core\_Error::handleUnhandledException(Object(CRM\_Core\_Exception))
  > #2 /var/www/html/wp-content/plugins/civicrm/civicrm.php(1199): CRM\_Core\_Invoke::invoke((Array:4))
  > #3 /var/www/html/wp-includes/class-wp-hook.php(308): CiviCRM\_For\_WordPress->invoke("")
  > #4 /var/www/html/wp-includes/class-wp-hook.php(332): WP\_Hook->apply\_filters("", (Array:1))
  > #5 /var/www/html/wp-includes/plugin.php(517): WP\_Hook->do\_action((Array:1))
  > #6 /var/www/html/wp-admin/admin.php(259): do\_action("toplevel\_page\_CiviCRM")
  > #7 {main}
  
  **Tags:** wordpress
  
  > **Comments:**
  > **username_1**: You might find more info about the error in [ConfigAndLog](https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories) but based on the error it's possible that you have CIVICRM_BASEURL set incorrectly in civicrm.settings.php. Check if it is http vs https too, because if part of the page is using http and part is using https it might not think it's the same session.  
  > **username_0**: Thanks for the reply.  I dont have civicrm.settings.php.  Could not find anywhere except in the uploads folder.  My site is http.  The configAndLog output is attached to the issue.  
  > **username_2**: The civicrm.settings.php in your uploads folder is most very likely exactly the one you need!  
  
  ---
  
  ## 0 answers
  
  