• 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;
    }`

Viewing 1 replies (of 1 total)
  • Hey, looks like an issue with your Visualizer plugin, have you tried reinstalling it?

    If everything is working fine and you only want to get rid of the warnings, check if you don’t have PHP error display enabled in your .htaccess, PHP.ini or any other server-side settings option, some plugins also have error display options.

    Double check if you don’t have wp-debug enabled in wp-config.

    And lastly, you can also try using these command via SSH to check if you don’t have any error display code enabled in some of your files (sometimes theme files have it)

    grep -Ril “error_reporting”

    and

    grep -Ril “ini_set(‘display_errors’, 1);”

    This should help you find any files that could potentially be forcing error display.

    Keep in mind the commands can take a while to process since they will scan all your files for the text strings.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning messages to be fixed or not shown’ is closed to new replies.