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

Dies in php 8 #5

Open
jjrohrer opened this issue Dec 1, 2022 · 1 comment
Open

Dies in php 8 #5

jjrohrer opened this issue Dec 1, 2022 · 1 comment

Comments

@jjrohrer
Copy link

jjrohrer commented Dec 1, 2022

When upgrading my server from 7.4 to PHP 8.0, I encountered this (slightly edited)
Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Papertrail_API::error_handler(), 4 passed and exactly 5 expected in /nas/content/live/ccc/WP_Papertrail_API.php:194

I replaced, in WP_Papertrails_API.php,
this
public static function error_handler( $id, $message, $file, $line, $context )
with
public static function error_handler( $id, $message, $file, $line ) {

Seems to work, but I'm not confident enough in this solution to post a Pull Request.
See also: //https://stackoverflow.com/questions/65201307/too-few-arguments-to-function-exception-error-handler-php8

@sc0ttkclark
Copy link
Owner

Thanks for the heads up! I'm going to revisit this code soon and test/fix PHP 8.0-8.1 compatibility.

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

2 participants