Support » Plugins » [Plugin: WP Link Directory] The URL you supplied doesn’t seem to be valid.

  • Resolved jaredaw

    (@jaredaw)


    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Nevermind,

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

    Jaredaw,

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

    Berrie Pelser

    (@berartvisualdesign)

    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)

    4jotas

    (@4jotas)

    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,

    Berrie Pelser

    (@berartvisualdesign)

    Curl will work or use the HTTP object from WordPress.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP Link Directory] The URL you supplied doesn’t seem to be valid.’ is closed to new replies.