• Resolved lurito

    (@lurito)


    The last version show this : Please i need your Help.. i’ve only the free version of this plugin :

    Warning: number_format() expects parameter 1 to be double, string given in /kunden/kawebco.net/webseiten_2016/fusionlatina/wp-content/plugins/the-events-calendar/common/src/Tribe/Cost_Utils.php on line 110

Viewing 3 replies - 1 through 3 (of 3 total)
  • I had almost the same error in the sidebar. I just had
    Warning: number_format() expects parameter 1 to be float, string given
    Current WP and Plugin installation.

    I fixed this by adding a typecasting to the function call (as a quickfix)

    		if ( '0.00' === number_format( (float)$cost_with_period, 2, '.', ',' ) ) {
    			return esc_html__( 'Free', 'the-events-calendar' );
    		}

    I think the final solution should be, that the function convert_decimal_separator should return a numerical value and no string.

    Is there a planned update to fix this warning error?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: number_format() expects parameter 1 to be double’ is closed to new replies.