In version 5.2.1 of the Event-Post plugin, the file event-post/eventpost.php ends with “?>\n” (closing PHP tags, and a newline character). This causes an extra line to be sent out before any actual content is every displayed. Usually this isn’t an issue, but when downloading certain file types, this causes issues (downloading .zip files, for example). The fix for this is easy, the “?>” needs removed from the end of the line, as PHP files don’t actually need the closing tag, and this removes the possibility of a newline character accidentally sneaking into code later on and causing issues.
- The topic ‘Newline issue & resolution’ is closed to new replies.