[RC1] BetterSMTP

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Kulgan
Registered User
Posts: 16
Joined: Wed Nov 30, 2005 9:08 pm

Post by Kulgan » Fri Dec 09, 2005 4:21 pm

eeeeeeeeeew...

and most of that bug post is 'gibberish' to me.. trying the 4.3.9 php fix..
no clue what's different

JimmyNeutron
Registered User
Posts: 19
Joined: Fri Dec 09, 2005 12:16 am

Post by JimmyNeutron » Tue Dec 13, 2005 12:04 am

I'm using this MOD v0.9.3 on phpBB 2.0.18 and have one problem...

Code: Select all

Parse error: parse error, unexpected T_ARRAY, expecting T_STRING
in /includes/smtp_squirrelmail/class/deliver/Deliver.class.php on line 39
Can someone help-me ?
Ps: Sorry for my bad english.

cla
Registered User
Posts: 21
Joined: Thu Nov 24, 2005 8:22 pm

Post by cla » Tue Dec 13, 2005 11:36 am

JimmyNeutron wrote:

Code: Select all

Parse error: parse error, unexpected T_ARRAY, expecting T_STRING
in /includes/smtp_squirrelmail/class/deliver/Deliver.class.php on line 39
Can someone help-me ?


Umm, that shouldn't be able to happen... From looking at the code, it's obvious line 39 should take a T_ARRAY.

Are you sure you're using the Squirrelmail files in the installation package? Unaltered, untempered.

JimmyNeutron
Registered User
Posts: 19
Joined: Fri Dec 09, 2005 12:16 am

Post by JimmyNeutron » Tue Dec 13, 2005 5:15 pm

cla wrote: Umm, that shouldn't be able to happen... From looking at the code, it's obvious line 39 should take a T_ARRAY.

Are you sure you're using the Squirrelmail files in the installation package? Unaltered, untempered.


Yes, i'm sure... I already revised the code but don't find anything wrong. Some idea ?

Thx
Ps: Sorry for my bad english.

cla
Registered User
Posts: 21
Joined: Thu Nov 24, 2005 8:22 pm

Post by cla » Tue Dec 13, 2005 10:07 pm

JimmyNeutron wrote: Some idea ?


Debug. The call to mail() is done in smtp_squirrelmail.php on line 315:
$length = $deliver->mail($m, $stream);

Check the value of $m just before above that line. You can use the BetterSMTP internal dump function:
dump($m);

By the way: Is another version of squirrelmail installed on the same computer? (I just can't believe that error message...)

stekkel
Registered User
Posts: 1
Joined: Tue Dec 20, 2005 8:29 pm

Post by stekkel » Tue Dec 20, 2005 8:38 pm

cla wrote:
/* If you want to remove the line below, you're probably running php with gettext... :> */
function _($str) { # emulate gettext syntax to avoid errors
message_die(GENERAL_ERROR,$str, "", __LINE__, __FILE__);
}


You're probably running php with gettext. Try removing the entire function altogether.


Hey cla, here Marc, the original developer of the squirrelmail deliver class.

You should change the workaround for gettext as followed:

Code: Select all

if (!function_exists('_') {
    function _($str) { # emulate gettext syntax to avoid errors
        echo $str;
    }
}
That will make it work on php version with or without gettext support.

cla
Registered User
Posts: 21
Joined: Thu Nov 24, 2005 8:22 pm

Post by cla » Wed Feb 01, 2006 10:32 pm

Beware, the mod won't work with phpBB 2.0.19.
Feel free to participate to make it so. :>

AffroThund3r
Registered User
Posts: 17
Joined: Fri Feb 17, 2006 10:43 pm

Post by AffroThund3r » Tue Feb 21, 2006 9:18 pm

I'm getting this error

Code: Select all

Fatal error: Call to undefined function: html_tag() in /home/www/djfish.awardspace.com/phpBB2/includes/smtp_squirrelmail/functions/display_messages.php on line 174
Anyone any ideas?

Ta

cla
Registered User
Posts: 21
Joined: Thu Nov 24, 2005 8:22 pm

Post by cla » Wed Feb 22, 2006 12:17 pm

AffroThund3r wrote: I'm getting this error

Code: Select all

Fatal error: Call to undefined function: html_tag() in /home/www/djfish.awardspace.com/phpBB2/includes/smtp_squirrelmail/functions/display_messages.php on line 174
Anyone any ideas?

Ta


Add http://cvs.sf.net/viewcvs.py/squirrelma ... functions/
display_messages.php?rev=1.53 and http://cvs.sf.net/viewcvs.py/squirrelmail/squirrelmail/
functions/html.php?rev=1.27 to the functions directory

Add
require_once("functions/display_messages.php");
require_once("functions/html.php");

to stmp_squirrelmail.php.

JayD
Registered User
Posts: 5
Joined: Wed Feb 22, 2006 1:17 pm
Contact:

Post by JayD » Wed Feb 22, 2006 1:31 pm

cla wrote: Beware, the mod won't work with phpBB 2.0.19.
Feel free to participate to make it so. :>


AAhh!
Why did i read this áfter aplying the changes.

I do would like to participate but i'd prefer the lazy solution: Where do i get 2.0.18?

cla
Registered User
Posts: 21
Joined: Thu Nov 24, 2005 8:22 pm

Post by cla » Wed Feb 22, 2006 1:37 pm

JayD wrote: I do would like to participate but i'd prefer the lazy solution: Where do i get 2.0.18?


Adjusting the mod for 2.0.19 would involve adjusting a couple of phpBB details. You won't have to mess around in the squirrelmail code...

JayD
Registered User
Posts: 5
Joined: Wed Feb 22, 2006 1:17 pm
Contact:

Post by JayD » Wed Feb 22, 2006 1:57 pm

Well, for the sake of the community ;)

Posting goes wel, except when a user is in a group (tried it with a group with lots o permissions).
when a grouped-user replies he sees a blank screen instead of a message that says everything has gone well. The reply ís submitted to the DB.

I don't recieve a notification in any case.

Do you have any idea where i should change 'some phpBB details' (some lines/functions in posting.php i guess)

JayD
Registered User
Posts: 5
Joined: Wed Feb 22, 2006 1:17 pm
Contact:

Post by JayD » Fri Feb 24, 2006 12:47 pm

I had to change server. Now sendmail() does work correctly.

I could say i'm sorry i couldn't help, but i am way more happy that my forum works correctly now

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3480
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer » Tue Mar 07, 2006 8:31 pm

Any progress?
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

JayD
Registered User
Posts: 5
Joined: Wed Feb 22, 2006 1:17 pm
Contact:

Post by JayD » Wed Mar 08, 2006 5:54 pm

Nope.
It's working for me now (php:sendmail())

Post Reply

Return to “[2.0.x] MODs in Development”