Wordpress issue with php 7 - wordpress

I'm trying to install WordPress on host with PHP version 7 but WordPress style and scripts seems not work properly and WP themes ruined ( even in WP installation steps ) .
It works fine on PHP 5.6
here's my server information :
PHP : 7.1.0
Apache : 2.2.29
MySQL Version : 5.5.52-cll

WordPress 4.6 isn't compatible with PHP 7.1 but WordPress 4.7 will be.
https://core.trac.wordpress.org/ticket/37772

Related

Wordpress php version not supporting

When I am updating PHP 7.2 to 7.4 or higher version it's not supporting. The website looks ugly.
https://tutorial.eyehunts.com/
I found an issue with old "Crayon Syntax Highlighter". Deactivated plugin and updated site PHP version 7.4, working fine now.
https://wordpress.org/support/article/debugging-in-wordpress/#example-wp-config-php-for-debugging

How to run wordpress v 4.2 with php 7.0

I have a wordpress project version 4.2 with php v5.5
I want to run this project in my localhost where I have php 7.0
How to do update?
Thanks in advance
Try setting up your local dev environment using Local by Flywheel. Local includes the option to choose which version of PHP to use when setting up a site. https://local.getflywheel.com/

Intall MCrypt extension in nginx server with PHP 7

I got a server with Ubuntu 16.04. I've installed nginx and PHP 7 with fpm. I need to install MCrypt extension but I cannot find how to do it, I found some information for PHP 5.6 and I'm not sure if the process is the same. How can I do it?
You may have to download the latest version of phpmyadmin 4.6.6
Fixes for PHP 7.1
Problems with MySQL servers running with lower_case_names=2
Fixes for several PHP notices/warnings being shown
they've fixed this bug
by the way , to install mcrypt in unbutu for PHP 7:
apt-get install php7.0-mcrypt
which again is DEPRECATED in PHP 7.1.x
Warning
This extension has been deprecated as of PHP 7.1.0 and moved to PECL
as of PHP 7.2.0.

wp-redirect(), php 5.5 and fastCGI

I recently had to move a heavily modified wordpress project to a bare bones server. Which I had to install everything from scratch. I tried both ubuntu 14.04 and centos 7. Ubuntu came with php 5.5 and centos with 5.4
My script used to work very well on hostgator. Which was a shared host and fastCGI was enabled there with php 5.4
However when I moved this to the new server any function that used wp-redirect() stopped working. But when I install fastCGI it suddenly starts to work. Never came across this before. DO you have any idea of why this is happening?
This is happening beacuse of the way WordPress is setting header statuses. See the implementation of wp_redirect here https://core.trac.wordpress.org/browser/tags/4.1/src/wp-includes/pluggable.php#L1147
See the extracted code here:
if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
You can examine the status_header function here status_header definition.
A possible fix would be to amend the function or since PHP 5.4 you can use http_response_code.

WordPress 3.7.1 Admin Incompatible with XDebug?

XDebug appears to block the WordPress admin area from loading.
Has anyone else seen that? Does someone have a fix?
This is:
Mac OS X 10.9
MAMP Pro 2.2
WordPress 3.7.1
PHP 5.5.3
Xdebug 2.2.3
Xdebug is launched with:
zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
Bob

Resources