WordPress.org

Ready to get started?Download WordPress

Forums

!Doctype whitespace issue (6 posts)

  1. gxb101
    Member
    Posted 3 years ago #

    Hi everyone, i am about ready to pull my hair out over this, so if anyone could help, i'd be grateful!

    I created a ssite on domain "A" which works and renders fine. I then migrated it over to domain "B" (on a completely different server and different host). The problem is the site doesn't render correctly. After hours of troubleshooting, it looks like there are some hidden or white space before my <!Doctype declaration which is causing the problem. These characters do not appear in header.php, they must be getting added as the page is being loaded. Any thoughts? What is strange is that the problem doesn't occur on domain "A" just on domain "B". Help!!

    Thanks

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

  3. gxb101
    Member
    Posted 3 years ago #

    No, haven't done either of those things for the reason being that the files and database tables are literal copies of a site which works fine on another server. Am I incorrect in assuming that the copies should work in exactly the same manner?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Not necessarily if the servers are different.

  5. gxb101
    Member
    Posted 3 years ago #

    I deactivated the plug-ins and all was the same. When I switched to the default theme, everything looked fine. Obviously there is something in the theme causing the disturbance. Any thoughts on next steps? Thx

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    I'd suggest going through all files in your theme and removing any leading or trailing blank lines or spaces.

Topic Closed

This topic has been closed to new replies.

About this Topic