Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

WP 4.9.x in PHP 7.x: 500 Server Error with pages using wp-admin/admin.php

$
0
0

Replies: 0

When my webhost upgraded to PHP 7.1, the WYSIWIG editor had issues so I upgraded to wordpress 4.9.1. The issue with the editor was solved but in my WP dashboard, all pages that start with mysite://wp-admin/admin.php?page= stopped working.

Example:

http://mysite/wp-admin/admin.php?page=wc-settings (woocommerce settings page)
http://mysite/wp-admin/admin.php?page=wpseo_tools (SEO tools)

This is the error displayed in the live environment:

“500 Internal Server Error

If you get this error when you access .php files, most likely your code is old and must be updated. We have PHP 7.1 and some old insecure functions have been removed. Just update your scripts and error will gone.”

I tested locally different combinations of PHP, WP and Woocommerce with debugging set to true in order to zero in on the cause of the problem. I noticed that admin.php in WP 4.9.x and higher as well woocommerce worked fine with PHP 5.4.x. But when I use PHP 7.1 and PHP 7.4, the ff. error shows:

This page isn’t working
localhost is currently unable to handle this request.
HTTP ERROR 500

This makes me think: Is there a code in wp-admin/admin.php in WP 4.9.x that is obsolete in relation to PHP 7.x?

I hope you can help me. Many thanks.


Viewing all articles
Browse latest Browse all 59525

Trending Articles