Hello.
For some reason, when attempting to import a .CSV list of entries on my installation of Formidable Pro @ http://www.montanarescuemission.org/main, “Step Two” shows the heading of the dashboard widget but no information inside. What gives? This is a big issue as I need to import these entries immediately. Thanks.




October 17, 2011 at 1:39 pm
By default, WP multisite doesn't allow csv files. Please see this post for more info:
http://formidablepro.com/help-desk/import-entries-stuck-on-step-two/#frm_topic_19270
October 17, 2011 at 1:44 pm
I added that snippet of code to my functions.php file:
add_filter('upload_mimes','restrict_mime'); function restrict_mime($mimes) { $mimes['csv'] = 'text/csv'; return $mimes; }
But no improvement. Any ideas?
October 17, 2011 at 1:47 pm
Please try uploading the csv file on your media library page for more detailed error messages. Let us know what you find.
October 17, 2011 at 1:49 pm
“Memorials Sept-July 2011.csv” has failed to upload due to an error
Sorry, this file type is not permitted for security reasons.
October 17, 2011 at 1:56 pm
It sounds like you didn't place that added code into a spot that is getting fired off. Maybe add a new plugin in the mu plugins folder to make sure this function is working.
October 17, 2011 at 1:58 pm
Eh, that may require some small set of instructions. I'm not too savvy with getting my hands that dirty within the core WPMU files. =/
October 17, 2011 at 2:00 pm
This isn't in the core files. There are two plugin folders (plugins and mu-plugins). You can find instructions here for creating a plugin:
http://codex.wordpress.org/Writing_a_Plugin
October 17, 2011 at 2:05 pm
I don't have enough time today to learn how to write a plugin simply for testing purposes. Is there some modification I can make to the PHP code in my functions.php file to make this work better..?
Attachment:
October 17, 2011 at 2:09 pm
I cannot tell you if this file is getting used or not. If you do not want to create a new plugin, please find a place to add this code where you know for sure it is working. When that code is in a place where it will get used, you will no longer see that error message on the Media Library page.
October 17, 2011 at 2:13 pm
Is there a place in the plugin code for Formidable that I can place the code? The theme I'm using does a lot of pointing back and forth between different files, so it's hard to tell which file that I'd place this in would do me much good.
October 17, 2011 at 2:16 pm
Nevermind. I placed the code snippet that was mentioned above in the formidable.php file at the very bottom and it works like it should now. Thanks.
Topic closed.