Support » Plugin: Spotlight Social Media Feeds » Fatal error: json_decode() in SaasResourceFetcher.php:48

  • Resolved dtbaker

    (@dtbaker)


    Hey,

    I’ve just had to disable this plugin due to a Fatal Error message it started displaying, it has been working fine for weeks.

    May I suggest providing a plugin update to handle a case where the response from instagram servers is invalid.

    
    Fatal error: Uncaught TypeError: json_decode() expects parameter 1 to be string, bool given in wp-content/plugins/spotlight-social-photo-feeds/core/SaaS/SaasResourceFetcher.php:48 
    
    Stack trace: 
    #0 wp-content/plugins/spotlight-social-photo-feeds/core/SaaS/SaasResourceFetcher.php(48): json_decode(false, true) 
    #1 wp-content/plugins/spotlight-social-photo-feeds/core/Feeds/Preview/FeedPreviewProvider.php(18): RebelCode\Spotlight\Instagram\SaaS\SaasResourceFetcher->get()
    #2 wp-content/plugins/spotlight-social-photo-feeds/modules/PreviewModule.php(54): RebelCode\Spotlight\Instagram\Feeds\Preview\FeedPreviewProvider->get() 
    #3 wp-content/plugins/spotlight-social-photo-feeds/vendor/dhii/services/src/Extension.php(59): RebelCode\Spotlight\Instagram\
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mark Zahra

    (@markzahra)

    Hey @dtbaker, this probably happened because Spotlight failed to bring in the templates from our server to your site when getting to the Spotlight “Instagram Feeds” page. It may have just been a temporary issue.

    If you try the same thing again now, does it work for you?

    Thank you for bringing this to our attention. We’re looking into making sure all such issues are caught by the plugin to prevent any errors of this kind, so we’ll be implementing some fixes in the next updates.

    Plugin Author Mark Zahra

    (@markzahra)

    @dtbaker just checking on for an update on this issue. If you haven’t gotten Spotlight to work yet, I’m here to help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.