Closed (outdated)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2015 at 14:51 UTC
Updated:
9 Feb 2026 at 19:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
JulienF commentedFind the attached patch to fix this issue
Comment #2
megachrizUnder what kind of circumstances does this problem occur? When I download the CSV template I get the headers in the first row.
Comment #3
JulienF commentedCan you clarify what do you mean by circumstances ?
Since this is probably related to the server on which drupal is being hosted, the issue appears under Drupal 7.34 for websites hosted at omega8 (haven't tried on another host).
If you need more details let me know, I'll gladly provide them.
Comment #4
megachrizIn order to evaluate if the proposed fix is the right one, I need to be able to reproduce the issue first. Sometimes a patch may just fix a symptom of the problem. For example, the issue could be caused by a misconfiguration on the server side.
Comment #5
riaan burger commentedUnfortunately I have no clean extra information to supply regarding the circumstances under which this happens as I just quickly helped someone with a rather complex and mature site.
Experienced four extra lines before the data, which, if the site owner were to use the template, would result in four empty entities being created.
The patch solved the problem.
Comment #6
sophie.skMaybe I can chime in as we're experiencing the same problem. Updated to the latest dev and the problem persists.
I've attached the export of one of our importers. Some other information:
* We had version 7.x-2.0-alpha9 before I updated to the dev version from 6th August
* The importer was originally created using Features
* We have three importers and all three have this problem - two empty lines at the start of the template file
* I've tried debugging but the output seems correct (no extra array items)
* The same thing happens with the Node and User import provided by Feeds
* This is all happening on my localhost setup (Ubuntu 14.04 LAMP stack) and on live sites
* Unable to reproduce on another client site running Feeds 7.x-2.0-alpha8+102-dev with multiple patches to support Feeds Entity Importer
The patch in #1 did indeed solve the problem.
I'm going to apply it but will keep checking back here.
Comment #7
JulienF commentedI've added the same patch but to apply to v2.0 beta1
Comment #9
megachrizPatches should be made against dev. Can this bug be demonstrated with an automated test?
Comment #10
fadi.assaad commentedSame patch for v2.0 beta3
Comment #11
bluegeek9 commentedDrupal 7 reached end of life and the D7 version of Feeds is no longer being developed. To keep the issue queue focused on supported versions, we’re closing older D7 issues.
If you still have questions about using Feeds on Drupal 7, feel free to ask. While we won’t fix D7 bugs anymore, we’re happy to offer guidance to help you move forward. You can do so by opening (or reopening) a D7 issue, or by reaching out in the #feeds channel on Drupal Slack.
If this issue is still relevant for Drupal 10+, please open a follow-up issue or merge request with proposed changes. Contributions are always welcome!