Title: Error Undefined variable: template in class-mla-shortcode-support.php line 1732
Last modified: September 1, 2016

---

# Error Undefined variable: template in class-mla-shortcode-support.php line 1732

 *  Resolved [matharvest2](https://wordpress.org/support/users/matharvest2/)
 * (@matharvest2)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-undefined-variable-template-in-class-mla-shortcode-supportphp-line-1732/)
 * Hi,
 * Sorry if I have missed something obvious, but I’m seeing this error, I think 
   it came up after updating to the latest version of MLA
 * Notice: Undefined variable: template in /home/harvest2/public_html/blog/wp-content/
   plugins/media-library-assistant/includes/class-mla-shortcode-support.php on line
   1732
 * [http://www.harvesttravels.net/blog/imagecategories/?term_slug=001-maryborough](http://www.harvesttravels.net/blog/imagecategories/?term_slug=001-maryborough)
 * I’m not really sure where to start looking to resolve this, hope that it’s something
   simple that you can suggest
 * thanks
 * Mat.
 * [https://wordpress.org/plugins/media-library-assistant/](https://wordpress.org/plugins/media-library-assistant/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-undefined-variable-template-in-class-mla-shortcode-supportphp-line-1732/#post-7616902)
 * Thank you for your report. I regret the trouble you’re having with the `[mla_tag_cloud]`
   shortcode.
 * Without seeing the complete text of your `[mla_tag_cloud]` and all its parameters
   I can’t be sure of the cause. I believe, however, you have encountered a defect
   in MLA v2.31 related to the `mla_output` parameter.
 * If you do not have an `mla_output` parameter in your shortcode or if you have
   an `mla_output=flat` parameter in your shortcode you will get this PHP Notice
   message. It is harmless but annoying.
 * The latest MLA Development Version dated 20160727 contains a fix for the defect.
   To get the Development Version, follow the instructions in this earlier topic:
 * [Shortcode not working in (special) widget](https://wordpress.org/support/topic/shortcode-not-working-in-special-widget?replies=3#post-7753687)
 * It would be great if you can install the Development Version and let me know 
   how it works for you. If that’s not possible you can also avoid the notice by
   adding an `mla_markup="tag-cloud-ul"` parameter to your shortcode.
 * If neither of those fixes work for you, could you post the complete text of your
   shortcode so I can reproduce your problem on my system?
 * You can also turn off PHP Notice messages to suppress the message until you get
   a fix that works.
 * I will leave this topic unresolved until I hear back from you. Thanks for your
   understanding.
 *  Thread Starter [matharvest2](https://wordpress.org/support/users/matharvest2/)
 * (@matharvest2)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-undefined-variable-template-in-class-mla-shortcode-supportphp-line-1732/#post-7617069)
 * Hi David,
 * I really appreciate you looking into this, and the work you do with MLA, sorry
   its taken so long to get back to you but I have been travelling and not had much
   time in front of the computer.
 * The latest update to MLA seems to have resolved the issue
 * thanks once again
 * Mat.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-undefined-variable-template-in-class-mla-shortcode-supportphp-line-1732/#post-7617070)
 * Thanks for your update – I hope you enjoyed your travels. Thanks as well for 
   confirming that the latest MLA version resolves the issue you reported, and for
   marking this topic resolved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error Undefined variable: template in class-mla-shortcode-support.php
line 1732’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

## Tags

 * [mla](https://wordpress.org/support/topic-tag/mla/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/error-undefined-variable-template-in-class-mla-shortcode-supportphp-line-1732/#post-7617070)
 * Status: resolved