Support » Networking WordPress » Child theme functions.php displayed after migrate…

  • Resolved thewoosh

    (@thewoosh)


    I have just moved a multisite installation from one server to another and am just cleaning up problems…
    I copied files and database over and then did a mysql search and replace for database entries reflecting the old directory structure, but I am still having a problem on one site – it is a child theme (of Customizr) but at the top of every page (including WP admin pages) it displays the contents of the child theme’s functions.php as text!

    Bit bizarre and I can’t figure out what would cause that to happen. Any thoughts?

    Thanks

Viewing 1 replies (of 1 total)
  • Ah – I have found the answer – in fact I have found two answers…
    One is that I have upgraded from PHP 5.3 to 5.5 during the migration and php was being displayed as text where I and others had lazily used the <? tag instead of the <?php open tag. This is no longer supported.
    Rather than go through all the code I switched it back on instead with the
    short_open_tag=On
    in my php.ini file

    I was surprised to find this didn’t fix this particular problem (though it did fix the problem elsewhere) – but it got me looking and I realised that somehow the opening tag of the functions.php file looked like this:
    <?php> – which hadn’t caused a problem with earlier php versions. When I removed the closing > all was now well…

Viewing 1 replies (of 1 total)
  • The topic ‘Child theme functions.php displayed after migrate…’ is closed to new replies.