PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Warning message after form submission when using gform_upload_path

  1. sascha
    Member

    I get the following message ONLY if I use the gform_upload_path filter:

    Warning: copy(http://www.landwire.de/gf_submissions/test/additional-image-sizes-zui.0.1.7.zip) [function.copy]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/www/web116/html/landwire/wp-content/plugins/gravityforms/forms_model.php on line 1669

    My code looks like this:

    add_filter("gform_upload_path", "change_upload_path", 10, 2);
    function change_upload_path($path_info, $form_id) {
    	$path_info["path"] = "/home/www/web116/html/landwire/gf_submissions/test/";
    	$path_info["url"] = "http://www.landwire.de/gf_submissions/test/";
            return $path_info;
    }

    Funny thing is, that the files get copied ok to the directory. They are there and work ok. BUT the post image does not show up on the entry, when you view the entries under forms. Neither is it set as a featured image in the post. On another form without post title/featured image, there is no warning message and everything works great. But on both forms I get a 404 when I click on the file under entries:

    Not Found

    The requested URL /gf_submissions/paranut/additional-image-sizes-zui.0.1.7.zip was not found on this server.

    When I do not use the filter everything works fine.
    Any help is greatly appreciated!

    Posted 12 years ago on Wednesday November 23, 2011 | Permalink
  2. sascha
    Member

    Hi again,
    I have tried it on a clean install WP and latest GF. Same error, this time on line: 1692

    Maybe that helps....
    Really would love to get that filter working again!

    Posted 12 years ago on Wednesday November 23, 2011 | Permalink
  3. sascha
    Member

    Sorry guys,
    all my mistake! Cannot believe I wasted a whole day on this..... Works great now though and I'm glad it's nothing major!

    Any ideas on how to pull the "Post Title" (when submitting a post with GF) to use in this function I would be very happy!

    Posted 12 years ago on Wednesday November 23, 2011 | Permalink
  4. sascha, please start a new topic with your new question. It's unrelated to the original problem. Reference this topic if it's important to reference the code you're using. Thank you.

    Posted 12 years ago on Wednesday November 23, 2011 | Permalink

This topic has been resolved and has been closed to new replies.