• Resolved visserx

    (@visserx)


    After upgrading to PHP7 WP was giving a fatal error regarding opentickets.

    Fatal error: Switch statements may only contain one default clause in ……nl/httpd.www/wordpress/wp-content/plugins/opentickets-community-edition/inc/ticket/ticket.class.php on line 668

    $_GET = wp_parse_args( $_GET, array( 'frmt' => 'html' ) );
    		// do something different depending on the requested format
    		switch ( $_GET['frmt'] ) {
    			default: echo $out; break;
    			default: echo apply_filters( 'qsot-display-ticket-output-' . $_GET['frmt'] . '-format', $out, $code, array(
    				'ticket' => $ticket,
    				'template' => $template,
    				'stylesheet' => $stylesheet,
    				'page_title' => $page_title,
    			) ); break;
    		}
    
    		self::_restore_errors();

    https://wordpress.org/plugins/opentickets-community-edition/

Viewing 1 replies (of 1 total)
  • Plugin Author quadshot

    (@quadshot)

    @visserx

    @aleksman found a solution to this issue and we’ll be including it in our next release.

    comment line 668, cause 2 default clause is not supported in php7

    // default: echo $out; break;

Viewing 1 replies (of 1 total)

The topic ‘Incompatible after upgrade PHP5.6 ->PHP7’ is closed to new replies.