ColorMag PHP error
-
Hello there!
The page I’ve attached the link to shows error 500 because ColorMag generates the following PHP error:
PHP Fatal error: Uncaught ArgumentCountError: 5 arguments are required, 2 given in /home/customer/www/DOMAIN.com/public_html/wp-content/themes/colormag/inc/template-tags.php:513
Line 513 from the file /home/customer/www/DOMAIN.com/public_html/wp-content/themes/colormag/inc/template-tags.php has the following code:
printf(
get_comment_author_link(),
// If current post author is also comment author, make it known visually.
( $comment->user_id === $post->post_author ) ? ‘<span>’ . esc_html__( ‘Post author’, ‘colormag’ ) . ‘</span>’ : ”
);It seems there is a mismatch in the number of arguments being passed to the “print” function. The “print” function expects a specific number of arguments based on the format string provided, but it seems that your use of “print” is not aligned with its intended use.
Is the theme compatible with PHP 8.2 (which is what the website is using)? Do you have a fix for that error?
Thank you!
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.