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) »
  • Bewildering Fetch Bounces Error
Pages: [1]

Author Topic: Bewildering Fetch Bounces Error  (Read 774 times)

anorthite

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.34
  • MySQL version: 5.3.12-MariaDB
  • PHP version: 5.4.20
Bewildering Fetch Bounces Error
September 20, 2013, 12:27:29 pm
Quote
Finished execution of Fetch Bounces with result: Failure, Error message: The file '/xxx/tmp/80403-1/SafeUnsubscribe_Footer_Logo_New.png' could not be found.

I have no idea why this file would be needed. The file name doesn't appear anywhere in the civicrm mysql db except the error log. The drupal watchdog has two somewhat more useful errors:

Quote
Warning: fopen(/xxx/tmp/80403-1/SafeUnsubscribe_Footer_Logo_New.png) [function.fopen]: failed to open stream: No such file or directory in ezcMailFileParser->openFile() (line 154 of /xxx/public/sites/all/modules/civicrm/packages/ezc/Mail/src/parser/parts/file_parser.php).

Quote
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid/gid is xxx/xxx is not allowed to access /xxx/tmp owned by uid/gid xxx/xxx in ezcMailFileParser->openFile() (line 147 of /xxx/public/sites/all/modules/civicrm/packages/ezc/Mail/src/parser/parts/file_parser.php).

ConstantContact had been used before civi, all that was copied over between the two systems was the subscriber list. I checked the message templates and the drupal db and couldn't find the file name, it also doesn't appear within any files in my website's root directory. ???
« Last Edit: September 20, 2013, 12:37:49 pm by anorthite »

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: Bewildering Fetch Bounces Error
September 20, 2013, 02:39:05 pm

if i had to guess thats an attachment in a bounced email

i would disable safe mode and see if that fixes it. if u cannot do that, i would check the ezcMail code (under packages/ezc) and see if u can change the location of the tmp directory

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

anorthite

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.34
  • MySQL version: 5.3.12-MariaDB
  • PHP version: 5.4.20
Re: Bewildering Fetch Bounces Error
September 20, 2013, 07:26:35 pm
Thanks! That fixed it, line 144 of sites/all/modules/civicrm/packages/ezc/Mail/src/parser/parts/file_parser.php:

Code: [Select]
$dirName = ezcMailParser::getTmpDir() . getmypid() . '-' . self::$counter++ . '/';
Changed to:

Code: [Select]
$dirName = '/absolute/path/to/temp/' . getmypid() . '-' . self::$counter++ . '/';
It would be ideal if it would use the temp directory defined by Drupal, I'll have to patch that manually for now.

anorthite

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.34
  • MySQL version: 5.3.12-MariaDB
  • PHP version: 5.4.20
Re: Bewildering Fetch Bounces Error
October 04, 2013, 05:28:36 pm
Drupal's function for its temp directory is working in this script. I don't know PHP well enough to understand why - the file that defines it isn't included in file_parser.php - but I'm happy it works.

Code: [Select]
$dirName = file_directory_temp() . getmypid() . '-' . self::$counter++ . '/';

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Bewildering Fetch Bounces Error

This forum was archived on 2017-11-26.