Installation, Configuration, & Upgrades  :: 
Moved Servers and now I get encoded html
 Top

  • Hi,

    I just tar'ed the entire PostNuke folder and all its contents, moved it over to my new server and uncompressed the files and went to set the system up and it seems to work fine except for one thing.

    After setting up the new database and importing the content using a mysql -uuser -p PostNuke < dump.sql syntax, I now get the entire page outputting as html_entitied HTML. Its like its outputing the view source onto the page unrendered.

    Here is a sample:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<!--[charset]-->">
    <meta name="DESCRIPTION" content="<!--[slogan]-->">
    <meta name="ROBOTS" content="INDEX,FOLLOW">

    <meta name="resource-type" content="document">
    <meta http-equiv="expires" content="0">
    <meta name="author" content="<!--[sitename]-->">
    <meta name="copyright" content="Copyright (c) 2004 by <!--[sitename]-->">
    <meta name="revisit-after" content="1 days">

    Does anyone know how to fix this???

    Kind regards,
    Nathan.
  • weird.. do the docs "actually" look like this?

    --
    http://www.invalidresponse.com
  • The result set does. When I view the website I get raw HTML in the browser, but when I view source I get the above mentioned code.

    It's quite strage because if I do a remote DB connection to the previous database, it works fine, soon as I use the exported version whether it be via mysqldump or a tarball of the MYD/MYI files, it still comes out unformatted in its raw state.

    Is there anything that I am missing in the database that could cause this?
  • and if you open up header.php on the affected server, have all of the tags been converted to hex characters? I think maybe the files themselves got flubbed up somehow.

    --
    http://www.invalidresponse.com
  • Looks like the code is fine in header.php.

    The PHP code should be ok as the system works perfect when I use the old database. Soon as I use the dumped copy that I imported into my local MySQL system, it outputs this encoded HTML.

    Could the database version be of issue? I am running MySQL 3.23.58 and on the older server which I exported from it was MySQL 4.0.22.

    I am going to test this later this evening, not sure if you know if this is it already though?
This list is based on the users active over the last 60 minutes.