Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th December 2006, 21:20
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Post 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.
Reply With Quote
Sponsored Links
  #2  
Old 20th December 2006, 08:01
Bailx Bailx is offline
Junior Member
 
Join Date: Dec 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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).
Reply With Quote
  #3  
Old 20th December 2006, 09:11
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

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
Reply With Quote
  #4  
Old 21st December 2006, 18:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 6th January 2007, 21:29
z33k3r z33k3r is offline
Member
 
Join Date: Jan 2007
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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...
Reply With Quote
  #6  
Old 7th January 2007, 10:31
mtuser mtuser is offline
Member
 
Join Date: Jan 2006
Location: Bangkok
Posts: 40
Thanks: 19
Thanked 4 Times in 4 Posts
Send a message via ICQ to mtuser Send a message via Yahoo to mtuser Send a message via Skype™ to mtuser
Default

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.
Reply With Quote
  #7  
Old 7th January 2007, 17:39
z33k3r z33k3r is offline
Member
 
Join Date: Jan 2007
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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...
Reply With Quote
  #8  
Old 10th January 2007, 02:16
wrender wrender is offline
Member
 
Join Date: Oct 2006
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Default 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
Reply With Quote
  #9  
Old 16th March 2007, 22:46
Fitti Fitti is offline
Junior Member
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 4 Times in 1 Post
Default 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);
Reply With Quote
The Following 4 Users Say Thank You to Fitti For This Useful Post:
bitonw (24th April 2007), giftsnake (5th February 2009), olkos (7th February 2011), rvakili (8th January 2009)
  #10  
Old 24th April 2007, 13:00
bitonw bitonw is offline
Junior Member
 
Join Date: May 2006
Location: Birmingham, UK
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via Yahoo to bitonw Send a message via Skype™ to bitonw
 
Default

after i made your change (fix) it all works! thank you very much.
__________________
bit4net.com
biton
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42
Frustrated with ISPConfig install! woozyerdaddee Installation/Configuration 4 19th May 2006 03:38
Fresh Install on Debian cksrealm Installation/Configuration 12 22nd February 2006 16:14
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 18:07
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 4th October 2005 23:53


All times are GMT +2. The time now is 21:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.