Warning messages to be fixed or not shown
-
Hi there.
I’m currently facing the issue and have no idea where and what to fix it. I hope someone can advice or support.
A website that I manage shows multiple Warning messages on several pages, not on top page. The errors messages and the actual codes are below.Thanks in advance.
Error messages
Warning: Missing argument 2 for Visualizer_Module::filterChartTitle() in /usr/home/XXXX/html/wp-content/plugins/visualizer/classes/Visualizer/Module.php on line 804
Actual codes(php)
`public function filterChartTitle( $post_title, $post_id ) {
$post_type = get_post_type( $post_id );
$post_title = trim( $post_title );
if ( ‘visualizer’ === $post_type && ‘Visualization’ === $post_title ) {
return sprintf( ‘%s #%d’, $post_title, $post_id );
}
return $post_title;
}`
- The topic ‘Warning messages to be fixed or not shown’ is closed to new replies.