rollbar / rollbar-php-wordpress

Official WordPress plugin from Rollbar, Inc.
https://rollbar.com/
GNU General Public License v2.0
15 stars 20 forks source link

Please fix compatibility with PHP 8.1 #113

Closed therealgilles closed 1 year ago

therealgilles commented 1 year ago

I am getting the following warnings from PHP 8.1:

[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Level implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Level.php on line 5
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Frame implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Frame.php on line 3
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Context implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Context.php on line 3
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\ExceptionInfo implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/ExceptionInfo.php on line 3
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Trace implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Trace.php on line 3
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Body implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Body.php on line 3
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Data implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Data.php on line 5
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Request implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Request.php on line 3
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Server implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Server.php on line 3
[23-Jan-2023 02:57:30 UTC] PHP Deprecated:  Rollbar\Payload\Payload implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in .../wp-content/plugins/rollbar/vendor/rollbar/rollbar/src/Payload/Payload.php on line 6
cyrusradfar commented 1 year ago

We will look into this, thank you.

danielmorell commented 1 year ago

Hi @therealgilles. This is a known issue with v1 of the core Rollbar PHP library. I believe this was resolved in v3.1. We just released v4 beta of the core library. Once the stable version is out, I should be able to rewrite the WP plugin and drop a new major version of the plugin.

I am curious do you install the Rollbar WP plugin with the plugin manager or composer?

therealgilles commented 1 year ago

I use composer. The v4 beta does not seem to include the Rollbar WP plugin, it only includes the PHP library. Am I wrong? The issues are in the Rollbar WP plugin.

danielmorell commented 1 year ago

Sorry for the late reply to your question. The issue was in the core PHP library. But we want to update the plugin to use the latest v4.

oohnoitz commented 1 year ago

Since v4 of the core library has been released, are there still any plans to update this plugin?

anthropos9 commented 1 year ago

Has there been any update to this issue? I'd like to update a site to PHP 8.1, but can't until this is resolved. Thanks.

mondalaci commented 1 year ago
[30-Jun-2023 21:24:09 UTC] PHP Deprecated:  Rollbar\Payload\Notifier implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/rollbar-php-wordpress-2.6.4/vendor/rollbar/rollbar/src/Payload/Notifier.php on line 3

@danielmorell Would you please fix these deprecation warnings and release a new version, preferably via the official WordPress plugin site, too?

Debugging WordPress is harder when the log is full of these warnings.

cyrusradfar commented 1 year ago

We actually have some new energy to help on our wordpress and will plan some clean up. We'll do our best to get this shored up. I've added this to their roadmap.

Appreciate the patience and apologies for the noise in your logs.