-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support PHP 8.2 in local development #103
Comments
I updated PHP to v8.2.10, wrote
These appear consistent with the upgrade notes for 8.2 |
When I tried to access
Fix
|
I was then able to start WordPress. With many more Deprecated messages appearing. |
Proposed solution for PHP 8.1
|
There were far fewer deprecation messages with PHP 8.1
It looks like I should be updating phpMyAdmin as well. I installed phpMyAdmin v5.2.1 ( All languages version). It works for PHP 8.0, 8.1 and 8.2 |
PHP versions 8.0, 8.1 and 8.2 have compatible DLLs for the Apache server. It's easy to switch between versions
|
There are some 3rd party plugins I needed to update, deactivate or delete
Deprecated: Creation of dynamic property AWCDP_Front_End::$has_payment_plans is deprecated |
Having got a couple of web pages to run without any Deprecated messages I then tried to run my In Situ PHPUnit tests.
Looks like I'll have to update PHPUnit to 10.3. In case there are changes required to update to PHPUnit 10,
The tests ran with PHPUnit 9.6.12, with lots of messages and a couple of (as yet) unexplained failures.
It would appear that the class to call has changed. I don't yet know what it is so I reverted to PHP 8.0 and got
With PHP 8.1 the result was the same as PHP 8.2. |
This message suggests I need to update WP-CLI
Currently installed version is WP-CLI 2.5.0. Latest is WP-CLI v2.8.1 I updated WP-CLI and the above message went away
It seems I need to update the During the update I got several Deprecated messages from Symfony
|
Having got the PHPUnit tests to pass in There were other plugins that needed changing. The |
This wasn't necessary but I did it anyway, upgrading from
to
Process
Also note that the PHP .dll that's loaded by Apache for PHP 8.2 works for 8.0, 8.1 and 8.2
It doesn't need changing when switching between PHP version using the |
I should also update my projects in PhpStorm to tell them I'm using PHP 8.1 or PHP 8.2 |
In PHP 8.1's documentation for Deprecations and backward compatibility breaks This is the reason for messages such as:
Up until now when I changed code to fix this problem I either didn't call the routine when the value was Wacky. I wrote this routine to demonstrate the behaviour.
|
Messages from Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\apache\htdocs\wp55\wp-includes\functions.php on line 2187 These seem to come from create-block-theme plugin v1.13.2.
Updating to v1.13.4 resolves the problem. |
Deprecated message for URL
Looks like we need to update Jetpack from 12.2 to 12.8.1 Also logged was
|
PHP 8.3.0 was released on 23 Nov 2023. |
Note: PHP 8.1 went out of active support 7 days ago. It still has security support until Nov 2024. |
This problem occurs in
C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\bwtrace-actions.php(286:2) bw_trace_error_handler(1) 125 1 2023-12-07T11:30:50+00:00 1.216485 0.042415 cf=wp_head,wpseo_head,wpseo_adjacent_rel_url 29690 93 781 58720256/58720256 256M F=1116 err Array
@#:0 33 0
|
and is implemented by Yoast\WP\SEO\Integrations\Front_End_Integration::adjacent_rel_url;3 In class The page contains a Neither I suggest that the the filter function
|
The problem occurs for the template part
|
I reproduced the problem creating a new page and the query above. |
|
PHP 8.2.10 was released on 31 August 2023. See https://www.php.net/releases/8.2/en.php
I'm currently running PHP 8.0 which is out of Active Support but on Security Support until 26 Nov 2023.
See https://www.php.net/supported-versions.php
Requirement
Proposed solution
https://windows.php.net/downloads/releases/php-8.2.10-Win32-vs16-x64.zip
php82
.p80.bat
ind_drive\dos
top82.bat
php.ini
fromphp80
tophp82
https://www.apachelounge.com/download/VS17/binaries/httpd-2.4.57-win64-VS17.zip
The text was updated successfully, but these errors were encountered: