Topic: SMTP server form won't retain information

Greetings and salutations and thanks for what looks like some great software.

Unfortunately I cannot get it to remember my SMTP server. I enter the server in the form on admin_options.php and get no error when saving the changes. Hovever when the options page reloads, the server is gone and the box is empty. No e-mails arrive (obviously).
I cannot use my MTA because of ISP restrictions (port 25 is blocked).

My setup:
Debian stable, Apache2, PHP 4.3.10-15, Mysql 4.1, PunBB 1.2.6.

Re: SMTP server form won't retain information

Might be related to a problem I was having with the forum description.  I posted a thread about it in Bug Reports and the reply that I got was:

Smartys wrote:

It's a problem with admin_options.php
The problem is when values are NULL, isset is false, whereas array_key_exist is true

So I'm wondering if your issue is related?

Re: SMTP server form won't retain information

Well, if you used the fix, then the problem shouldn't be there again
I'll check when I get home

Re: SMTP server form won't retain information

If you mean the fix described here:
http://punbb.org/forums/viewtopic.php?id=8086
It doesn't work for me. The SMTP server still won't stick (and now I also got some PHP error msg that flashed by briefly when applying changes).

Re: SMTP server form won't retain information

Queen Elizabeth II wrote:

If you mean the fix described here:
http://punbb.org/forums/viewtopic.php?id=8086
It doesn't work for me. The SMTP server still won't stick (and now I also got some PHP error msg that flashed by briefly when applying changes).

Could it be a cache problem?

6 (edited by Smartys 2005-07-13 20:11)

Re: SMTP server form won't retain information

Queen Elizabeth II wrote:

(and now I also got some PHP error msg that flashed by briefly when applying changes).

Change redirect time to a longer period (so you have time to see the error) and copy/paste the error here. Change redirect time back after, of course

Re: SMTP server form won't retain information

Smartys wrote:
Queen Elizabeth II wrote:

(and now I also got some PHP error msg that flashed by briefly when applying changes).

Change redirect time to a longer period (so you have time to see the error) and copy/paste the error here. Change redirect time back after, of course

Ok here goes:

Warning: Wrong parameter count for array_key_exists() in /var/www/admin_options.php on line 120

Warning: Wrong parameter count for array_key_exists() in /var/www/admin_options.php on line 120

Warning: Wrong parameter count for array_key_exists() in /var/www/admin_options.php on line 120

(this is repeated about 50 times)

Redirecting

Options updated. Redirecting ?

Click here if you do not want to wait any longer (or if your browser does not automatically forward you)

8 (edited by Queen Elizabeth II 2005-07-13 23:03)

Re: SMTP server form won't retain information

Ok all the SMTP related entries in install.php have a value of "NULL" like so:

        'o_smtp_host'                => "NULL",
        'o_smtp_user'                => "NULL",
        'o_smtp_pass'                => "NULL",

Which perhaps could have something to do with the problem?

Edit: Nevermind, I just realized that install.php is probably only used at installation...

Re: SMTP server form won't retain information

Because of course I'm an idiot smile
I just edited my original fix to reflect the correct usage of array_key_exists, try using that instead

Re: SMTP server form won't retain information

Ok that did the trick. Mailing with SMTP appears to be working now (I tested sucessfully) and the form box retains the data.
Thanks a lot. smile

Re: SMTP server form won't retain information

I'm surprised no one told me that the original fix didn't work hmm

12 (edited by afarber 2005-07-14 14:30)

Re: SMTP server form won't retain information

Queen Elizabeth II wrote:

Unfortunately I cannot get it to remember my SMTP server. I enter the server in the form on admin_options.php and get no error when saving the changes. Hovever when the options page reloads, the server is gone and the box is empty. No e-mails arrive (obviously).
I cannot use my MTA because of ISP restrictions (port 25 is blocked).

My setup:
Debian stable, Apache2, PHP 4.3.10-15, Mysql 4.1, PunBB 1.2.6.

Same problem here with

OpenBSD stable, Apache/1.3.29, PHP/5.0.4, PunBB 1.2.6

And one more question please:

I browsed through quite many old posts here when trying to solve
this problem and wonder where do you guys (and girls!) see the
error messages? I see nothing in Apaches' error_log and I don't see
anything in the browser even though I removed the comment from

define('PUN_DEBUG', 1);

in /var/www/htdocs/forum/include/common.php

http://preferans.de/ - russian card game

Re: SMTP server form won't retain information

afarber wrote:

Same problem here with

OpenBSD stable, Apache/1.3.29, PHP/5.0.4, PunBB 1.2.6

Try this:
http://punbb.org/forums/viewtopic.php?pid=47614#p47614
It worked for me.

14

Re: SMTP server form won't retain information

Queen Elizabeth II wrote:

Ok that did the trick. Mailing with SMTP appears to be working now (I tested sucessfully) and the form box retains the data.
Thanks a lot. smile

What did the trick?  I don't understand the solution here.  I'm having this problem myself.  The smtp server won't retain information.

15

Re: SMTP server form won't retain information

I think I fixed it, but I'm not sure how.

Re: SMTP server form won't retain information

jasonw wrote:

What did the trick?  I don't understand the solution here.  I'm having this problem myself.  The smtp server won't retain information.

This:
http://punbb.org/forums/viewtopic.php?pid=47614#p47614

But I would imagine that this fix is already incorporated in 1.2.6.

17

Re: SMTP server form won't retain information

Thanks QEII.  According to the link this has not been fixed in the latest version.  It has to be manually set.