WordPress.org

Make WordPress Core

Opened 13 months ago

Last modified 13 months ago

#48535 new defect (bug)

Incompatibility with PHP 7.3.11

Reported by: szymon.nosal Owned by:
Milestone: Awaiting Review Priority: normal
Severity: critical Version: 5.2.4
Component: General Keywords:
Focuses: Cc:

Description

I set up totally new env with WordPress 5.2.4 on PHP 7.3.11 and I found a couple of problems. In the main opinion, these problems are critical.

  1. Ajax response always contains '0' on the end of the response - default code wp_die('0') is always execute. Below is an example response for install the new plugin (chosen randomly)
{"success":true,"data":{"install":"plugin","slug":"health-check","pluginName":"Health Check & Troubleshooting","activateUrl":"http:\/\/woocommerce.local\/wp-admin\/plugins.php?_wpnonce=6a458d9d59&action=activate&plugin=health-check\/health-check.php"}}0

And message displayed in the admin panel informs that installation failed, but module is installed correctly.

  1. After clicking on the Activate button, after installation module from the zip file, redirect to page like
<url>/wp-admin/plugins.php?action=activate&plugin=wp-serverinfo%2Fwp-serverinfo.php&_wpnonce=2740398a2b

but on the page is error message: The link you followed has expired. but module is activated correctly.

  1. The next one is related to admin wizard setup for WooCommerce plugin, but in my opinion, this is problem with core code, because setup form is loaded correctly, but code is not dying, and try to load this as a normal plugin. I'm attaching a screenshot with this.

Attachments (3)

Wordpress_error.png (43.5 KB) - added by szymon.nosal 13 months ago.
Screenshot for problem 2
Wordpress_error_2.png (122.6 KB) - added by szymon.nosal 13 months ago.
Screenshot for problem 3
Wordpress_error_3.png (61.6 KB) - added by szymon.nosal 13 months ago.
Screenshot for comment

Download all attachments as: .zip

Change History (6)

@szymon.nosal
13 months ago

Screenshot for problem 2

@szymon.nosal
13 months ago

Screenshot for problem 3

#1 follow-up: @SergeyBiryukov
13 months ago

  • Keywords reporter-feedback added

Hi @szymonnosal, welcome to WordPress Trac! Thanks for the report.

I could not reproduce these issues on a clean install with PHP 7.3.11. Do they still happen with all plugins disabled and a default theme (Twenty Nineteen) activated?

#2 in reply to: ↑ 1 @szymon.nosal
13 months ago

Hi @SergeyBiryukov

I downloaded totally new zip from the official WordPress site.

I'm using docker and I prepared two env PHP 7.1.2 (it was on my computer already) and PHP 7.3.11.

In PHP 7.1.2, after open the page, I was redirected into

<path>/wp-admin/setup-config.php

I changed env to PHP 7.3 and I wasn't redirected and I saw information about missing a wp-config file. There is also Fatal error, which I'm including in attachment.

After clicking on the button, the missing file is created correctly, and I'm able to continue the installation. After installation, I have the same problems.

Everything is set as a fresh - no extra plugin(s) and default theme.

It could be a problem with PHP configuration? I have a very similar php.ini file in both 7.1 and 7.3

@szymon.nosal
13 months ago

Screenshot for comment

#3 @szymon.nosal
13 months ago

  • Keywords reporter-feedback removed
Note: See TracTickets for help on using tickets.