• Resolved mpek

    (@mpek)


    Fatal error: Switch statements may only contain one default clause in /home/www/pekic.de/openticketce/wp-content/plugins/opentickets-community-edition/inc/ticket/ticket.class.php on line 668

    I just installed it on a fresh WordPress (German) installation.
    Theme is standard WordPress’ Twenty Sixteen.
    I set up Woocommerce with its initial dialogue and then wanted to activate OTCE and the error came up. What’s wrong?

    Woocommerce systemreport:

    ### WordPress Environment ###
    
    Home URL: http://pekic.de/openticketce
    Site URL: http://pekic.de/openticketce
    WC Version: 2.5.5
    Log Directory Writable: ✔
    WP Version: 4.5.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Language: de_DE
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.0.5
    PHP Post Max Size: 70 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    SUHOSIN Installed: –
    MySQL Version: 5.5.31
    Max Upload Size: 70 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 2.5.5
    :
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_termmeta: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    
    ### Active Plugins (2) ###
    
    Automatic Plugin Updates: von White Fir Design – 1.0.2
    WooCommerce: von WooThemes – 2.5.5
    
    ### Settings ###
    
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ✔
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Shop-Basis: #4 - /shop/
    Warenkorb: #5 - /warenkorb/
    Kasse: #6 - /kasse/
    Mein Konto: #7 - /mein-konto/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Twenty Sixteen
    Version: 1.2
    Author URL: https://wordpress.org/
    Child Theme: ✕ – Wenn du WooCommerce mit einem Theme
    das du nicht selbst entwickelt hast
    an eigene Bedürfnisse anpasst
    dann empfehlen wir die Verwendung eines Child Themes. Siehe Wie du ein Child Theme erstellst (engl.)
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –

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

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

    (@quadshot)

    We’ve discovered that this is a php7 issue, and will be resolved in next release.

    Another customer found a solution and here is what worked:

    Comment line 668, cause 2 default clause is not supported in php7 xD. Plugin now works as it should:

    // default: echo $out; break;

Viewing 1 replies (of 1 total)

The topic ‘Plugin cannot be activated, because it causes a fatal error’ is closed to new replies.