There was an error saving a copy of the message to the sent folder: [TRYCREATE] folder does not exist.

Seven_Six_Two - August 7, 2008 - 21:24
Project:Basic webmail
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

warning: Wrong parameter count for imap_open() in /var/www/basicsite/sites/mysite.com/modules/basic_webmail/basic_webmail.module on line 1960.

Drupal 5.7
PHP 4.4.4-8+etch6

This is when I put in my username and password in my profile. It's set up to access imap.1and1.com, port 143, TLS (just like my kmail does)

#1

oadaeh - August 7, 2008 - 21:48

Try the 5.x-1.x-dev version. The error should go away. Let me know if that works for you or not.

#2

Seven_Six_Two - August 8, 2008 - 04:09
Version:5.x-1.1» 5.x-1.x-dev

Now it says line 1961. The rest of the error is fine. I just updated to php5 as well.

Details
Type basic_webmail
Date Friday, August 8, 2008 - 00:01
User JJbaddington
Location http://mysite.com/basic_webmail
Referrer http://mysite.com/admin/settings/basic_webmail
Message There was an error accessing the remote server:
Severity error
Hostname 192.168.1.3

Type php
Date Friday, August 8, 2008 - 00:01
User JJbaddington
Location http://mysite.com/basic_webmail
Referrer http://mysite.com/admin/settings/basic_webmail
Message Wrong parameter count for imap_open() in /var/www/sitename/sites/mysite.com/modules/basic_webmail/basic_webmail.module on line 1961.
Severity error
Hostname 192.168.1.3

#3

oadaeh - August 8, 2008 - 04:52

It's supposed to be checking your version of PHP and using the correct format of the function call. One format requires PHP version 5.2.0 or later and the other one should work with any version that supports IMAP.

You can manually correct that yourself by editing the line it's breaking on and changing

    if (($imap_resource = imap_open($mailbox, $username, $password, 0, 1)) == FALSE) {

to

    if (($imap_resource = imap_open($mailbox, $username, $password, 0)) == FALSE) {

(remove the ", 1" at the end of the function call.)

I think I may just take that out as it has caused more problems, and I don't think it has done any good.

#4

Seven_Six_Two - August 11, 2008 - 06:18
Title:Wrong Parameter Count» There was an error saving a copy of the message to the sent folder: [TRYCREATE] folder does not exist.

There was an error saving a copy of the message to the sent folder: [TRYCREATE] folder does not exist.

But I can still send (at least with smtp module!) and my email shows up without a problem.

ps thanks for the prompt responses.
JP

#5

oadaeh - August 11, 2008 - 16:25

Did you create (or try to create) a folder called TRYCREATE? (That could just be part of the error, but I thought I'd ask.) The part for the message after the colon (:) is coming from the server, so I'm thinking that an attempt was made to create a folder (maybe the sent folder) on the server that did not succeed, and possibly the module is still trying to use that folder, even though it does not exist.

Try going back to the user configuration page (http://www.example.com/user/$uid/edit) and resetting and re-saving the settings under "Basic webmail account settings", and then going to the main e-mail page (http://www.example.com/basic_webmail) and then to the INBOX.Sent folder (http://www.example.com/basic_webmail/INBOX.Sent) to see if that clears it up.

 
 

Drupal is a registered trademark of Dries Buytaert.