• Resolved wp_kc

    (@wp_kc)


    I found a few of these errors in a debug file on one of my web sites that has ninjascanner installed…

    PHP Fatal error: Uncaught ValueError: Unknown format specifier "v" in /wp-content/plugins/ninjascanner/lib/scan.php:22

    I assume you meant for these ‘%’ characters in your sprintf format strings to be ‘%s’…

    $lock_status = nscan_get_lock_status(); 
    if ( empty( $lock_status['current_step'] ) ) { 
    	nscan_log_error( sprintf( 
    		__('Missing % value. Exiting scanning process', 'ninjascanner'), 
    		"'current_step'" 
    	) ); 
    	touch( NSCAN_CANCEL ); 
    } 
    if ( $lock_status['status'] != 'success' ) { 
    	nscan_log_error( sprintf( 
    		__('Missing % value. Exiting scanning process', 'ninjascanner'), 
    		"'status'" 
    	) ); 
    	exit; 
    } 
Viewing 1 replies (of 1 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Thanks for reporting the issue.
    Indeed, both % should be %s. I’ll fix it in the next release.

Viewing 1 replies (of 1 total)
  • The topic ‘sprintf format character error’ is closed to new replies.