Home Forums WoodMart support forum Instagram has returned invalid data

Instagram has returned invalid data

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

    Digital PR
    Participant

    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.

    #139753

    Hello,

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

    Best Regards

    #139793

    Digital PR
    Participant

    Here you go

    #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
    Participant

    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)