• Resolved rsquared300

    (@rsquared300)


    The plugin page states the plugin requires PHP 5.6 or greater. However, the latest update version 2.1 throws a fatal error in PHP < 7.3.

    PHP Parse error: syntax error, unexpected ‘)’ in /home/site/public_html/wp-content/plugins/post-smtp/Postman/PostmanViewController.php on line 468

    printf( 
    							wp_kses_post( '%s</span></p>' ), 
    							sprintf( 
    								wp_kses_post( '%s <a href="%s">%s</a> %s', 'post-smtp' ), 
    								esc_html__( 'Please consider' ),
    								esc_url( 'https://ww.wp.xz.cn/support/view/plugin-reviews/post-smtp?filter=5' ),
    								esc_html__( 'leaving a review' ),
    								esc_html__( 'to help spread the word! :D' ),
    							) 
    						);

    The allowing of the trailing comma in function calls wasn’t implemented until PHP 7.3.

    You should either update the plugin requirement of PHP 7.3 or greater, or, remove the comma on line 467:

    esc_html__( 'to help spread the word! :D' ),

    to be

    esc_html__( 'to help spread the word! :D' )

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘BUG: Fatal Error with PHP 7.2’ is closed to new replies.