ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

COPY SITE or Replicate Site problem

February 10, 2009 1:19pm

Subscribe [3]
  • #1 / Feb 10, 2009 1:19pm

    grin-n-bear

    50 posts

    I have a site that is working just fine. I wanted to replicate that. I followed the instructions from How to copy a site - EE Developer.

    I have checked many times the File Upload path, the custom field information. I’ve gone over every clickable thing in the administration tab many times over to see if I’m missing anything related to a path pointing to my other site.

    My immediate problem is I got the copied site to work fine, but images ONLY from the home page are still pointing to the other website. When I create a new page and upload a different image (that isn’t on the other site) the image is broken—-but only on the home page, not on a secondary page using a different index, but the same code (that’s relevant).

    Only images AND files on the home page point to the other site. Images and uploaded files on a secondary page are pointing correctly, while using a different index page—-again, THE RELEVANT CODE IS THE SAME on the 2nd index page.

    I’ve gone into the database and have done searches to replace any left over paths pointing to the other site.

    I thought this had something to do with uploading of images/files, but that appears to work just fine and it does show up everywhere else BUT the home page.

    Now, I’m thinking it may have something to do with the home page being checked to use PHP.  That’s the only real difference that I can see.

    I’ve spent 3 days bird-dogging this problem, to no avail. I humbly now stop to ask directions (and help) from the support team.

    One other thing: the other site is hosted on a shared server. The new one is on a dedicated server AND is using the Multi-site….hence the replication. But I can’t see why that is an issue—-nonetheless, it’s a difference.

  • #2 / Feb 10, 2009 3:57pm

    Ingmar

    29245 posts

    What version and build of EE are you on? Also, do you’ve got a link to a site where it’s not working?

  • #3 / Feb 11, 2009 3:18pm

    grin-n-bear

    50 posts

    The previous site is still on 1.63. The new site is on 1.67. I have the system turned off. But I can provide you with the admin un and pw so that you can see what’s going on. I am changing this site completely from the content of what it is, to a financial site. I don’t want it viewed, if possible till it’s ready. Can I email you a un and pw?

  • #4 / Feb 11, 2009 5:27pm

    Ingmar

    29245 posts

    “I’ve gone into the database and have done searches to replace any left over paths pointing to the other site.” Does that mean you performed a search & replace directly on the database?

  • #5 / Feb 11, 2009 6:21pm

    grin-n-bear

    50 posts

    no. I just did a search and looked at each item separately and chose whether or not it was relevant.

  • #6 / Feb 11, 2009 6:21pm

    grin-n-bear

    50 posts

    can I send you a UN / PW?

  • #7 / Feb 11, 2009 8:05pm

    Greg Aker

    6022 posts

    Did you update anything in the exp_sites table?  If so, that means you altered a serialized array, which can never be manually manipulated.

  • #8 / Feb 11, 2009 9:37pm

    grin-n-bear

    50 posts

    Yes I did. I changed the web address it was pointing to; however, this was not the issue to begin with. I still haven’t been able to fix the problem and changing the web addresses hasn’t made a difference (unfortunately) either way, good or bad. The [uploaded] images and files with a path (e.g. {slideshow_thumb}on the front page are still pointing to the old site.

    I can’t get the newly uploaded web addresses on the to point to the new site on the front page for anything.

    Can I give a moderator a UN and PW. I want to start changing the site to reflect the new content but I need to resolve this issue and I greatly appreciate your help.

  • #9 / Feb 11, 2009 9:43pm

    Greg Aker

    6022 posts

    okay, well at this point, while things may work for the time being your new database is not sound.  You should never manually edit a serialized array.  In doing so, the integrity of your database is now lost, and we need to start with the “old” database and follow the moving servers instructions laid out in the KB & Wiki to do it properly.

    Regards,

    -greg

  • #10 / Feb 11, 2009 9:50pm

    grin-n-bear

    50 posts

    I understand what you’re saying. I didn’t know that I was damaging the integrity.

    What you’re saying is now, that I need to start over. What articles in the KB and WIKI provide a steb-by-step process to replicate a site?

    What I followed, which included what I could find in the KB and wiki, still left me with an odd issue—- that I wasn’t able to correct.

    Can I just copy the old Sites data into the database? I haven’t done anything with it yet?

  • #11 / Feb 11, 2009 9:58pm

    Greg Aker

    6022 posts

    I would recommend starting with the ‘pre-move’ database, look through and follow the articles in the KB & Wiki, and we troubleshoot problems that may arise after the move.  I know this means some lost time for you, but I would much prefer you to be on a sound database, and I know you will prefer that in the future too 😉

    -greg

  • #12 / Feb 11, 2009 10:15pm

    grin-n-bear

    50 posts

    Greg,

    I appreciate what you’ve said. I did follow all the instructions as you’ve noted, in fact, 3 times (by that I mean, I recreated the new site, db and all from scratch 3x). I couldn’t fix the problem. It was only after all of that, did I try tweaking the db, mainly out of last resort. It didn’t affect it——I’ll do what you are suggesting (however, it would be helpful if you have specific articles that you can reference as links). Maybe I followed the wrong advice.

    Nonetheless, I think that I’ll be back where I started from with the uploading of images/files pointing to the original site only on the home page. I’d still like to provide a moderator with a UN and PW to see if there is something obvious in the code BEFORE I redo all this work. I’d greatly appreciate that.

  • #13 / Feb 11, 2009 10:22pm

    Greg Aker

    6022 posts

    Really, the process amounts to:

    1.)  Download your files, copy them to the new server.
    2.)  Export your old database via phpmyadmin or cli, and put it on your new server.
    3.)  Go into your config.php file and update the sql settings (username/passwd/dbname/dbhost)
    4.)  make sure your cache files are cleared out.
    5.)  Try to log into the control panel and then fix the paths in the areas listed in the wikis.

    What specifically was going wrong?

    -greg

  • #14 / Feb 11, 2009 10:29pm

    grin-n-bear

    50 posts

    Everything is great in the copy EXCEPT that the front page (vs sub pages (using a different index page)) keeps pointing the UPLOADED images/files back to the original site. When I create a new publish page, and I upload new images, they break on the home page, but not on the sub pages. Everything on the subpages is correct, the home page, no. Yet, the code appears to be the same as far as the relevant code.

  • #15 / Feb 11, 2009 10:36pm

    Greg Aker

    6022 posts

    okay, there are settings in the control panel we can tweak to fix that.  OR there are things we can add to the config.php file so we dont’ need to do any editing in the database.  😊

    -greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases