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 (Moderator: Dave Greenberg) »
  • string flipping on processing inbound mail!
Pages: [1]

Author Topic: string flipping on processing inbound mail!  (Read 533 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
string flipping on processing inbound mail!
July 23, 2014, 02:27:42 pm
Here's the full and wonderful error message when running fetch_activities from the scheduled Jobs page

Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in ezcMailImapTransport->fetchByMessageNr() (line 1525 of /home/ablaze/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/imap/imap_transport.php).

v 4.4.6 in Drupal 7

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: string flipping on processing inbound mail!
July 23, 2014, 04:32:45 pm
Somehow, ezcMailImapTransport::listUniqueIdentifiers() is returning you an array as one of the message identifiers I think, from a quick look at the code you reference via github.

Unless you care enough to engage in fixing ezc (latest stable release: 2009?!), your best bet is probably to just manually process the mailbox and see if it behaves better after that.
@xurizaemon ● www.fuzion.co.nz

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: string flipping on processing inbound mail!
July 23, 2014, 09:56:06 pm
It has changed name, but seems to be still maintained.
@myles would be great if you could test if replacing fixes

https://github.com/zetacomponents/Mail
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: string flipping on processing inbound mail!
July 24, 2014, 03:02:39 am
Thanks for the responses.

My understanding may be a little fuzzy so please let me check by summarising:

CiviCRM is using a component a mail component created by zetacomponents.
This component is hosted on gitHub
Whilst the original form of the component has not been maintained since 2009, it is being maintained under a new name, which xavier has kindly provided a link to...

My mission [please supply appropriate music] is to replace the old component that is flipping out with the new version and see if it works.

Assuming I have got it all roughly understood that's what I shall be doing.

Cheers

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: string flipping on processing inbound mail!
July 24, 2014, 03:49:45 am
Brief investigation confirms the components are the same but that the github current version is 2.0 and the CiviCRM version is 1.7 beta something.

I shall have to do the work this evening as people are almost certainly using the mail component during the day - and yes, I shall re-install the test site...

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: string flipping on processing inbound mail!
July 24, 2014, 03:51:57 am
Almost, the component we use was created under the name ez component , that has been transfered to apache and finally github under the new name zeta components, the later being the only maintained one indeed.

on your civi install, they are under
packages/ezc/

and indeed it *should* be a simple matter of replacing it by the zeta version (that-if everything goes according to the plan- will fix your issue)

X+

P.S. So yes, your understanding is correct, just a rename that has happened somewhere, but code should be the same ;)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: string flipping on processing inbound mail!
July 24, 2014, 09:34:28 am
So...

I downloaded the new version and looking carefully at the old and new decided that only the src directory should be replaced.

Doing so resulted in an fatal error Class 'ezcMailOptions' can't be found in <path given>/mail.php line 155 -

I got as far as verifying that the class is referenced at that line.

Interestingly on restoring the old version the fetch activities routine works (triggered from the scheduled jobs page in CiviCRM admin)

I think that's a coincidence - I think the original error was triggered when mail.php tried to parse a message in a funny coding - I've deleted a number of mail bounce messages - the Microsoft Exchange server ones are usually the culprits.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • string flipping on processing inbound mail!

This forum was archived on 2017-11-26.