Plugin Directory

Changeset 3023496


Ignore:
Timestamp:
01/18/2024 12:55:17 PM (2 years ago)
Author:
eventilla
Message:

Fixed event fetching process getting stuck if Eventilla API connection was not available

Location:
eventilla-events/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • eventilla-events/trunk/README.txt

    r2975484 r3023496  
    44Tags: events, event
    55Requires at least: 5.8
    6 Tested up to: 6.3.1
     6Tested up to: 6.4.2
    77Requires PHP: 7.4
    8 Stable tag: 1.7.5
     8Stable tag: 1.7.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4646
    4747== Changelog ==
     48= 1.7.6 =
     49Fixed event fetching process getting stuck if Eventilla API connection was not available
    4850= 1.7.5 =
    4951Added short description parameter to API filtering options.
  • eventilla-events/trunk/eventilla-wp.php

    r2975484 r3023496  
    1616 * Plugin URI:        https://www.eventilla.com/
    1717 * Description:       Eventilla Events brings your event information from eventilla.com to WordPress as custom posts.
    18  * Version:           1.7.5
     18 * Version:           1.7.6
    1919 * Author:            Eventilla
    2020 * Author URI:        http://www.eventilla.com
  • eventilla-events/trunk/includes/class-eventilla-wp-api-request-v2.php

    r2914586 r3023496  
    857857        set_time_limit(300);
    858858        $full_event_json = $this->get( 'events', $event_id );
    859         $full_event              = json_decode( $full_event_json );
     859        if (!$full_event_json) {
     860        throw new RuntimeException("Event loading error");
     861    }
     862
     863    $full_event              = json_decode( $full_event_json );
    860864        if ( ! empty( $full_event->event ) ) {
    861865            $full_event = $full_event->event;
     
    17671771                   
    17681772                    error_log('Caught Runtime Exception: ' . $e->getMessage());
    1769                   } catch (Exception $e) {
     1773                    break;
     1774          } catch (Exception $e) {
    17701775                    // code to handle any other exception
    17711776                    $message = $e->getMessage();
Note: See TracChangeset for help on using the changeset viewer.