• Resolved psilas_admin

    (@psilas_admin)


    Hi, when using shortcode in a widget, [amazon asin=ASINHERE&template=thumbnail&chan=default], i get an internal error when trying to view the page that is using that particular widget with that code. if i remove the code, the page is viewable.

    This started happening Friday. I have been using this shortcode for several months now without an issue until now. I made no changes to my site, installed no other plugins, between the time it worked and stopped working.

    Thanks
    Peter

    http://ww.wp.xz.cn/plugins/amazon-link/

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter psilas_admin

    (@psilas_admin)

    Hi,

    The link does NOT display, the image DOES display, and there is NOT an internal server error – and this is with or without the lines commented out. Meaning, regardless of those lines commented out, the text1 I added works (only it does not give a link, only an image).

    Visit:

    http://petersilas.com/bargain-kindle-christian-fiction/

    Right now there is no error, the image displays, the link does not, and I have the lines commented out in addition to the template and shortcode modifications. However, I could reinstate the 2 lines of code and you will still see the same thing.

    Thank you again!
    Peter

    Plugin Author paulstuttard

    (@paulstuttard)

    Hi, Okay that’s good (I’m not expecting a link yet, it adds a lot of extra settings and keywords).

    If we change the template back to:

    %TITLE% : %ARTIST% <img src="%THUMB%">

    and the shortcode back to:

    [amazon asin=B00ETRARLC&title=title test&artist=artist test&template=simple&thumb=http://ecx.images-amazon.com/images/I/41kzTb9pQ8L._SL160_.jpg]

    Does it still work regardless of the 2 lines commented out?

    Paul

    Plugin Author paulstuttard

    (@paulstuttard)

    If that works then try changing the template to include a link around the thumbnail:

    %TITLE% : %ARTIST% %LINK_OPEN%<img src="%THUMB%">%LINK_CLOSE%

    If it doesn’t work then I’ll investigate the %THUMB% keyword a bit more!

    Paul

    Thread Starter psilas_admin

    (@psilas_admin)

    When I edit the template and update, it brings me to a page that only states “Are you sure you want to do this?” under a “Template” header. The update does take effect, but there is no option to say yes or know.

    The end result is there is no change to the page. I do not receive an error message (I feel that is a good thing 🙂 )

    Then I added the link around the thumbnail in the template (I still am sent to a page asking me if I am sure with no way to get back besides the back button on the browser). I still am using the shortcode [amazon asin=B00ETRARLC&title=title test&artist=artist test&template=simple&thumb=http://ecx.images-amazon.com/images/I/41kzTb9pQ8L._SL160_.jpg] in the widget. It does not give me a link. But still no error at least.

    Peter

    Plugin Author paulstuttard

    (@paulstuttard)

    Hmmm,

    You usually get the “Are you sure you want to do this?” message when the admin cookies that WordPress sets have expired. Try navigating back to the Templates page from the WordPress Dashboard and doing the update again.

    Does the template now contain, the following? :

    %TITLE% : %ARTIST% %LINK_OPEN%<img src="%THUMB%">%LINK_CLOSE%

    Paul

    Thread Starter psilas_admin

    (@psilas_admin)

    Hi, in the widget I have:

    [amazon asin=B00ETRARLC&template=simple]

    In the template I have:

    %LINK_OPEN%<img src=”%THUMB%”>%LINK_CLOSE%

    I tried what you told me and it worked, so I trimmed it down to the above and it also works. So, I get a link now with solely the asin using the simple template. Seems like some good progress.

    Peter

    Plugin Author paulstuttard

    (@paulstuttard)

    Hi, that’s excellent most of the plugin features are being exercised there, is this this those two lines commented out?

    If so I’ll make it an optional aspect of the next version.

    You should be able to do other templates now.

    Also try enabling the cache, this should put less load on the server as it doesn’t have to do the Amazon AWS lookup for every shortcode.

    Paul

    Thread Starter psilas_admin

    (@psilas_admin)

    Yes, the lines are commented out. Thank you. I have it set up now as you suggest. You’ve been great, and I hope this burden I have given you the past few days has had a positive effect for you and/or your product. Anything you should need, let me know.

    Take Care,
    Peter Silas

    Plugin Author paulstuttard

    (@paulstuttard)

    Brilliant, thanks for the feedback. I’ll update the next version of the plugin to make those parts optional.

    Paul

Viewing 9 replies - 16 through 24 (of 24 total)

The topic ‘internal error using shortcode in widget’ is closed to new replies.