Title: [Plugin: Zotpress] Shortcode error
Last modified: August 20, 2016

---

# [Plugin: Zotpress] Shortcode error

 *  Resolved [iamarogue](https://wordpress.org/support/users/iamarogue/)
 * (@iamarogue)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-zotpress-shortcode-error/)
 * I’m getting an error that I can’t figure out. Unfortunately, I can’t really tell
   you what I did to cause the error, other than zotpress was working fine and now
   it is not.
 * On one of my pages, I have the following short code:
 * `[zotpress collection="RAEV8B4B" sortby="author" limit="99"]`
 * But when I view the page, I get these errors at the top:
 *     ```
       Warning: asort() expects parameter 1 to be array, null given in /home/aryder/involvingthepublic.com/wp-content/plugins/zotpress/zotpress.shortcode.functions.php on line 43
   
       Warning: Invalid argument supplied for foreach() in /home/aryder/involvingthepublic.com/wp-content/plugins/zotpress/zotpress.shortcode.functions.php on line 46
   
       Warning: Invalid argument supplied for foreach() in /home/aryder/involvingthepublic.com/wp-content/plugins/zotpress/zotpress.shortcode.php on line 431
       ```
   
 * And on the page where it should output the bibliography, I get:
 * `Sorry, but Zotpress encountered an error after attempting to contact the Zotero
   server. (Try again?)`
 * On the Zotpress admin page, it shows my latest citations, then I selected a collection
   and it gave me the following error:
 * `Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '
   <' not found in Entity, line: 1 in /home/aryder/involvingthepublic.com/wp-content/
   plugins/zotpress/zotpress.admin.default.php on line 257`
 * I tried to recache the page, and now it gives me that error permanently.
 * So why is this happening? As I mentioned before, I unfortunately don’t know what
   I did. I recently updated to 3.3.2 but that could have been before or after Zotpress
   stopped working. I think I did put in a shortcode on a page using a placeholder
   of collection=”XXX” because I was just copying and pasting from a different page.
   The only other plugin I have installed is WP UI, and I’m using DreamHost, so 
   I don’t think it’s the server.
 * Any help?
 * [http://wordpress.org/extend/plugins/zotpress/](http://wordpress.org/extend/plugins/zotpress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Katie](https://wordpress.org/support/users/kseaborn/)
 * (@kseaborn)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-zotpress-shortcode-error/#post-2701908)
 * I believe this should be fixed in 5.0. Please let me know if it’s still not working.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Zotpress] Shortcode error’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Katie](https://wordpress.org/support/users/kseaborn/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-zotpress-shortcode-error/#post-2701908)
 * Status: resolved