Answers.Body: <p>At what point of the update process are you getting that error?</p>
  
  <p>During an auto-update, Craft creates a <code>.bak</code> of every file that it's about to update before doing the file swap.  The last step of the update process (the "Cleaning up..." stage), goes through and deletes all of the <code>.bak</code> files that were created.</p>
  
  <p>I'd also make sure that the <code>craft/app</code> folder is recursively writable by PHP as that's required for auto-updating to work correctly.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-06T18:01:22.040Z
Answers.LastActivityDate: 2017-12-06T18:01:22.040Z
Answers.UserDisplayName: Brad Bell
Body: <p>I am getting the following error on my local machine when updating Craft 2.6.</p>
  
  <blockquote>
    <p>/craft/app/helpers/ElementHelper.php.bak: failed to open stream: Permission denied</p>
  </blockquote>
  
  <p>I don't even see that file in the directory.</p>
  
  <p>Any ideas?</p>
  
Tags: <updates>
Title: Internal Server Error Regarding ElementHelper.php.bak
ThreadText: # Internal Server Error Regarding ElementHelper.php.bak
  
  (Asked by: username_0 on 2017-12-06)
  
  I am getting the following error on my local machine when updating Craft 2.6.
  
  > /craft/app/helpers/ElementHelper.php.bak: failed to open stream: Permission denied
  
  I don't even see that file in the directory.
  
  Any ideas?
  
  **Tags:** updates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-12-06. Score: 1
  
  At what point of the update process are you getting that error?
  
  During an auto-update, Craft creates a `.bak` of every file that it's about to update before doing the file swap. The last step of the update process (the "Cleaning up..." stage), goes through and deletes all of the `.bak` files that were created.
  
  I'd also make sure that the `craft/app` folder is recursively writable by PHP as that's required for auto-updating to work correctly.
  
  
  ---
  
  