Title: internal error using shortcode in widget
Last modified: August 21, 2016

---

# internal error using shortcode in widget

 *  Resolved [psilas_admin](https://wordpress.org/support/users/psilas_admin/)
 * (@psilas_admin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/)
 * 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://wordpress.org/plugins/amazon-link/](http://wordpress.org/plugins/amazon-link/)

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

[←](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/?output_format=md)
[1](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/?output_format=md)
2

 *  Thread Starter [psilas_admin](https://wordpress.org/support/users/psilas_admin/)
 * (@psilas_admin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345916)
 * 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/](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](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345917)
 * 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](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345918)
 * 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](https://wordpress.org/support/users/psilas_admin/)
 * (@psilas_admin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345919)
 * 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](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345920)
 * 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](https://wordpress.org/support/users/psilas_admin/)
 * (@psilas_admin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345930)
 * 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](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345932)
 * 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](https://wordpress.org/support/users/psilas_admin/)
 * (@psilas_admin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345933)
 * 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](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345940)
 * 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)

[←](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/?output_format=md)
[1](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/?output_format=md)
2

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

 * ![](https://s.w.org/plugins/geopattern-icon/amazon-link_070606.svg)
 * [Amazon Link](https://wordpress.org/plugins/amazon-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-link/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-link/reviews/)

 * 24 replies
 * 2 participants
 * Last reply from: [paulstuttard](https://wordpress.org/support/users/paulstuttard/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/internal-error-using-shortcode-in-widget/page/2/#post-4345940)
 * Status: resolved