CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • is_readable problem with pear directory?
Pages: [1]

Author Topic: is_readable problem with pear directory?  (Read 1798 times)

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
is_readable problem with pear directory?
September 06, 2007, 10:38:55 am
Hi all,

I just upgraded a site to 1.8. It seems to be working, but I'm concerned about the occurrence of this error:

is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/pear//home/mbadiversity/public_html/application/civicrm_custom//CRM/common/version.tpl) is not within the allowed path(s): (/home/mbadiversity) in /home/mbadiversity/public_html/application/modules/civicrm/packages/Smarty/internals/core.get_include_path.php on line 34.

whenever I browse to a CiviCRM page. I don't quite know how to interpret the File string. Is that a concatenation of the three paths it tried to search? I couldn't find any reference to /usr/share/pear in my DB, settings file, or civicrm code.

Any debugging suggestions?

TIA!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: is_readable problem with pear directory?
September 06, 2007, 11:09:50 am

If you are familiar with PHP, i would edit and add some debug code in:

/home/mbadiversity/public_html/application/modules/civicrm/packages/Smarty/internals/core.get_include_path.php on line 32 or so

most likely /usr/share/pear is in your include path by default, which civicrm retains (for other modules that might be use it)

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
Re: is_readable problem with pear directory?
September 08, 2007, 11:21:53 am
FWIW, the error appears to be ignorable. It occurs in a loop looking for my custom templates in the various paths. Many of the paths it tries are not readable, so the error message is correct, but not as severe as it seems, since the loop eventually finds what it's looking for.

It gets treated as an error by PHP (I presume) since the server has base_dir restrictions in effect. One of the paths it tries is /usr/share/pear//(my custom path appended for some reason), which makes the restrictions very unhappy. I hacked in a branch so the loop skips anything with /usr/share in the string, so that the watchdog does load up.

That was the best I could come up with.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • is_readable problem with pear directory?

This forum was archived on 2017-11-26.