undefined function imap_open()
xlyz - January 16, 2009 - 08:01
| Project: | Webmail Plus |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
if I enable imapwu_api I got this error:
Call to undefined function imap_open() in /home/xz/source/drupal-test/sites/all/modules/mail_api/contrib/imapwu_api/imapwu_api.module on line 66
if I don't enable it nothing happens, i.e. no retrieval of messages, no errors, nothing.
(btw it's required or not? because iit's not listed as required in webmail_plus description)

#1
You do not have PHP IMAP extensions installed. Please refer to this page: http://us3.php.net/manual/en/imap.setup.php
#2
installed.
now I'm stuck here:
* warning: imap_open() [function.imap-open]: Couldn't open stream {my.imap.server:143}INBOX in ../drupal-test/sites/all/modules/mail_api/contrib/imapwu_api/imapwu_api.module on line 66.* warning: imap_check(): supplied argument is not a valid imap resource in ../drupal-test/sites/all/modules/mail_api/contrib/imapwu_api/imapwu_api.module on line 172.
* warning: imap_fetch_overview(): supplied argument is not a valid imap resource in../source/drupal-test/sites/all/modules/mail_api/contrib/imapwu_api/imapwu_api.module on line 158.
* Your email password is not correct. Please click here to set it.
I tried with 2 different imap server, and the error message was the same. Password was correct (checked several times)
#3
I was stuck at the same point. The password worked in Squirrel. There were no error messages about PHP IMAP functions missing. I went into Cpanel and switched on PHP IMAP. Bingo! It worked. Well, it works non SSL. There is still a separate problem with SSL.
I updated my documentation page to mention the PHP IMAP requirement. See http://drupal.org/node/369604