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

Cannot install or update to 4.5.0 #415

Closed
2 tasks done
phamquangbaoplus opened this issue Jun 2, 2021 · 7 comments
Closed
2 tasks done

Cannot install or update to 4.5.0 #415

phamquangbaoplus opened this issue Jun 2, 2021 · 7 comments

Comments

@phamquangbaoplus
Copy link

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the plugin and it is still present.

WordPress version

5.7.2

Cloudflare-WordPress version

4.5.0

PHP version

8.0.5

Expected result

The plugin will works

Actual result

Error Details

An error of type E_ERROR was caused in line 15 of the file /home/xxx/public_html/wp-content/plugins/cloudflare/vendor/symfony/polyfill-intl-normalizer/bootstrap.php. Error message: Uncaught Error: Failed opening required '/home/xxx/public_html/wp-content/plugins/cloudflare/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php' (include_path='.:/usr/local/lsws/lsphp80/share/pear:/usr/local/lsws/lsphp80/share/php') in /home/xxx/public_html/wp-content/plugins/cloudflare/vendor/symfony/polyfill-intl-normalizer/bootstrap.php:15
Stack trace:
#0 /home/xxx/public_html/wp-content/plugins/cloudflare/vendor/composer/autoload_real.php(69): require()
#1 /home/xxx/public_html/wp-content/plugins/cloudflare/vendor/composer/autoload_real.php(59): composerRequire386a6fce91e17b37d63cb251597d5bd5()
#2 /home/xxx/public_html/wp-content/plugins/cloudflare/vendor/autoload.php(7): ComposerAutoloaderInit386a6fce91e17b37d63cb251597d5bd5::getLoader()
#3 /home/xxx/public_html/wp-content/plugins/cloudflare/cloudflare.loader.php(3): require_once('...')
#4 /home/xxx/public_html/wp-content/plugins/cloudflare/cloudflare.php(49): require_once('...')
#5 /home/xxx/public_html/wp-admin/update.php(100): include('...')
#6 {main}
thrown

Steps to reproduce

Update from 4.4.0 to 4.5.0 from dashboard

Additional factoids

No response

References

No response

@phamquangbaoplus phamquangbaoplus changed the title 4.5.0 4.5.0 crash on update Jun 2, 2021
@phamquangbaoplus phamquangbaoplus changed the title 4.5.0 crash on update Cannot install or update to 4.5.0 Jun 2, 2021
@jacobbednarz
Copy link
Member

jacobbednarz commented Jun 2, 2021

Apologies but we don't officially support PHP 8 as of yet. CI runs with it and we have plans on adding full support but we're not quite there yet.

If 4.4.0 is working for you, pin to it and I'll see if we can bump up PHP 8 support for future releases (including the WordPress release side of things).

@phamquangbaoplus
Copy link
Author

Hey, you guys should come up with a fix as soon as possible.

It is a popular plugin and a lot of people are getting the same error.

It requires minimum php 7.2, but doesn't support php 8. How many people can use your plugin with that requires?

Thanks.

@jacobbednarz
Copy link
Member

I'm afraid it's as simple as that.

Regardless of whether or not we want to support PHP 8, the WordPress plugin release process doesn't allow linting of PHP 8 and subsequently fails the SVN release.

Until that is fixed, we cannot release PHP 8 compatible plugins.

@jacobbednarz
Copy link
Member

I would also recommend following WordPress's own advice that PHP 8 in WordPress should be considered beta quality while they are working on upgrading core, infrastructure and the ecosystem to support it.

@garrettgalow
Copy link
Contributor

A most recent link showing effectively the same in a nice table: https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

For WordPress 5.6 & 5.7 PHP 8 is beta

@Reforced
Copy link

Reforced commented Jun 2, 2021

In this commit it seems the bootstrapper for PHP 8 was removed, causing all the failures now. The missing bootstrap file is /wp-content/plugins/cloudflare/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php. As fix you can manually add it again, it's available in the Symfony repo.

If instead of fixing you do want to roll-back to v4.4.0, make sure to disable auto-updating for the plugin!

@Wounded19
Copy link

Wounded19 commented Jun 3, 2021

We're on PHP 7.4 at the Pantheon, the same thing happened after the latest update. Had to revert to the previous version. I suppose it's not just 8.0 related.

This is the log
[03-Jun-2021 12:36:23 UTC] PHP Warning: require(/code/wp-content/plugins/cloudflare/vendor/composer/../symfony/polyfill-php72/bootstrap.php): failed to open stream: No such file or directory in /code/wp-content/plugins/cloudflare/vendor/composer/autoload_real.php on line 69 [03-Jun-2021 12:36:23 UTC] PHP Fatal error: require(): Failed opening required '/code/wp-content/plugins/cloudflare/vendor/composer/../symfony/polyfill-php72/bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /code/wp-content/plugins/cloudflare/vendor/composer/autoload_real.php on line 69

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

5 participants