close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Updated server to PHP 5.4 and updated WAUE code - now getting error: Strict Standards: Non-static method Mail::factory()

Thread began 2/04/2015 5:31 pm by markhaynes75235 | Last modified 2/05/2015 6:20 pm by markhaynes75235 | 603 views | 2 replies |


Updated server to PHP 5.4 and updated WAUE code - now getting error: Strict Standards: Non-static method Mail::factory()

I've upgraded my server to PHP 5.4, and started testing my pages that use DataBridge features to insert data and send emails using WAUE. Though the insert and email work, I get the following errors:

Strict Standards: Non-static method Mail::factory() should not be called statically in /home/content/17/9433817/html/abilityconnectiontexas/webassist/email/PEAR_Mail_using_SMTP_php.php on line 190

Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/9433817/html/abilityconnectiontexas/webassist/email/PEAR_Mail_using_SMTP_php.php:190) in /home/content/17/9433817/html/abilityconnectiontexas/volunteersignup.php on line 176

Line 190 of PEAR_Mail_using_SMTP_php.php is:
$theMailer =& Mail::factory('smtp', $paramArray);

Line 176 of volunteersignup.php is the WAUE redirect to load the confirm page:
header("Location: ".$GoToPage);

where the value for $GoToPage is set to the confirm page. I've attached the PEAR_Mail_using_SMTP_php.php and the volunteersignup.php for you to have a look.

I've uploaded all of the files that were changed when I updated the WAUE code:
as well as the two attached pages.

Thanks as always for your help!

Sign in to reply to this post

Ray BorduinWebAssist

That is just a warning and won't prevent the page from working.

You can prevent ignorable errors from showing on your page by adjusting the php.ini error reporting setting to E_ALL & ~E_STRICT and they will magically disappear

You can probably fix it on the page by using the @ symbol which prevents displaying error messages on a single line like:

$theMailer =& @Mail::factory('smtp', $paramArray);

Sign in to reply to this post


Thanks Ray!

I was able to find the line in the Mail.php file on the server where I made the following change:

function &factory($driver, params = array())


static function &factory($driver, params = array())

It's amazing what you can figure out at 2:00 in the morning! ;~}
Sorry I did not post this earlier - and thanks for being a great mentor.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...