• When I have Amazon Auto Insert allowed to auto insert the Amazon code on the home page it does not allow the page to load. If I Purge Cache on site and refresh the site loads correctly.

    I am on Siteground Server with Siteground CDN active.

    Below is the Debug Report:

    Array
    (
        [url] => https://ws-na.amazon-adsystem.com/widgets/q?SearchIndex=All&multipageStart=0&multipageCount=20&Operation=GetResults&Keywords=gifts+for+women|dating|The+Dating+Checklist|anniversary+gift|gifts+for+men&InstanceId=0&TemplateId=MobileSearchResults&ServiceVersion=20070822&MarketPlace=US
        [args] => Array
            (
                [method] =>
                [timeout] => 29
                [redirection] => 5
                [httpversion] => 1.0
                [user-agent] => WordPress/6.1.1
                [reject_unsafe_urls] => 1
                [blocking] => 1
                [headers] => Array
                    (
                    )             [cookies] => Array
                    (
                    )             [body] =>
                [compress] =>
                [decompress] => 1
                [sslverify] => 1
                [sslcertificates] => /home/customer/www/thedatingchecklist.com/public_html/wp-includes/certificates/ca-bundle.crt
                [stream] =>
                [filename] =>
                [limit_response_size] =>
                [time_start] => 1674104579.8668
                [_redirection] => 5
                [time_stop] => 1674104580.622
                [duration] => 755.13696670532
            )     [r] => Array
            (
                [headers] => Requests_Utility_CaseInsensitiveDictionary Object
                    (
                        [data:protected] => Array
                            (
                                [date] => Thu, 19 Jan 2023 05:02:59 GMT
                                [server] => Server
                                [content-encoding] => gzip
                                [cache-control] => must-revalidate
                                [pragma] => no-cache
                                [expires] => -1
                                [p3p] => policyref="https://www.amazon.com/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAo IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "
                                [charset] => UTF-8
                                [access-control-allow-origin] => *
                                [content-length] => 2072
                                [vary] => User-Agent
                                [content-type] => text/json;charset=UTF-8
                            )                 )             [body] => [omitted]
                [response] => Array
                    (
                        [code] => 200
                        [message] => OK
                    )             [cookies] => Array
                    (
                    )             [filename] =>
            )     [class] => Requests
        [stack_trace] => Array
            (
                [0] => Debug_Bar_WP_Http->after_http_request
                [1] => WP_Hook->apply_filters
                [2] => WP_Hook->do_action
                [3] => do_action('http_api_debug')
                [4] => WP_Http->request
                [5] => WP_Http->get
                [6] => wp_remote_get
                [7] => AmazonAutoLinks_HTTPClient->_getHTTPRequested
                [8] => AmazonAutoLinks_HTTPClient->___getHTTPResponse
                [9] => AmazonAutoLinks_HTTPClient->___getHTTPResponseWithCache
                [10] => AmazonAutoLinks_HTTPClient->getRawResponse
                [11] => AmazonAutoLinks_HTTPClient->getResponse
                [12] => AmazonAutoLinks_HTTPClient->getBody
                [13] => AmazonAutoLinks_AdWidgetAPI_Base->getResponse
                [14] => AmazonAutoLinks_AdWidgetAPI_Search->___getResultWithOffset
                [15] => AmazonAutoLinks_AdWidgetAPI_Search->get
                [16] => AmazonAutoLinks_Unit_UnitType_AdWidgetSearch_Event_Filter_ProductsFetcher->_getItemsFromSource
                [17] => AmazonAutoLinks_Unit_UnitType_Common_Event_Filter_ProductsFetcher_Base->replyToGet
                [18] => WP_Hook->apply_filters
                [19] => apply_filters('aal_filter_unit_output_products_from_source_ad_widget_search')
                [20] => AmazonAutoLinks_UnitOutput_Base->fetch
                [21] => AmazonAutoLinks_UnitOutput_Base->get
                [22] => AmazonAutoLinks_UnitOutput_ad_widget_search->get
                [23] => AmazonAutoLinks_UnitOutput_contextual->___getOutputByAdWidgetSearch
                [24] => AmazonAutoLinks_UnitOutput_contextual->get
                [25] => AmazonAutoLinks_Unit_UnitType_Loader_Base->replyToGetUnitOutput
                [26] => WP_Hook->apply_filters
                [27] => apply_filters_ref_array('aal_filter_unit_output_contextual')
                [28] => AmazonAutoLinks_Output->___getOutputByUnitType
                [29] => AmazonAutoLinks_Output->___getOutputByID
                [30] => AmazonAutoLinks_Output->___getOutput
                [31] => AmazonAutoLinks_Output->get
                [32] => AmazonAutoLinks_Main_Output_Loader->replyToGetOutput
                [33] => WP_Hook->apply_filters
                [34] => apply_filters('aal_filter_output')
                [35] => AmazonAutoLinks_Shortcode->_replyToGetOutput
                [36] => do_shortcode_tag
                [37] => preg_replace_callback
                [38] => do_shortcode
                [39] => WP_Hook->apply_filters
                [40] => apply_filters('widget_text')
                [41] => WP_Widget_Custom_HTML->widget
                [42] => WP_Widget->display_callback
                [43] => dynamic_sidebar
                [44] => require_once('/themes/flatsome/sidebar.php')
                [45] => load_template
                [46] => locate_template
                [47] => get_sidebar
                [48] => require('/themes/flatsome/page-right-sidebar.php')
                [49] => load_template
                [50] => locate_template
                [51] => get_template_part
                [52] => include('/themes/flatsome/page.php')
                [53] => require_once('wp-includes/template-loader.php')
                [54] => require('wp-blog-header.php')
            )

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    I’m not sure what would be the cause with the given information.

    Could you try creating a test page and show the auto-insert item that causes the problem? If it doesn’t display the associated units properly. Please try putting a shortcode specifying a unit id like [amazon_auto_links id="123"] where 123 should be your unit ID.

    If it displays unit outputs, create a test auto-insert item specifying the unit shown with the test shortcode above. Then try to see if the test auto-insert item displays the associated unit. While doing this, make sure other auto-insert items are turned off.

    Thread Starter moranton

    (@moranton)

    If I use the short codes only, the site pages works and loads correctly. If any auto insert code is on the site does not load. If there is any of your code on the home page it will not load. Its only a problem on the home page. If I go direct to another page on the site with your codes those pages will work. If I have your code on other pages but not the home page the site works correctly. But as soon as any of your code is on the home page the site will not load unless I purge the dashboard back end server cache.

    How much do you charge for support and debugging?

    Plugin Author miunosoft

    (@miunosoft)

    I suspect it is something to do with other caching plugins or CDN.

    As for paid support, it depends. In this case, it sounds complicated to solve but it can be super simple. If you can copy the entire site to somewhere for investigation, it will help detect the cause.

    I would first check what happens with the default theme and all the other plugins deactivated. Probably it will show the output properly. Then switching back to the theme you use and activate the plugins one by one. At some point, you’ll see the symptom. Then you can tell which one causes the conflict.

    Thread Starter moranton

    (@moranton)

    Turning off CDN is not an option if that is the issue then sadly your plugin is not going to work for me. I have turned off most of the caching feature that I am willing to not use before running into performance issues. Nothing seems to be solving my issue of the home page not loading when your shortcodes are active. I had the plugin installed on three sites and would get different results on each. It would work one day then fail the next.

    I really loved the plugin functionality and wish it was a solution for me. I agree it is some kind of CDN or Cache issue but if I have to turn those things off for your plugin to work it is not worth for me.

    At this time I will be looking for another solution. If for you own knowledge you would like to poke around the sites I will make you a demo site. Thank you for your time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Home Page will not load with Amazon Auto Insert Code Active’ is closed to new replies.