Skip to content
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

[CMSP-464] v5.9.6 installs both Pantheon mu-plugins #29

Open
tedw opened this issue Jun 15, 2023 · 3 comments
Open

[CMSP-464] v5.9.6 installs both Pantheon mu-plugins #29

tedw opened this issue Jun 15, 2023 · 3 comments

Comments

@tedw
Copy link

tedw commented Jun 15, 2023

I was just updating an old site to the latest version of 5.9 and noticed it installed both the older /mu-plugins/pantheon plugin (and pantheon.php file) as well as the newer /mu-plugins/pantheon-mu-plugin plugin. This starts happening in 5.9.6.

Is there any reason why we can’t remove the old plugin?
https://github.com/pantheon-systems/wordpress-composer/tree/5.9.7/wp-content/mu-plugins

Currently, I have to manually delete the old plugin or else I get this error:

Fatal error: Cannot redeclare Pantheon_Cache() (previously declared in /code/web/wp-content/mu-plugins/pantheon-mu-plugin/inc/pantheon-page-cache.php:511) in /code/web/wp-content/mu-plugins/pantheon/pantheon-page-cache.php on line 546

Thanks!

@tedw tedw changed the title Upgrading from 5.9.5 to 5.9.6 install both pantheon mu-plugins v5.9.6 installs both Pantheon mu-plugins Jun 15, 2023
@tedw
Copy link
Author

tedw commented Jun 15, 2023

In case anyone else runs into this, I was able to fix it by appending the following to/scripts/composer/cleanup-composer:

if [ -d "web/wp-content/mu-plugins/pantheon/" ]; then
  rm -rf web/wp-content/mu-plugins/pantheon
fi

if [ -f "web/wp-content/mu-plugins/pantheon.php" ]; then
  rm web/wp-content/mu-plugins/pantheon.php
fi

@pwtyler pwtyler changed the title v5.9.6 installs both Pantheon mu-plugins [CMSP-464] v5.9.6 installs both Pantheon mu-plugins Jun 15, 2023
@pwtyler
Copy link
Member

pwtyler commented Jun 15, 2023

Thanks for the report— we're tracking this internally as CMSP-464.

@chadevans
Copy link

This issue also affects:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants