Forums

[resolved] [Plugin: WP Link Directory] The URL you supplied doesn't seem to be valid. (6 posts)

  1. jaredaw
    Member
    Posted 2 years ago #

    Hello,

    I have recently installed the WP Link Directory plug-in and it is working great. Well, almost.

    When I fill out the form to submit a link and press "Add Link", I get the error message: "The URL you supplied doesn't seem to be valid."

    I have pinpointed the problem to this code:

    // Check URL Exists With fopen
    		$handle1=@fopen($_POST['entry_url'],'r');
    		if($handle1){
    			$url=$wpdb->escape($_POST['entry_url']);
    			fclose($handle1);
    		}else{
    			return $page.__("The URL you supplied doesn't seem to be valid.",$WPLD_Domain);
    		}

    However I am no expert in PHP and am not quite sure how to fix this code. When I comment out the entire block, the submission goes through, but when I go to approve the link, there is no URL attached.

    I've searched for the solution for a while now but cannot find an answer.

    Here is the link to the plugin: http://www.schoolsanddegrees.com/blog/resource-links/

    Go ahead, add a link (or attempt to) and see the problem for yourself.

    Where can I find a fix for this?

  2. jaredaw
    Member
    Posted 2 years ago #

    Nevermind,

    It turns out that this is a problem with the server's configuration.

  3. davidallred
    Member
    Posted 2 years ago #

    Jaredaw,

    What do you mean by "server's configuration?" I am having the same issue and can't figure it out.

  4. berartvisualdesign
    Member
    Posted 1 year ago #

    Change in php.ini allow_url_fopen=no to allow_url_fopen=yes seems like PHP fopen is not enabled (this normal with secure webservers)

  5. 4jotas
    Member
    Posted 1 year ago #

    Hello.
    I would like to know how to get the plugin to work in your wp.
    Please tell me what steps I could take to the plugin to work properly.
    I await your response and comments.
    Best regards,

  6. berartvisualdesign
    Member
    Posted 1 year ago #

    Curl will work or use the HTTP object from WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic