Problems Migrating 1.2.4 Site To New Server  Bottom

  • I recently upgraded a site to 1.2.4 from 1.2.3 and am having NO problems on the site whatsoever; everything is working fine. As part of a planned migration to a new box, I am attempting to take that 1.2.4 site and move it. I have a lot of errors when I attempt to bring up the site on the new box. I'll give you the steps I took to migrate, the server details (old and new), the troubleshooting I did, followed by the errors.

    TIA for your help.

    Migration
    1. Copied all files from old site, zipped and unpacked on new loaction on new server.
    2. Edited config/config.php to reflect new login credentials.
    3. Using phpMyAdmin, I created the database on the new server.
    4. Using phpMyAdmin, I took an export of the database on the old site, with complete structure and data dump, imported into mysql on new site using phpmaydmin.
    5. Loaded index.php into browser (see results below.)

    Old "Server" Setup
    Windows XP Professional box running xampp
    xampp 1.70
    PHP Version: 5.2.8
    MySQL Version: 5.1.30-community

    New Server Setup
    Ubuntu 10.04 Server
    Apache 2.2.14 (Ubuntu)
    PHP Version: 5.3.2-1ubuntu4.2
    MySQL Version: 5.1.41-3ubuntu12.6

    Troubleshooting
    1. Ensured all DB setting were correct.
    2. Changed encoding to every possible charset available in both the export and the DB creation on the new box.
    3. Dumped the pnTemp/xxx_compiled folders of everything.
    4. Cleared the sessions table in the DB.
    5. Resisted the urge to throw my massive, spry fist through the !@#$%&ing screen.
    6. Exported/imported the DB about 10 different times, 10 different ways (DB encoding related)
    7. Each time I refresh the page, a different session is showing up in the errors.
    8. Tried the ZRC, wasn't helpful for this.
    9. Broke down and came to the forum, begging for help.


    index.php yields:

    Code

    Unknown column 'pn_remember' in 'field list'
    SELECT pn_sessid as "sessid",pn_ipaddr as "ipaddr",pn_lastused as "lastused",pn_uid as "uid",pn_remember as "remember",pn_vars as "vars" FROM pn_session_info as tbl WHERE pn_sessid='c0fmobuoqs7bh0vkva4d0oc2upt9psrt'

    Unknown column 'pn_url' in 'field list'
    SELECT pn_id as "id",pn_name as "name",pn_type as "type",pn_displayname as "displayname",pn_url as "url",pn_description as "description",pn_regid as "regid",pn_directory as "directory",pn_version as "version",pn_official as "official",pn_author as "author",pn_contact as "contact",pn_admin_capable as "admin_capable",pn_user_capable as "user_capable",pn_profile_capable as "profile_capable",pn_message_capable as "message_capable",pn_state as "state",pn_credits as "credits",pn_changelog as "changelog",pn_help as "help",pn_license as "license",pn_securityschema as "securityschema" FROM pn_modules as tbl

    Table 'omahadco.pn_themes' doesn't exist
    SELECT pn_id AS "id",pn_name AS "name",pn_type AS "type",pn_displayname AS "displayname",pn_description AS "description",pn_regid AS "regid",pn_directory AS "directory",pn_version AS "version",pn_official AS "official",pn_author AS "author",pn_contact AS "contact",pn_admin AS "admin",pn_user AS "user",pn_system AS "system",pn_state AS "state",pn_credits AS "credits",pn_changelog AS "changelog",pn_help AS "help",pn_license AS "license",pn_xhtml AS "xhtml" FROM pn_themes AS tbl

    Table '
    omahadco.pn_themes' doesn't exist
    SELECT pn_id as "id",pn_name as "name",pn_type as "type",pn_displayname as "displayname",pn_description as "description",pn_regid as "regid",pn_directory as "directory",pn_version as "version",pn_official as "official",pn_author as "author",pn_contact as "contact",pn_admin as "admin",pn_user as "user",pn_system as "system",pn_state as "state",pn_credits as "credits",pn_changelog as "changelog",pn_help as "help",pn_license as "license",pn_xhtml as "xhtml" FROM pn_themes as tbl

    Table 'omahadco.pn_themes' doesn't exist
    SELECT pn_id AS "id",pn_name AS "name",pn_type AS "type",pn_displayname AS "displayname",pn_description AS "description",pn_regid AS "regid",pn_directory AS "directory",pn_version AS "version",pn_official AS "official",pn_author AS "author",pn_contact AS "contact",pn_admin AS "admin",pn_user AS "user",pn_system AS "system",pn_state AS "state",pn_credits AS "credits",pn_changelog AS "changelog",pn_help AS "help",pn_license AS "license",pn_xhtml AS "xhtml" FROM pn_themes AS tbl

    Unknown column '
    pn_sequence' in 'field list'
    SELECT pn_id AS "id",pn_object AS "object",pn_action AS "action",pn_smodule AS "smodule",pn_stype AS "stype",pn_tarea AS "tarea",pn_tmodule AS "tmodule",pn_ttype AS "ttype",pn_tfunc AS "tfunc",pn_sequence AS "sequence" FROM pn_hooks AS tbl WHERE pn_smodule = '
    zikula' ORDER BY pn_sequence ASC

    Unknown column '
    pn_remember' in 'field list'
    INSERT INTO pn_session_info (pn_sessid,pn_ipaddr,pn_lastused,pn_uid,pn_remember,pn_vars)VALUES ('
    hagin6ro3ct72i7d8vq5edho0oimugb7','4955be4eb06471362e3d8061e27bf347','2010-08-28 23:07:00',0,0,'PNSV_PNErrorMsg|a:11:{i:0;s:36:\"Exit handler:Exiting after SQL-error\";i:1;s:44:\"Exit handler:Error! Invalid result received.\";i:2;s:36:\"Exit handler:Exiting after SQL-error\";i:3;s:44:\"Exit handler:Error! Invalid result received.\";i:4;s:36:\"Exit handler:Exiting after SQL-error\";i:5;s:44:\"Exit handler:Error! Invalid result received.\";i:6;s:36:\"Exit handler:Exiting after SQL-error\";i:7;s:44:\"Exit handler:Error! Invalid result received.\";i:8;s:36:\"Exit handler:Exiting after SQL-error\";i:9;s:44:\"Exit handler:Error! Invalid result received.\";i:10;s:46:\"The \'News\' module is not currently accessible.\";}PNSVrand|a:0:{}PNSVuseragent|s:40:\"f052681fc36488098e3ff1b1a57e60c3776a6407\";PNSV_PNStatusMsg|a:0:{}')


    --
    [ stevencopley.com ]
  • My home laptop is:
    Apache/2.2.12 (Ubuntu)
    MySQL client version: 5.1.37
    Maybe you can zip your site [include SQL database] and I could try here, I bet the difference is not that big...

    - Igor
  • Hello,

    Do you try if a new install of zikula works on your new server ?

    your table's names are a bit strange, do you check that in your old DB your DB table start with "omahadco.pn_xxxx"?

    gook luck

    Garou
  • If you want to narrow it down;

    stop the Ubuntu/MySQL server, delete the contents of the Ubuntu/mysql/data folder, move the contents from the xp/mysql/data folder to the Ubuntu/mysql/data folder. Remove your Ubuntu/Zikula folder and move the XP/Zikula folder over to Ubuntu. restart your Ubuntu/mysql server and give that a try. Make sure you set any necessary folder permissions.

    I'm not real sure about the PHP 5.3.x becuse I have yet to update. There is a reason why they are continuing builds for 5.2.x as they progress thru 5.3.x...
  • Igor-

    I'll try to send you the DB tonight to test. There's nothing but calendar data in it anyway for this site.

    Garou-

    Just tried a new install of Zikula 124 on the server. Worked fine, loads and runs spectacularly fast.

    I checked the prefix setting on the config.php and there is no reference to omahadco.pn andything. The only thing that is PN is the prefix.

    mesteele101-

    I'm going to give that a try now. Thanks for the advice.

    Thanks guys, will report back.

    --
    [ stevencopley.com ]
  • I tried copying the old data dir/files to the new server and modifying the config. Same results, except the errors are showing the old DB name.. Exact same results otherwise.

    I'm truly stumped.

    --
    [ stevencopley.com ]
  • Wow. The database name was wrong. I was using the 1.2.3 database with 1.2.4 files. Oops.

    Still have some very odd css/layout issues, but the site is up and accessible.

    Thanks for all your help, I appreciate it.

    --
    [ stevencopley.com ]
  • 0 users

This list is based on users active over the last 60 minutes.