Forums

index.php truncating code; reverts when fixed (3 posts)

  1. Tamara LeRoy
    Member
    Posted 1 year ago #

    The index.php file is truncating the last three lines of code to get the sidebar and footer, which is throwing a syntax error.

    The correct code is:
    <?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    Each time I update it, it reverts after five or ten minutes.

    I thought to log directly into my host and fix the problem there, but it looks right in there. I have no idea what's happening! Any thoughts would be appreciated.

  2. Matt McInvale
    Member
    Posted 1 year ago #

    Enable PHP error reporting. There is likely a problem with index.php that isn't being reported causing this.

  3. Tamara LeRoy
    Member
    Posted 1 year ago #

    I enable this in wp-config.php by setting the value to 'true,' right? (I've never used this feature before...)

    And... thank you for your reply :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.