Hi I get this when I´m trying to open basic_webmail.

Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/secure/ssl/validate-cert/tls}INBOX in _basic_webmail_connect_to_server() (line 47 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.common.inc).
Warning: natsort() expects parameter 1 to be array, string given in _basic_webmail_prepare_folder_list() (line 269 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Warning: Invalid argument supplied for foreach() in _basic_webmail_prepare_folder_list() (line 271 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/secure/ssl/validate-cert/tls}INBOX in _basic_webmail_connect_to_server() (line 47 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.common.inc).

Comments

oadaeh’s picture

The first and last errors are this module not being able to access your IMAP server, either because the configuration settings are incorrect, or because the server is not available.

Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/secure/ssl/validate-cert/tls}INBOX in _basic_webmail_connect_to_server() (line 47 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.common.inc).

Use the information in this post to verify your configuration is correct. Based on your connection string, you seem to have some options set that probably should not be, like the validate and TLS options.

The middle two errors are because of the failed IMAP server connection, and probably something I should correct. I will have to look into them.

Warning: natsort() expects parameter 1 to be array, string given in _basic_webmail_prepare_folder_list() (line 269 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Warning: Invalid argument supplied for foreach() in _basic_webmail_prepare_folder_list() (line 271 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).

Stellanhaglund’s picture

Thank you!

I changed and it moved a bit further.

Now the emails show up, though I saw that some dates where wrong, with the year 1999 for example.
And all mails wasn´t included.

And got these errors.

Warning: imap_utf7_decode() [function.imap-utf7-decode]: Invalid modified UTF-7 character: ` in _basic_webmail_prepare_folder_list() (line 273 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Warning: imap_utf7_decode() [function.imap-utf7-decode]: Invalid modified UTF-7 character: ` in _basic_webmail_prepare_folder_list() (line 273 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Warning: imap_utf7_decode() [function.imap-utf7-decode]: Invalid modified UTF-7 character: ` in _basic_webmail_prepare_folder_list() (line 273 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Notice: Undefined variable: message_month in _basic_webmail_message_list_process_message_date() (line 725 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Notice: Undefined variable: message_month in _basic_webmail_message_list_process_message_date() (line 725 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Notice: Undefined variable: message_month in _basic_webmail_message_list_process_message_date() (line 725 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).
Notice: Undefined variable: message_month in _basic_webmail_message_list_process_message_date() (line 725 of /home/merchiac/public_html/crmiac.com/test/sites/all/modules/basic_webmail/basic_webmail.list.inc).

oadaeh’s picture

For the dates, try changing line 422 of basic_webmail.list.inc from

              $message_date = _basic_webmail_message_list_process_message_date($message_header->date);

to

              $message_date = strtotime($message_header->date);

and let me know how they work.

oadaeh’s picture

Status: Active » Fixed

I've made lots of changes since this was posted.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.