Posted: October 15, 2015 at 3:32 pm
|
I just downloaded EE4 (upgraded from ee3) and when I click on the export button it creates an html file with the data rather than a csv file with the data. What gives? Is this an issue with the upgrade configuration? I am new to EE4, can you please give me instructions as to how I can fix it? Thanks, |
Hi Annette, Are you using the Safari browser? If so, here’s how you can fix: https://support.apple.com/kb/TA24293?locale=en_US If you’re not using the Safari browser, please let us know which browser you’re using, which export button (knowing the location and the page the button is on will help), and we’ll go from there. |
|
|
I’m using firefox, then I click on “Event registrations CSV Report” and it exports to a webpage in an html paragraph. What could be the cause of this? Our web developer tried both of these options and neither worked: |
Hi Annette, When the CSV is displayed within the browser there are usually a couple of possible reasons.
Disabling all plugins and switching to a default theme such as twentyfourteen then running the export can rule this out.
Adding: AddType application/octet-stream .csv To the sites .HTACCESS file to tell the server how to treat those files usually fixes this. Can you double check that both of those steps have been tested please? When the output if opened within the browser, what are the first few characters output to the screen? |
|
|
Hi Tony, Thanks for your reply, I’m having our web developer try the second option one more time. In the mean time, the first few characters appear to be the spreadsheet field names: Thanks, |
That looks like valid output, so I think the server is sending the mime type and the browser is just displaying the text, in which the fix from about should fix that. Please let us know how you get on. |
|
|
Hi Tony, Our website developer said: “I have followed the steps from the support post. It looks like the export is conflicting with the sites Theme. When I turn off the sites theme the download works. Do they have any recommendations for overriding the sites theme?” Thanks, |
Is this a purchased or custom built theme? Likely the theme is doing something within functions.php but without seeing the code its hard to say what. You could go through the functions and disable each one individually and the test an exported each time to find the function that causes the problem, then post it here. |
|
|
My web developer said this: The theme name is Strappress Here is the functions code if they can see anything, otherwise we can try a different theme, or upgrade the Strappress theme, there is a new version out. <?php if ( !function_exists( ‘optionsframework_init’ ) ) { if(isset($_POST[‘user_login’]) && isset($_POST[‘user_email’])) function my_pmprorh_init() //Admin only fields $fields[] = new PMProRH_Field(“RenewalPaymentAmount”, “text”, array(“class”=>”cmaApplication”,”label”=>”Renewal Payment Amount”, “profile”=>”admins”, “required”=>false)); //add the fields into a new checkout_boxes are of the checkout page //Custom Registration Fields $fields[] = new PMProRH_Field(“company”, “text”, array(“class”=>”cmaApplication”, “profile”=>true, “required”=>false)); $fields[] = new PMProRH_Field(“Mailing_Address”, “text”, array(“class”=>”cmaApplication”,”divclass”=>”cmaApplicationSection”,”label”=>”Mailing Address”, “profile”=>true, “required”=>false)); $fields[] = new PMProRH_Field(“Phone”, “text”, array(“class”=>”cmaApplication”,”divclass”=>”cmaApplicationSection”,”label”=>”Phone”, “profile”=>true, “required”=>false)); $fields[] = new PMProRH_Field(“Coal_Committee”, “select”, array(“class”=>”cmaApplicationSelect”,”divclass”=>”cmaApplicationSection”,”label”=>”Would you like to join the Coal Committee?”, “profile”=>true,”options”=>array(“No”=>”No”, “Yes”=>”Yes”))); //add the fields into a new checkout_boxes are of the checkout page //that’s it. see the PMPro Register Helper readme for more information and examples. //remove event profile information /* The first function here defines the column headers and a callback function for each column. return $columns; /* function ee_mer_change_event_list_url(){ add_filter( ‘FHEE__EED_Multi_Event_Registration__set_definitions__events_list_url’, ‘ee_mer_change_event_list_url’ ); |
Hi there, Unfortunately that doesn’t point to the problem, the functions.php file is including multiple files so the function could also be in any of those:
I would check if this happens on the latest version of the theme, you may want to this on a development version of the site as currently your functions.php file has custom code which will be lost when you update the theme (that should go in a Site Specific Plugin) Can you send me a copy of the latest version of the theme? I’ll test to see if it the same happens using that version on a test site. If so please send to suppoty[at]eventespresso.com and I’ll take a look. (Note I can not guarantee a fix for this as it’s the theme doing something odd, but I will see if I can spot anything) |
|
|
Hello, I have the latest version of our theme but I am not sure how to send it to you – what is the best way? Can you send me an email address? It’s a 1MB zipped file. |
Hi Annette, please send it here and include a link to this support post: support [at] eventespresso.com — |
|
Hi Annette, I had a look over the files you sent and I’ve found the cause. If you look within the themes files, within /includes/functions.php (not the one within the root directory) you’ll find this – http://take.ms/tXz7w Its actually the whitespace between opening and closing PHP tags – http://take.ms/nukXQ Basically it breaks the output of the CSV as its outputing content (which is nothing) to the page before the CSV headers have been sent. Removing the whitespace fixes the problem – http://take.ms/14M2q Or to do it properly, not have the opening and closing PHP tags – http://take.ms/HZ2CY You may want to forward these details onto the theme author. |
|
The support post ‘Problem – registrants export to html instead of csv file’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.