In /src/Plugin/Field/FieldFormatter/SlideShareEmbedFormatter, we use this Class, but it's doesn't exist (anymore ?) in the library .
The use declaration :

use ZendService\SlideShare\HttpException\RuntimeException as HttpRuntimeException;

Used here :

  public function getSlideshowUrl($login, $shortcode) {
    try {
      /** @var \ZendService\SlideShare\SlideShare $ss */
      $ss = new ZendSlideShare($this->apiKey, $this->sharedSecret);
      /** @var \ZendService\SlideShare\SlideShow $byurl */
      $byurl = $ss->getSlideShowByUrl("http://www.slideshare.net/$login/$shortcode");

      return $byurl->getSlideshowEmbedUrl();
    }
    catch (RuntimeException $exception) {
      watchdog_exception(__CLASS__, $exception);
    }
   <strong> catch (HttpRuntimeException $exception)</strong> {
      watchdog_exception(__CLASS__, $exception);
    }
  }

Comments

pierre-nono created an issue. See original summary.

  • NerOcrO committed 564a587 on 8.x-1.x
    Issue #2942460: Use of HttpRuntimeException
    
NerOcrO’s picture

Status: Active » Fixed

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.