You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ) {
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
The text was updated successfully, but these errors were encountered: