Home Forums WoodMart – Premium Template Instagram has returned invalid data

This topic contains 5 replies, has 2 voices, and was last updated by Elise Noromit Elise Noromit 3 weeks, 5 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #139697

    Digital PR
    Customer

    Hi,

    The instagram widget is all of a sudden throwing this error.
    “Instagram has returned invalid data”
    I have not made any updates. It was working fine all this while. What could the issue be. Please help.

    Private Content Hidden
    #139753

    Hello,

    Please provide the site admin access to the private area so that we could check the issue.

    Best Regards

    #139793

    Digital PR
    Customer

    Here you go

    Private Content Hidden
    #139834

    Hello,

    Please add this code to the functions.php of the child theme:

    add_filter( 'woodmart_intagram_user_ajax_load', '__return_true' );

    Next, find the line:

    if ( is_wp_error( $media_array ) && $media_array->get_error_code() === 'invalid_response_429' ) {

    in

    woodmart/inc/shortcodes/instagram.php

    and replace with this line:

    if ( is_wp_error( $media_array ) && ( $media_array->get_error_code() === 'invalid_response_429' || apply_filters( 'woodmart_intagram_user_ajax_load', false ) ) ) {

    Best Regards

    #139848

    Digital PR
    Customer

    It works now. Thanks!

    #139859

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.