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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Autofiling email processor test produces error
Pages: [1]

Author Topic: Autofiling email processor test produces error  (Read 1084 times)

scrimmage

  • Guest
Autofiling email processor test produces error
November 09, 2010, 08:07:10 am
Hello

I'm following the instructions for setting up Autofiling email activities via EmailProcessor here:  http://wiki.civicrm.org/confluence/display/CRMDOC32/Autofiling+email+activities+via+EmailProcessor

I've configured the site key correctly in civicrm.settings.php but when I try and test the set by visiting http://domain/sites/all/modules/civicrm/bin/EmailProcessor.php?name=username&pass=password&key=site_key&emailtoactivity=1 I get lots of errors...

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/includes/bootstrap.inc) is not within the allowed path(s): (/var/www/vhosts/labourtownclose.org/httpdocs:/tmp) in /var/www/vhosts/labourtownclose.org/httpdocs/drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 365

and:

Fatal error: Ignoring exception from ezcMailPop3Transport::__destruct() while an exception is already active (Uncaught ezcMailTransportException in /var/www/vhosts/labourtownclose.org/httpdocs/drupal/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php on line 217) in /var/www/vhosts/labourtownclose.org/httpdocs/drupal/sites/all/modules/civicrm/CRM/Mailing/MailStore.php on line 86


I have of course filled in the correct username/password & domain name! And I've correctly configured an email account at CiviCRM >> CiviMail >> Mail Accounts.

I'm using CiviCRM 3.2.3.

Anybody know what's going on?

Adam


demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Autofiling email processor test produces error
November 09, 2010, 09:37:31 am
http://www.php.net/manual/en/ini.core.php#ini.open-basedir

If you can edit php.ini, change open_basedir. If not, see above link for other alternatives.

scrimmage

  • Guest
Re: Autofiling email processor test produces error
November 09, 2010, 02:15:48 pm
Hi

Thanks very much for the swift reply.

Am using Plesk/Virtuozzo so I can edit php.ini. I presume you mean the php.ini at  /etc/php.ini (not any of the PHP modules *.ini files in /etc/php.d)?

You say I should "change open_basedir". What do I change it to?

As you can tell server business is a bit of a mystery to me.

Thanks again

Adam

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Autofiling email processor test produces error
November 09, 2010, 04:29:23 pm
Whichever .ini has open_basedir in it set to something.

I'd set it to blank and if it solves the problem and you aren't worried about high security then leave it. Or just keep adding folders like the "/var/includes" one mentioned in the error message to the existing setting until it goes away.

You may need to restart the web server after changing the file for it to notice the change.

scrimmage

  • Guest
Re: Autofiling email processor test produces error
November 10, 2010, 06:33:44 am
Thanks - that got it!

Adam

2020media

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
    • 2020Media
Re: Autofiling email processor test produces error
February 23, 2011, 09:42:54 am
the basedir warning suggests a different reason for the problem

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/includes/bootstrap.inc) is not within the allowed path(s): (/var/www/vhosts/labourtownclose.org/httpdocs:/tmp) in /var/www/vhosts/labourtownclose.org/httpdocs/drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 365

The site is in the folder:
/var/www/vhosts/labourtownclose.org
You'd not therefore expect to try to access bootstrap.inc in a folder completely outside of their path.

The path should be more like
/var/www/vhosts/labourtownclose.org/httpdocs/includes/bootstrap.inc

I think something else is going on - perhaps the way drupal/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php tries to autodiscover the path to bootstrap.inc.

Rex
http://www.2020media.com/drupal





CiviCRM Hosting: [http://www.2020media.com/civicrm]

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Autofiling email processor test produces error

This forum was archived on 2017-11-26.