Support » Plugin: Amazon Associates Link Builder » The ASIN: ” is invalid.

  • Resolved shakaran

    (@shakaran)


    For a Amazon Product Link template, if the ASIN is invalid, empty or the shortcode is missing. The shortcode display as render:

    Amazon_Link_Text

    But it doesn’t warning about “The ASIN: ” is invalid.”. So you never notice the problem unless that you have technical knowlegde and could inspect the source.

    I have to put a var_dump() and exit() right here:

    https://plugins.trac.wordpress.org/browser/amazon-associates-link-builder/trunk/shortcode/aalb_shortcode_text.php#L62

    To notice where exactly was failing before to replace properly the “text” with Amazon_Link_Text

    For example, this is valid:

    [amazon_textlink asin=’B00OB0LR2A’ template=’ProductLink’ store=’XXXXX’ marketplace=’ES’ link_id=’XXXX’ text=’Some text’]

    Invalid:

    [amazon_textlink asin=’B00OB0LR’ template=’ProductLink’ store=’XXXXX’ marketplace=’ES’ link_id=’XXXX’ text=’Some text’]

    Invalid:

    [amazon_textlink asin=” template=’ProductLink’ store=’XXXXX’ marketplace=’ES’ link_id=’XXXX’ text=’Some text’]

    Invalid:

    [amazon_textlink template=’ProductLink’ store=’XXXXX’ marketplace=’ES’ link_id=’XXXX’ text=’Some text’]

    • This topic was modified 2 months, 1 week ago by  shakaran.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear @shakaran,

    As we can see that in your shortcode has been replaced to which will create issue during rendering. Please check if your custom editor or any other plugin is converting this. Secondly, we do show errors in the preview for invalid ASINS. May you please specify following details to debug the issue:
    1. Plugin version
    2. WordPress version
    3. PHP version
    4. Browser version
    5. OS version
    6. Browser console log errors(if any).
    7. PHP console log errors(if any).
    8. Are you using any custom editor? If yes, please specify the name of the same.

    1. Plugin version: Latest stable 1.4.8
    2. WordPress version: 4.8.1
    3. PHP version: 7.0
    4. Browser version: Chrome 58.0.3029.110 (64-bit)
    5. OS version Ubuntu GNU/Linux 17.10 (development)
    6. Browser console log errors(if any). None
    7. PHP console log errors(if any). None
    8. Are you using any custom editor? If yes, please specify the name of the same
    No using custom editor

    I don’t have other plugins that replace the amazon shortcode

    Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear @shakaran,

    1. We can see that in your shortcode everywhere opening single quote has been replaced to closing single quote, which will create issue during rendering. May you please correct that as this will create an issue in rendering.
    2. Secondly, as we can check we do show errors in the preview for invalid ASINS. May you please attach a few screenshots of the same so that we can understand the problem better. You may also write a mail for the same to link-builder@amazon.com.

    Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear @shakaran,

    Has your issue ben resolved? May you please let us know how did you debug the same

    shakaran

    (@shakaran)

    Not sure if solved, but after I edit the shortcode and put new ones, I cannot reproduce. I will open again if found the same behaviour. Thanks

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