Support » Plugin: Event post » Newline issue & resolution

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bastien Ho

    (@bastho)

    Hi,

    The eventpost.php file should not finish with

    
    ?>
    

    How did you update the plugin?

    jasonrush

    (@jasonrush)

    In the install I was helping troubleshoot/maintain, I just removed the ‘?>’ at the end of the eventpost.php file.

    Let me know if you have any questions or need anything else!

    Jason Rush

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Newline issue & resolution’ is closed to new replies.