Support » Fixing WordPress » Migrated servers, same files, now unexpected $end on index.php

  • I have a custom theme that I’ve developed from scratch on a development environment (linux with apache, php 5.3.7, mysql). Everything worked perfectly. Moved it all to a windows server with apache, php 5.3.3, mysql. All of a sudden I get an unexpected $end on line 193 of index.php (the last line: <?php get_footer(); ?>). Everything in the admin panel works as expected.

    I did a diff between the file on my dev server and on the production server, and it’s exactly the same file. What could be causing this? Short_tags is off, but I’m always explicitly starting php execution with <?php. I’m using endifs, endwhiles, endforeachs, and endfors, but as far as I know, that’s not part of short tags. Please correct me if I’m wrong or have any other ideas as to why this is happening.

  • The topic ‘Migrated servers, same files, now unexpected $end on index.php’ is closed to new replies.