Support

Home Forums Event Espresso Premium GETTING FATAL ERROR NEED HELP

GETTING FATAL ERROR NEED HELP

Posted: June 29, 2017 at 8:49 am

Viewing 5 reply threads


David Heynen

June 29, 2017 at 8:49 am

I changed hosting providers and now that I have I cant get seating chart to work. I get the following error… Fatal error: Switch statements may only contain one default clause in ……../wp-content/plugins/espresso-seating/controller.php on line 38

Any suggestions how to resolve this?

Thanks


Creative2

June 29, 2017 at 9:32 am

Please note, I am not an Event Espresso spokesperson, I am just a customer.

What PHP version does your new host have?


Josh

  • Support Staff

June 29, 2017 at 10:38 am

Hi David,

You can fix this by removing/commenting out line 34 of the espresso-seating/controller.php file.


David Heynen

June 29, 2017 at 11:40 am

I dont see commenting? this is what I have:

<?php

function event_espresso_manage_seating_chart (){
do_action(‘ee_seating_chart_css’);
do_action(‘ee_seating_chart_js’);
do_action(‘ee_seating_chart_flush_expired_seats’);
if ( isset($_REQUEST[‘seating_chart_action’]) ){
switch($_REQUEST[‘seating_chart_action’]){
case ‘create’:
create_seating_chart();
break;
case ‘edit’:
edit_seating_chart();
break;
case ‘seat_list’:
seat_list();
break;
case ‘add_seat’:
add_seat();
break;
case ‘edit_seat’:
edit_seat();
break;
case ‘delete_seat’:
delete_seat();
break;
case ‘delete’:
delete_seating_chart();
break;
case ‘manage_event_seating_chart’:
manage_event_seating_chart();
break;
case ‘seating_chart_list’:
default:
display_seating_chart_list();
break;
case ‘seating_chart_section_alignment’:
default:
display_seating_chart_section_alignment();
break;
}
}else{
display_seating_chart_list();
}

}

/*
* Display list of available seating chart
*/
function display_seating_chart_list(){
require_once(dirname(__FILE__).’/template/seating_chart_list.php’);
}

/*
* Create a new seating chart
*/
function create_seating_chart(){
require_once (dirname(__FILE__).’/lib/class/reader.php’);
require_once(dirname(__FILE__).’/template/create_seating_chart.php’);
}

/*
* Edit seating chart
*/
function edit_seating_chart(){
require_once(dirname(__FILE__).’/template/edit_seating_chart.php’);
}

/*
* Display seats for a seating chart
*/
function seat_list(){
require_once(dirname(__FILE__).’/template/seating_chart_seat_list.php’);
}

/*
* Add a seat in a seating chart
*/
function add_seat(){
require_once(dirname(__FILE__).’/template/create_seat.php’);
}

/*
* Modify a seat in a seating chart
*/
function edit_seat(){
require_once(dirname(__FILE__).’/template/edit_seat.php’);
}

/*
* Manage seating chart associated with an event
*/
function manage_event_seating_chart(){
require_once(dirname(__FILE__).’/template/manage_event_seating_chart.php’);
}

/*
* Display section of seating chart for alignment
*/
function display_seating_chart_section_alignment(){
require_once(dirname(__FILE__).’/template/edit_section_alignment.php’);
}


Josh

  • Support Staff

June 29, 2017 at 12:24 pm

Change:

case 'seating_chart_list':
default:
    display_seating_chart_list();
    break;

to:

case 'seating_chart_list':
    display_seating_chart_list();
    break;


David Heynen

June 29, 2017 at 12:34 pm

That seemed to do the trick!!! Thank you so much for your help.

Viewing 5 reply threads

The support post ‘GETTING FATAL ERROR NEED HELP’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso