Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
I suspect there’s something off about your PHP setup. Can you create a phpinfo.php file with this in it?
<?php phpinfo(); ?>
And share that URL if possible? Don’t paste that output here, the forums will just mung it all up if you do.
Thread Starter
bg17aw
(@bg17aw)
Hi Jan,
I am testing on WAMP, but here is the phpinfo output:
https://jsfiddle.net/ok94mfkL/
What are you looking for in there? Hard to believe there is something wrong there, but if you do notice something, let me know.
Like I said, older versions of WP install just fine.
Thanks
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Looks like you are running Apache/2.2.22 (Win64) PHP/5.4.3. The Apache2 part is fine but WordPress needs PHP 5.6 or later to work properly.
https://ww.wp.xz.cn/about/requirements/
Can you update your WAMP to use PHP 5.6? PHP 7 works well if you can use that.
Thread Starter
bg17aw
(@bg17aw)
That’s not actually correct, WP doesn’t require PHP 5.6, but PHP 5.2.4 (as per your link).
I don’t think this is the issue.
Upgrade WAMP just to make sure. You never know what new code in WordPress 4.6 is having problems with the older PHP 5.4.3.
Moderator
t-p
(@t-p)
WP doesn’t require PHP 5.6, but PHP 5.2.4
That applies to “If you are in a legacy environment”…
Note: If you are in a legacy environment where you only have older PHP or MySQL versions, WordPress also works with PHP 5.2.4+ and MySQL 5.0+, but these versions have reached official End Of Life and as such may expose your site to security vulnerabilities.
Thread Starter
bg17aw
(@bg17aw)
Hi Tara,
The key here is WordPress also works with PHP 5.2.4+ and MySQL 5.0+
Let’s not confuse thousands of users using anything older than 5.6 by telling them WP won’t work.
WP should work on 5.0+, security fixes are referring to PHP itself and not WP, and I am on 5.4
So not an issue here.
It looks like your attempting to use a variable in the email address field of the Custom Email?
I’ve get this issue at managing WordPress via wp-cli
The root cause in fact that $_SERVER[‘SERVER_NAME’] is empty in CLI mode:
\wp-includes\pluggable.php(352): PHPMailer->setFrom(‘wordpress@’, ‘WordPress’, false)
if ( !isset( $from_email ) ) {
// Get the site domain and get rid of www.
$sitename = strtolower( $_SERVER['SERVER_NAME'] );
if ( substr( $sitename, 0, 4 ) == 'www.' ) {
$sitename = substr( $sitename, 4 );
}
$from_email = 'wordpress@' . $sitename;
}
/**
* Filters the email address to send from.
*
* @since 2.2.0
*
* @param string $from_email Email address to send from.
*/
$from_email = apply_filters( 'wp_mail_from', $from_email );
/**
* Filters the name to associate with the "from" email address.
*
* @since 2.3.0
*
* @param string $from_name Name associated with the "from" email address.
*/
$from_name = apply_filters( 'wp_mail_from_name', $from_name );
$phpmailer->setFrom( $from_email, $from_name, false );