Files are not being attached
-
I’ve activated the plugin and have add GFUEA to the end of the notification title, however images are not being automatically added as attachments. Below are screenshots from what I think are all the relevant areas. Thanks for any help.
Notification Title and setup: https://i1314.photobucket.com/albums/t576/chiseledimages/title_zpsfsiisyp1.png
File upload field: https://i1314.photobucket.com/albums/t576/chiseledimages/upload_zpskznh8dms.png
Plugin activated: https://i1314.photobucket.com/albums/t576/chiseledimages/activated_zpshajboqjh.png
Email but no attachment (image is just inline from standard gravity form {all fields}: https://i1314.photobucket.com/albums/t576/chiseledimages/email_zpszodqb2hg.png
https://www.ads-software.com/plugins/gf-upload-to-email-attachment/
-
This might be happening due to the configure routing option you have chosen. Can you create a new notification and use the basic send to option to check to see if it does work that way? I have never tested it with the Configure Routing option chosen. When I have time I will have to see about modifying it to work with that choice if that is the case. Look forward to hearing from you.
same result :/ : https://i1314.photobucket.com/albums/t576/chiseledimages/again_zpsmnpndini.png
Does it matter that this on a multisite installation?
btw.. thanks for the quick response time!
Do you see anything in the error logs? like it is trying to include a file that doesn’t exist or something along those lines?
the only thing I see in error logs related to Gravity forms is:
[17-Apr-2015 02:36:13 UTC] WordPress database error Query was empty for query made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, GFForms::maybe_process_form, GFFormDisplay::process_form, GFFormDisplay::handle_submission, GFCommon::create_post, GFFormsModel::create_post, wp_insert_post, do_action('save_post'), call_user_func_array, support_title_change [17-Apr-2015 02:36:13 UTC] WordPress database error Query was empty for query made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, GFForms::maybe_process_form, GFFormDisplay::process_form, GFFormDisplay::handle_submission, GFCommon::create_post, GFFormsModel::create_post, wp_update_post, wp_insert_post, do_action('save_post'), call_user_func_array, support_title_change [17-Apr-2015 02:36:13 UTC] WordPress database error Query was empty for query made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, GFForms::maybe_process_form, GFFormDisplay::process_form, GFFormDisplay::handle_submission, GFCommon::create_post, GFFormsModel::create_post, do_action('gform_after_create_post'), call_user_func_array, change_support_title_data, wp_update_post, wp_insert_post, do_action('save_post'), call_user_func_array, support_title_change
The whole log if you think other matters
[17-Apr-2015 02:34:34 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:34:35 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:00 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:03 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:04 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:12 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:13 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:18 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:19 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:29 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:36 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:38 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:35:50 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:36:12 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:36:13 UTC] WordPress database error Query was empty for query made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, GFForms::maybe_process_form, GFFormDisplay::process_form, GFFormDisplay::handle_submission, GFCommon::create_post, GFFormsModel::create_post, wp_insert_post, do_action('save_post'), call_user_func_array, support_title_change [17-Apr-2015 02:36:13 UTC] WordPress database error Query was empty for query made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, GFForms::maybe_process_form, GFFormDisplay::process_form, GFFormDisplay::handle_submission, GFCommon::create_post, GFFormsModel::create_post, wp_update_post, wp_insert_post, do_action('save_post'), call_user_func_array, support_title_change [17-Apr-2015 02:36:13 UTC] WordPress database error Query was empty for query made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, call_user_func_array, GFForms::maybe_process_form, GFFormDisplay::process_form, GFFormDisplay::handle_submission, GFCommon::create_post, GFFormsModel::create_post, do_action('gform_after_create_post'), call_user_func_array, change_support_title_data, wp_update_post, wp_insert_post, do_action('save_post'), call_user_func_array, support_title_change [17-Apr-2015 02:36:14 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:37:50 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:39:50 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:41:51 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php') [17-Apr-2015 02:43:52 UTC] WordPress database error Table 'dwgintranet_dx_options' doesn't exist for query SELECT option_value FROM dwgintranet_dx_options WHERE option_name = "permissions_mode" made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/simple-files/cu.php'), include('/plugins/simple-files/shortcode.php')
What are the version numbers of WordPress and Gravity Forms you are running?
ah. It was because the field needs to be a File Upload and I was using a Post Image. When I added a true File Upload field, it worked. However I need the image to attach to my CPT more than than the email.
I tried changing it to look for the post_image fields instead of fileupload, however I can’t seem to grab the url for the post_image. I can get it to recognize that the field is there and echo that out to me, but can’t figure out how to get the url out of it.
Does this help you find the URL?
https://www.gravityhelp.com/documentation/gravity-forms/extending-gravity-forms/hooks/filters/gform_upload_path/
It talks about the $path_info[“url”] variable.$path_info array
The upload path to be filtered. It is an associative arrays with two keys which must be specified.
$path_info[“path”] string
Full physical path to upload folder.$path_info[“url”] string
Full URL to upload folder.$form_id integer
The current form IDIs this what you are looking for?
thanks! I just started a week of vacation so not sure when I’ll get back to try this out, but will let you know.
thanks again for your help!
- The topic ‘Files are not being attached’ is closed to new replies.