WordPress.org

Ready to get started?Download WordPress

Forums

Link Library
[resolved] Error on submission (4 posts)

  1. Darryl Erentzen
    Member
    Posted 1 year ago #

    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/

  2. allanit
    Member
    Posted 1 year ago #

    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

  3. Darryl Erentzen
    Member
    Posted 1 year ago #

    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!

  4. allanit
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.