Repository navigation
|
I'm currently working to update a old WordPress 4.8 instance to the latest 7.0 and while setting up local environment for 4.8 using wp-env, this is what I got: I wonder if this is a bug or wp-env just simply does not support older WordPress versions. |
Replies: 2 comments
|
This might be related to https://github.com/WordPress/gutenberg/issues/40745.\ Since WordPress 4.8 does not support PHP 7.4, it might be best to set the PHP version to 7.1 and upgrade incrementally. |
|
The PHP < 7.1 report in #40745 is a different case. This error with WordPress 4.8 matches the old Make sure a stale project-local package is not overriding your global install, then refresh the downloaded sources: npm install --save-dev @wordpress/env@latest
npx wp-env --version
npx wp-env start --updateIf the old generated environment is still reused, back up anything you need from it, run |
This might be related to https://github.com/WordPress/gutenberg/issues/40745.\
Since WordPress 4.8 does not support PHP 7.4, it might be best to set the PHP version to 7.1 and upgrade incrementally.