-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
Bug: Autodeploy failures with WordPress 6.0 #1385
Comments
Just to add more context: this fails for non-Multisite projects, too. |
EDIT |
Discussion about this issue: https://discourse.roots.io/t/wordpress-6-0-update-deploy-failed/23225/7 It boils down basically to this:
If |
Tangentially related: as of WordPress 2.8, the |
@JJJ: So it would make sense to remove these lines for setting the The only problem that may arise in terms of backwards compatibility is when someone deploys a quite old, un-updated WordPress site with a current Trellis. Maybe check for the WordPress version to be deployed and cancel the deployment with a warning, or use a different |
I think: yes. (Since WordPress 2.8, It seems unlikely that WordPress will ever know what to do if ( Personally, individually, I like the idea of a |
@SteelWagstaff, @codepuncher, @mike-sheppard, @JJJ: Fixed with #1388. |
Thanks for the work @strarsis! |
@SteelWagstaff have you managed to test #1388 that was merged into master? I'm eager to hear your feedback for the multisite issue as I too am having issues there. |
Summoning @codepuncher; @SteelWagstaff; @JJJ; @cfaria for the new PR that eliminates the need for those temporary PHP constants and allows for a normal deployment of multisite sites: #1391 |
Legend @strarsis ! All deployments (single and multi) work as expected. Thanks for the work on that. |
Going to close this issue. I'll do a new release soon that will have this fix. Thanks to everyone for the help and especially @strarsis for all this hard work. |
Terms
Description
What's wrong?
Our Trellis-based autodeploy pipeline is failing to create a WordPress multisite installation with the latest WordPress 6.0 release. In particular, this command is failing:
trellis/roles/deploy/hooks/finalize-before.yml
Lines 7 to 8 in f1f8ff1
We think it's because the WP CLI command does like WPMU_PLUGIN_DIR being defined as
null
:trellis/roles/deploy/files/tmp_multisite_constants.php
Line 5 in f1f8ff1
We don't know what might be different about WordPress 6.0 that might be producing this problem/issue.
What have you tried?
We can complete the deploy by removing the
--require
parameter intrellis/roles/deploy/hooks/finalize-before.yml
Lines 7 to 8 in f1f8ff1
We can also complete the deploy by commenting out
define('WPMU_PLUGIN_DIR', null);
heretrellis/roles/deploy/files/tmp_multisite_constants.php
Line 5 in f1f8ff1
However, neither of these seem like desirable solutions, considering the rationale provided by the author of this PR: #801. Not sure if others are experiencing similar problems or have more insight into how to resolve them.
What insights have you gained?
This WordPress multisite stuff is complicated 😂
Possible solutions
See the
What have you tried?
sectionTemporary workarounds
See the
What have you tried?
sectionSteps To Reproduce
stderr
output has severalstrpos(): Empty needle
warnings that reference this line in wp-includes/link-template.php: https://github.com/WordPress/WordPress/blob/290742cada0b3761d2aac83db2a337756fee64eb/wp-includes/link-template.php#L3535Expected Behavior
The deploy was able to install WordPress 6.0 in the same way that it was previously able to install WordPress 5.9.3, etc.
Actual Behavior
The 'TASK [deploy: WordPress Installed?]
step fails with a
stderroutput which includes several
strpos(): Empty needle` warnings that reference this line in wp-includes/link-template.php: https://github.com/WordPress/WordPress/blob/290742cada0b3761d2aac83db2a337756fee64eb/wp-includes/link-template.php#L3535Relevant Log Output
Versions
Not sure, sorry
The text was updated successfully, but these errors were encountered: