Forums

BUG: 2.8.2 wp-config-sample.php lacks a ?> at the end! (5 posts)

  1. Marco Raaphorst
    Member
    Posted 2 years ago #

    it lacks the last line. easily found when using a colored editor.

  2. Samuel B
    moderator
    Posted 2 years ago #

    confirmed
    wp-config-sample.php
    lacks the closing php statement

  3. elfin
    Moderator
    Posted 2 years ago #

    erm this isn't a bug.

    [quote]
    The one exception is wp-config.php where it's best to leave the end tag off due to how easy it is for a novice and their editor to add a trailing
    whitespace.
    [/quote]

    that trailing whitespace can be an issue, and cause the infamous headers already sent message.

  4. Samuel B
    moderator
    Posted 2 years ago #

    the instructions tell folks to copy wp-config-sample.php to wp-config.php on new installs. maybe not a bug, per se, but definitely a "glitch"

  5. elfin
    Moderator
    Posted 2 years ago #

    No necessarily a glitch either, it caught me out the first time I came across it.

    If it is a user editable file, then leaving out the closing php tag is beneficial. I just wish that when they do it, they would leave a note in the file explaining why :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags