Title: [Plugin: Link Library] Error on submission
Last modified: August 20, 2016

---

# [Plugin: Link Library] Error on submission

 *  Resolved [Darryl Erentzen](https://wordpress.org/support/users/erentzenco/)
 * (@erentzenco)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-link-library-error-on-submission/)
 * When I use the form to add a link, I get this error message.
 * Fatal error: Call to undefined function add_query_var() in /home/litlynx/litlynx.
   com/wp-content/plugins/link-library/usersubmission.php on line 201
 * Any clues?
 * [http://wordpress.org/extend/plugins/link-library/](http://wordpress.org/extend/plugins/link-library/)

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

 *  [allanit](https://wordpress.org/support/users/allanit/)
 * (@allanit)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-link-library-error-on-submission/#post-2987010)
 * Hi erentzenco
 * I went to test out your comment on the other post and am getting the same error
   as you above so am unable to test. I will try it out when Yannick gets this one
   fixed.
 * Thanks
    AllanIT
 *  Thread Starter [Darryl Erentzen](https://wordpress.org/support/users/erentzenco/)
 * (@erentzenco)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-link-library-error-on-submission/#post-2987092)
 * I figured it out.
 * It’s just a typo in the php code. He mistyped the name of the function.
 * Edit “/wp-content/plugins/link-library/usersubmission.php” on line 201 and change`
   add_query_var` to `add_query_arg`.
 * Fixed!
 *  [allanit](https://wordpress.org/support/users/allanit/)
 * (@allanit)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-link-library-error-on-submission/#post-2987098)
 * Hi erentzenco
 * It turned out to be a bit more complicated than the fix above for me there were
   two Comma ‘,’ in the code where there should have been two dots ‘.’ the entire
   corrected line is below.
 *     ```
       $emailmessage .= '<a href="' . add_query_arg.( 's'. 'LinkLibrary%3AAwaitingModeration%3ARemoveTextToApprove'. admin_url( 'link-manager.php' ) ) . '">Moderate new links</a>';
       ```
   
 * AllanIT

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

The topic ‘[Plugin: Link Library] Error on submission’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [allanit](https://wordpress.org/support/users/allanit/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-link-library-error-on-submission/#post-2987098)
 * Status: resolved