Answers.Body: <p>Your code path is slightly different from your files path:</p>
  
  <p>code: <strong><code>.../web16/web/sites/...</code></strong></p>
  
  <p>files: <strong><code>.../web16/websites/...</code></strong></p>
  
  <p>That looks like a typo - check your directories and resources settings at <code>Administer &gt; System Settings &gt; Directories</code> and <code>Administer &gt; System Settings &gt; Resource URLs</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-21T19:10:04.693Z
Answers.Text: wow. sharp eyes.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-22T08:55:08.953Z
Answers.Text: No differences, and the help page shows, that CiviCRM recognizes the correct path with trailing "/".
Answers.UserDisplayName: Pál Rudan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-02T16:03:06.657Z
Answers.Text: Some time later comes an error came up in the same context: there are some _SERVER values missing. The error's reason was that OPcache AND xcache were enabled on the server. After disabling OPcache, those errors disappeared. Perhaps can be this the solution?
Answers.UserDisplayName: Pál Rudan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-21T10:41:05.883Z
Answers.LastActivityDate: 2018-03-21T10:41:05.883Z
Answers.UserDisplayName: Aidan
Body: <p>On CiviCRM System Status page I get a permanent error message on the top of the page. </p>
  
  <p><em>Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client5/web16/websites/default/files/civicrm/persist/contribute/dyn/angular-modules.aa49fb2433945dcf4a451bb96fb1a0e9.js) is not within the allowed path(s): (/var/www/clients/client5/web16/web:/var/www/clients/client5/web16/private:/var/www/clients/client5/web16/tmp:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in CRM_Utils_System_DrupalBase->formatResourceUrl() function (/var/www/clients/client5/web16/web/sites/all/modules/civicrm/CRM/Utils/System/DrupalBase.php line 126.).</em></p>
  
  <p>In CRM_Utils_System_DrupalBase->formatResourceUrl() function, in line 126, I think there is a typo: if I use <code>if (file_exists(DRUPAL_ROOT .'/'. $file)) {</code> 
  the error message disappears. In the original text the '/' is missing: <code>if (file_exists(DRUPAL_ROOT . $file)) {</code></p>
  
  <p>Is it a bug, or I made some mistake? </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-21T02:29:49.977Z
Comments.Text: given lots of sites are not reporting this issue i would tend to assume the latter ;-( maybe a permissions issue on a directory?
Comments.UserDisplayName: petednz - fuzion
Tags: <civicrm-home>
Title: Found typo causing error in CRM_Utils_System_DrupalBase->formatResourceUrl()
ThreadText: # Found typo causing error in CRM_Utils_System_DrupalBase->formatResourceUrl()
  
  (Asked by: username_0 on 2018-03-20)
  
  On CiviCRM System Status page I get a permanent error message on the top of the page.
  
  *Warning: file\_exists(): open\_basedir restriction in effect. File(/var/www/clients/client5/web16/websites/default/files/civicrm/persist/contribute/dyn/angular-modules.aa49fb2433945dcf4a451bb96fb1a0e9.js) is not within the allowed path(s): (/var/www/clients/client5/web16/web:/var/www/clients/client5/web16/private:/var/www/clients/client5/web16/tmp:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in CRM\_Utils\_System\_DrupalBase->formatResourceUrl() function (/var/www/clients/client5/web16/web/sites/all/modules/civicrm/CRM/Utils/System/DrupalBase.php line 126.).*
  
  In CRM\_Utils\_System\_DrupalBase->formatResourceUrl() function, in line 126, I think there is a typo: if I use `if (file_exists(DRUPAL_ROOT .'/'. $file)) {`
  the error message disappears. In the original text the '/' is missing: `if (file_exists(DRUPAL_ROOT . $file)) {`
  
  Is it a bug, or I made some mistake?
  
  **Tags:** civicrm-home
  
  > **Comments:**
  > **username_1**: given lots of sites are not reporting this issue i would tend to assume the latter ;-( maybe a permissions issue on a directory?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-03-21. Score: 1
  
  Your code path is slightly different from your files path:
  
  code: **`.../web16/web/sites/...`**
  
  files: **`.../web16/websites/...`**
  
  That looks like a typo - check your directories and resources settings at `Administer > System Settings > Directories` and `Administer > System Settings > Resource URLs`
  
  > **Comments:**
  > **username_1**: wow. sharp eyes.  
  > **username_0**: No differences, and the help page shows, that CiviCRM recognizes the correct path with trailing "/".  
  > **username_0**: Some time later comes an error came up in the same context: there are some _SERVER values missing. The error's reason was that OPcache AND xcache were enabled on the server. After disabling OPcache, those errors disappeared. Perhaps can be this the solution?  
  
  ---
  
  