Hello,

I am looking to move an existing Drupal website from an existing Windows Dedicated Server to another Windows Dedicated Server. I have been working with Drupal for a few months and mostly administering the Content area via the back end of the website.

I would like to know what information I will need to know in order to move this website over successfully? Also, where do I navigate to on the back end of the Drupal website in order to find out the current version I am using?

Thanks for Your Help!

Ivan

Comments

vm’s picture

administer -> status report for version info

or

check the CHANGELOG.txt file, if you left it intact in your installation.

DME_Media’s picture

I am using Drupal 6.4 Any input on the move?

vm’s picture

I don't use windows servers so I hesitate to guide here but:

I move my sites this way.

I put site in offline mode
I clear the cache tables in the DB
I clear the watchdog table in the DB
I clear the sessions table in the DB
I export the DB

on new server
I import the DB
I upload the files from my original install
I adjust settings.php to poing to new DB server
put site back online

DME_Media’s picture

The process is identical in the way you transfer a site whether it's on a Linux platform or Windows. Naturally you have to keep in mind the technical specs of course like adjusting important files like settings.php and clearing cache before exporting the database.

Any other tips would be helpful as well. Thanks for Your Help!

DME_Media’s picture

Sorry, but your method DOES NOT work. Either you missed to mention a step in there somewhere or simply the steps you outlined do not work.

Thanks.

seanray’s picture

beside getting know your version, the way i would like suggest is that we can just start a new store, after it, drop all the table in the database and import those in your old db. that should be fine.

by this method, we can avoid some environement issue I cannot figure out before, it works pretty well.

DME_Media’s picture

So, I've moved my DB to the new hosting environment, editing the settings credentials in /htdocs/sites/default/settings.php

These are the errors I get now:

* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 443.
* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 448.
* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 443.
* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 448.
* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 443.
* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 448.
* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 443.
* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 448.
* warning: array_map() [function.array-map]: Argument #2 should be an array in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/modules/system/system.module on line 975.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 1720.
* warning: Invalid argument supplied for foreach() in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 1720.
* warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'zen_breadcrumb' was given in /home/theaudi1/public_html/smbusinesscreditcards/htdocs/includes/theme.inc on line 597.

I started decoding them but it seems like the code is not the problem. PHP version issue & compatability perhaps? Are particular files suppose to have certain attributes?

Input and feedback would be greatly appreciated!

Thanks,

rernst’s picture

I don't think the problem you're seeing is caused by file attribute problems. Indeed, there are two different lines referenced in themes.inc: probably functions being called multiple times. I would bet that it's at most two, probably one, error.

Sometimes when you move a drupal site, it 'loses' the theme, particularly when you move it to a different directory. Have you tried navigating to admin/build/themes and explicitly set a theme?

If you have changed php versions, this might cause a problem with some contributed modules, but IIRC D6 works with php4 and shifting from php5 to 4 shouldn't pose a problem under ordinary circumstances

cgreenberg’s picture

Hi,

I have the same problem. I've developed a site locally on my computer. When I uploaded it, it worked fine with Zen Classic as the default theme. The next day, I noticed that it reverted back to Garland, and I selected Zen-Classic as the default them again.

This happens everyday.

I get the following log messages:
Invalid argument supplied for foreach() in /home/content/s/h/a/shastacrystals/html/includes/theme.inc on line 1720.

and

array_map() [function.array-map]: Argument #2 should be an array in /home/content/s/h/a/shastacrystals/html/modules/system/system.module on line 975.

I don't know if the two error messages are related, but the first one is definitely related to the theme.

Did you ever solve your problem? If so, how?

Thanks