Let me start off by saying, this is way over my head (I am a designer not a programmer, however I am learning more about the programming end), however, my host is saying that I would need to change code and that it seems to be a bug in gravity forms....
Apparently POST wordpress/gravity forms install, my host moved the the /tmp file to my own root directory. In other words, site was working fine and without notice they moved this directory or what ever they did.
I then had no issues with gravity forms, my issue was being able to upload images via wordpress. However after they "fixed" the php.ini file it still did not correct the issue and this is what they sent me.
Here is what he host sent me, some of the listed items are wordpress:
"The wordpress modules you are using have some bad code in them:
See how the path to /tmp is hardcoded ?
Instead the module should get the value from php for upload_tmp_dir and use that.
rg /tmp *
wp-content/plugins/gravityforms/forms_model.php: $temp_filepath = self::get_upload_path($form_id) . "/tmp/" . $file_info["temp_filename"];
wp-content/plugins/gravityforms/forms_model.php: $source = self::get_upload_path($form_id) . "/tmp/" . $tempfile_info["temp_filename"];
wp-content/plugins/gravityforms/form_display.php: $target_path = RGFormsModel::get_upload_path($form["id"]) . "/tmp/";
wp-includes/Text/Diff.php: $tmp_locations = array('/tmp', '/var/tmp', 'c:\WUTemp', 'c:\temp',
wp-includes/functions.php: * Function's preference is to WP_CONTENT_DIR followed by the return value of sys_get_temp_dir()
, before finally defaulting to /tmp/
wp-includes/functions.php: $temp = '/tmp/';
wp-includes/class-snoopy.php: var $temp_dir = "/tmp"; // temporary directory that the webserver
wp-includes/js/tinymce/plugins/spellchecker/config.php: $config['PSpellShell.tmp'] = '/tmp';
So, they basically said I had to fix this code and then deliver it to them! So I am not at all sure what I am suppose to do, but wanted to find out, is this bad code, and if I do fix the code, how do I fix the code, and will it cause issues when a new version is released. Like I said this is a bit over my head!
Thanks in advance for your help!