Answers.Body: <p>It turned out that our was a permission issue. I'm on Pantheon so I want able to change the permissions on the directory I was using, so I changed directories for uploads and it worked</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-15T14:16:05.820Z
Answers.LastActivityDate: 2016-01-15T14:16:05.820Z
Answers.UserDisplayName: Yossi
Answers.Body: <p>you need to create a settings.localtion.php file in your civicrm directory</p>
  
  <p>then have </p>
  
  <p>define('CIVICRM_CONFDIR', 'directory where civicrm.settings.php is');</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-03T05:26:56.347Z
Answers.Text: I created a file with this: 
  <?php
  define('CIVICRM_CONFDIR', '/code/sites/default/');
  ?>
  
  I called the file settings.location.php and also tried calling it settings_location.php
  
  The error still persists
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-04T19:56:18.477Z
Answers.Text: in your define you want the full path right from the server's root and then ending at sites/default' I don't think you need the ?> at the the end tho
Answers.UserDisplayName: Seamus Lee
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-04T19:57:29.567Z
Answers.Text: see here http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=86213657
Answers.UserDisplayName: Seamus Lee
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-04T22:01:26.370Z
Answers.Text: The error changed to this : Could not find valid configuration dir, best guess: /code/sites/default/
  then We fixed it and corrected the file to this:
  <?php
  if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
   $env = json_decode($_SERVER['PRESSFLOW_SETTINGS'], TRUE);
   if (!empty($env['conf']['pantheon_binding'])) {
    $pantheon_conf = $env['conf'];
    $civicrm_conf = '/srv/bindings/' . $pantheon_conf['pantheon_binding'] . '/code/sites/default';
  
    define('CIVICRM_CONFDIR', $civicrm_conf);
   }
  }
  
  Now we are back to the old error...
Answers.UserDisplayName: Yossi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-03T03:40:02.320Z
Answers.LastActivityDate: 2015-11-03T03:40:02.320Z
Answers.UserDisplayName: Seamus Lee
Body: <p>kcfinder is not allowing me to browse or upload images. I get this error:</p>
  
  <p>Sorry but we are not able to provide this at the moment.
  You must be logged in with proper permissions to edit, add, or delete uploaded images.</p>
  
  <p>I am logged in as User 1. It seems that kcfinder does not know that I am logged in. </p>
  
  <p><a href="https://i.sstatic.net/S5XyA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/S5XyA.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-15T15:47:00.470Z
Comments.Text: Note that in Drupal 7, the concept of the Drupal superuser (user/1) is obsolete; you select the admin role from among the standard roles, and can assign it to any number of accounts to it.
Comments.UserDisplayName: choster
Tags: <kcfinder>
Title: Since Drupal 7.4x I am unable to upload/browse images in civicrm
ThreadText: # Since Drupal 7.4x I am unable to upload/browse images in civicrm
  
  (Asked by: username_0 on 2015-11-02)
  
  kcfinder is not allowing me to browse or upload images. I get this error:
  
  Sorry but we are not able to provide this at the moment.
  You must be logged in with proper permissions to edit, add, or delete uploaded images.
  
  I am logged in as User 1. It seems that kcfinder does not know that I am logged in.
  
  [![enter image description here](https://i.sstatic.net/S5XyA.png)](https://i.sstatic.net/S5XyA.png)
  
  **Tags:** kcfinder
  
  > **Comments:**
  > **username_1**: Note that in Drupal 7, the concept of the Drupal superuser (user/1) is obsolete; you select the admin role from among the standard roles, and can assign it to any number of accounts to it.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2016-01-15. Score: 2
  
  It turned out that our was a permission issue. I'm on Pantheon so I want able to change the permissions on the directory I was using, so I changed directories for uploads and it worked
  
  
  ---
  
  ### Answer by username_2 on 2015-11-03. Score: 1
  
  you need to create a settings.localtion.php file in your civicrm directory
  
  then have
  
  define('CIVICRM\_CONFDIR', 'directory where civicrm.settings.php is');
  
  > **Comments:**
  > **username_0**: I created a file with this:  <?php define('CIVICRM_CONFDIR', '/code/sites/default/'); ?>  I called the file settings.location.php and also tried calling it settings_location.php  The error still persists  
  > **username_2**: in your define you want the full path right from the server's root and then ending at sites/default' I don't think you need the ?> at the the end tho  
  > **username_2**: see here http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=86213657  
  > **username_0**: The error changed to this : Could not find valid configuration dir, best guess: /code/sites/default/ then We fixed it and corrected the file to this: <?php if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {  $env = json_decode($_SERVER['PRESSFLOW_SETTINGS'], TRUE);  if (!empty($env['conf']['pantheon_binding'])) {   $pantheon_conf = $env['conf'];   $civicrm_conf = '/srv/bindings/' . $pantheon_conf['pantheon_binding'] . '/code/sites/default';    define('CIVICRM_CONFDIR', $civicrm_conf);  } }  Now we are back to the old error...  
  
  ---
  
  