1

Topic: Register Error

When a new user registers on my (totally vanilla) v1.2.3 install, when the confirmation page is displayed the following text appears at the top of the page (twice) just above the normal page header:

Notice: Array to string conversion in /home/content/g/o/o/googolguy/html/forums/include/email.php on line 91
Notice: Array to string conversion in /home/content/g/o/o/googolguy/html/forums/include/email.php on line 91

The new registration occurs and the emails are sent, but this is sure disconcerting to the new user. Any ideas why this is happening?

Re: Register Error

Just curious, which version of PHP are you running? Also, are you using Zend Optimizer? In that case, which version of that?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by rebjr 2005-03-23 22:42)

Re: Register Error

The site is using PHP Version 4.3.10. Also, based on the site's PHP Info Page it looks like the Zend Optimizer is being used:

This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies  with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies  with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies

Re: Register Error

I very much doubt this is a PunBB error. I'm still interested in what's wrong though. Open up email.php and look up:

mail($to, $subject, $message, $headers);

replace it with:

dump($to, $subject, $message, $headers);

And then cut and paste what it spits out into this topic.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5 (edited by rebjr 2005-03-24 17:08)

Re: Register Error

OK, did that and here is what was output to my browser window:

rob@xyz.com,scott@xyz.com

Alert - New registration

User 'reb3' registered in the forums at http://www.positivemusicassociation.com/forums

User profile: http://www.positivemusicassociation.com … e.php?id=6

--
Forum Mailer
(Do not reply to this message)

From: "Positive Music Association Mailer" Date: Thu, 24 Mar 2005 15:53:54 +0000
MIME-Version: 1.0
Content-transfer-encoding: 8bit
Content-type: text/plain; charset=iso-8859-1
X-Mailer: PunBB Mailer

Note: I obfuscated the email addresses above, but everything else is unchanged.

6 (edited by Smartys 2005-03-24 15:59)

Re: Register Error

You're 1 version behind according to the footer of your page wink
(No, that won't fix your problem, but you should keep upgraded)

7

Re: Register Error

I ended up sticking this near the top of email.php which seemed to "solve" the problem:

// Report all errors except E_NOTICE
error_reporting (E_ALL ^ E_NOTICE);

Also upgraded to the latest version. :-)

Re: Register Error

Well, according to the output you pasted, none of those variables are an array, so it must be an error with your host's PHP setup. Ignoring E_NOTICE is a solution.

"Programming is like sex: one mistake and you have to support it for the rest of your life."