
18th December 2006, 21:20
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 16 Times in 15 Posts
|
|
Squirrelmail error
Using ISPConfig 2.2.9 and the "official" Squirrelmail that can be downloaded as a package which gives Squirrelmail 1.5.1.
Viewing a message through the Squirrelmail interface show me the message, but also gives me an error box with:
Code:
Message: preg_split() expects parameter 4 to be long, string given
FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_messages.php
LINE: 926
Category: PHP
Message: Invalid argument supplied for foreach()
FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/mime.php
LINE: 52
Any seen this before? And knows a solution? It doesn't crash, it's just annoing to have an error.
|

20th December 2006, 08:01
|
|
Junior Member
|
|
Join Date: Dec 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i have the same error message, and i can receive email, but not send it successfully via squirrelmail (or roundcube).
would you mind testing to see if you can send an email (to an email address on a diff. server).
|

20th December 2006, 09:11
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 16 Times in 15 Posts
|
|
I'd like to, but I reconfigured couple of things and currently it's not working and I have mtgs all day, so this has to wait till tomorrow for me
|

21st December 2006, 18:16
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by martinfst
Using ISPConfig 2.2.9 and the "official" Squirrelmail that can be downloaded as a package which gives Squirrelmail 1.5.1.
Viewing a message through the Squirrelmail interface show me the message, but also gives me an error box with:
Code:
Message: preg_split() expects parameter 4 to be long, string given
FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_messages.php
LINE: 926
Category: PHP
Message: Invalid argument supplied for foreach()
FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/mime.php
LINE: 52
Any seen this before? And knows a solution? It doesn't crash, it's just annoing to have an error.
|
You can try to find out what's happening in line 926 in /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_messages.php
and line 52 in /home/admispconfig/ispconfig/web/squirrelmail/functions/mime.php. Maybe that gives you some hints.
|

6th January 2007, 21:29
|
|
Member
|
|
Join Date: Jan 2007
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Code:
Message: preg_split() expects parameter 4 to be long, string given
FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_messages.php
LINE: 926
Category: PHP
This is caused by a typo in the imap.messages.php file.
Code:
$flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY');
...needs to be this:
$flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NO_EMPTY');
I am currently looking into the second error as I am experiencing the same...
|

7th January 2007, 10:31
|
|
Member
|
|
Join Date: Jan 2006
Location: Bangkok
Posts: 40
Thanks: 19
Thanked 4 Times in 4 Posts
|
|
Quote:
|
Originally Posted by Bailx
i have the same error message, and i can receive email, but not send it successfully via squirrelmail (or roundcube).
would you mind testing to see if you can send an email (to an email address on a diff. server).
|
You need to change Display Preference before sending any email.
squirrelmail - change Personal Information
roundcube - change Personal settings>Identities
imap_messages.php 926
Code:
$flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY');
mimi.php 52
Code:
foreach ($flags as $flag) {
I've got same problem
ISPConfig 2.2.9
squirrelmail.pkg from download page
Last edited by mtuser; 7th January 2007 at 10:53.
|

7th January 2007, 17:39
|
|
Member
|
|
Join Date: Jan 2007
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I switched to SquirrelOutlook (very nice) and these errors have gone away... I will look later today to see if I can figure out what the difference is in both these files...
|

10th January 2007, 02:16
|
|
Member
|
|
Join Date: Oct 2006
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Same problems.
I'm having the same problems. Even after editing imap_messages.php as recommended above. Just going to try out squirrelOutlook now...
Wes
|

16th March 2007, 22:46
|
|
Junior Member
|
|
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 4 Times in 1 Post
|
|
bug fix
Quote:
|
Originally Posted by z33k3r
Code:
Message: preg_split() expects parameter 4 to be long, string given
FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_messages.php
LINE: 926
Category: PHP
This is caused by a typo in the imap.messages.php file.
Code:
$flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY');
...needs to be this:
$flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NO_EMPTY');
I am currently looking into the second error as I am experiencing the same...
|
the correct line is :
Code:
$flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY);
|
|
The Following 4 Users Say Thank You to Fitti For This Useful Post:
|
|

24th April 2007, 13:00
|
|
Junior Member
|
|
Join Date: May 2006
Location: Birmingham, UK
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
after i made your change (fix) it all works! thank you very much.
__________________
bit4net.com
biton
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 10:31.
|
Recent comments
4 hours 44 min ago
11 hours 25 min ago
15 hours 15 min ago
16 hours 54 min ago
1 day 1 hour ago
1 day 10 hours ago
1 day 11 hours ago
1 day 15 hours ago
1 day 19 hours ago
1 day 19 hours ago