I'm going to clone a site by doing a "full structure and content" restore, then using that configured site as the basis for building a different site. The original site has most of the mods installed, the new site is a fresh RC3 install. Do I need to install the mods on the new site, or will they be carried over with the restore. Anything else I need to do to make this work?
Thanks
Rob
|
Never mind - just went ahead and did it without installing the mods first and they seem to be installed now. Cleaning up a mess, but I think it mostly worked. |
Cloning works incredibly well. You just have to adjust the inc/header.inc.php file (along with a couple of others) by treating it as if you changed the URL of the site.
In addition, you need to also reset all the file permissions as if it's a new install and adjust the cron jobs to reflect the correct url and file paths. I've done this a few times. You can also clone a site by literally taking your site, zip it up as if you we're going to move it, then move it. Once the move is completed unzip the site onto the new server and also on the original server. Now, just go do the file changes (inc/header.inc.php and so on) and reset your file permissions/cron jobs.
|
Thanks Mydatery, maybe "cloning" was the wrong word, as I did a fresh install of RC3, then used a full database restore from another RC3 site, and then deleted the members.
Lots of language key issues, as always, but so far this seems to be my most serious problem. On the top of my join form, I now have this error message:
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /var/www/vhosts/mysite.com/httpdocs/inc/classes/BxDolProfileFields.php on line 1792
Do you have any clue what that means and how to fix it? I sure don't.
Rob
|
It is even worse when I go to edit my profile after logging in as a user:
Edit ProfileWarning: array_flip() [function.array-flip]: Can only flip STRING and
INTEGER values! in
/var/www/vhosts/mysite.com/httpdocs/inc/classes/BxDolProfileFields.php on line 1792
Warning: array_flip() [function.array-flip]: Can only flip STRING and
INTEGER values! in
/var/www/vhosts/mysite.com/httpdocs/inc/classes/BxDolProfileFields.php on line 1792
Warning: Cannot modify header information -
headers already sent by (output started at
/var/www/vhosts/tradematch.us/httpdocs/inc/classes/BxDolProfileFields.php:1792)
in /var/www/vhosts/mysite.com/httpdocs/inc/design.inc.php on line
133
I've been saving and moving the profile fields - no effect, resaving the settings etc. It occurred to me to install and uninstall that profiler mod as that is part of the procedure for an update, but that didn't work either. Anyone have any guesses as to what this is and what I might try? Everything else seems to work.
|
Line 1792 has to do with the COUNTRY portion of the Profile if I'm reading it right. |
Hi Sydeburnz,
What do you mean by "reconstruct"? There are a bunch of profile fields that got transferred over. Basically I have just been opening them and saving them and that got rid of the language key errors.
Rob
|
Hi Sydeburnz,
What do you mean by "reconstruct"? There are a bunch of profile fields that got transferred over. Basically I have just been opening them and saving them and that got rid of the language key errors.
Rob
Sorry I changed my post already :) 1792 is sorting the COUNTRY Array, probably sorting Alphabetically? I'm still looking it over... brb :)
|
Line 133 of Design is trying to set the header and permalink page name. So, what is it about the Page Title Permalink and the Countries of the new website is different from the main site :)
Chances are I'm way off base, just looking at the code and trying to make observations really. I'm no PHP code monkey, just intuitive hehe
|
No, you probably are not off base at all. I use the country table different than most here - as a multiple select list in the profile. In fact, I paired down the country table in the profile.inc.php file (got rid of Antarctica, etc) - so that may be the issue. I saved the changes to the file so let me see if making them match removes that error. |
Cool. Yeah I did that too, pairing it down to just United States. Then the RC3 Upgrade added them all back so I've decided to hold off until the RC's are done hehe |
Woo Hoo! It works. You are a genius Sydeburnz! I really appreciate your help.
Thanks also to DolphinJay, who wrote and offered to help with this cloning. Looks like I might be able to get this to work, but I appreciated his offer also.
|
trying to edit header.inc but no matter what I do, it always reverts back to the original!..?
tried changing permissions, renaming the original, deleting the original... just wont allow me to make any changes.
Any suggestions?
|
sorted the header.inc
What other files would need changing?
at the moment, the site is a clone of another of my sites apart from different URL
Does that mean it will also share the same database etc??
|