• Resolved francisco2611

    (@francisco2611)


    HEllo the calendars are visible on my website, but once I updated to php8 / WP 6.0.2 & WP calendar 7.0.6 I not able to access the MENU CALENDAR on the WP dashboard.. I have a critical error sayin :
    Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/locationjhq/www/wp-content/plugins/wp-simple-booking-calendar-premium/views/calendar/calendars.php on line 42

    If I open calendars.php the line 42 is the following:

    <?php 
        
        $order = (!isset($_GET['order'])) ? 'asc' : ($_GET['order'] == 'desc') ? 'desc' : 'asc';
        $orderby = (!isset($_GET['orderby'])) ? 'id' : $_GET['orderby'];
        switch($orderby){
            case 'id':
                $orderbyQuery = 'ORDER BY calendarId';
                break;
            case 'title':
                $orderbyQuery = 'ORDER BY calendarTitle';
                break;
            case 'created':
                $orderbyQuery = 'ORDER BY createdDate';
                break;
            case 'modified':
                $orderbyQuery = 'ORDER BY modifiedDate';
                break;
            default:
                $orderbyQuery = 'ORDER BY calendarId';
        }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP 8 / WP 6.0.2 error’ is closed to new replies.