Export from Drupal Gardens - Import to another host service

Events happening in the community are now at Drupal community events on www.drupal.org.
havensp's picture

I'm looking for some tips to import a site originally created on Drupal Gardens. I have been playing around developing a new site on DG and now want to move the site to another hosting service. I have been successful importing the DB it seems. Once the site's files are copied to the new hosting service, I can access the site there, but there is no styling, just plain text. Navigation seems to work, but again no theme. Any suggestions? Thank you.....
Here is a link to the site on DG http://mycorept.drupalgardens.com/
and a link to the new host http://mycorept.com/test_folder/test1/

Comments

you just have to make sure

asherry's picture

you just have to make sure that your links work for the new server or site folder that you're using. It might be the links themselves, like

http://mycorept.com/test_folder/test1/sites/default/themes/mythemes/acq_...

should be

http://mycorept.com/sites/default/themes/mythemes/acq_corept_27/defaults... (like drupal_get_path('theme', 'acq_corept_27'))

but if that link doesn't end up working either it could be your web server configuration. You have to make sure that you web server serves up static files of the type .css, .jpg etc before it calls aliases redirected to index.php. Also make sure that your server supports aliases all together, and clear cache 100 thousand times. Or KCCC as they say in the drupal community.

Hope that helps.

~Alan~

A bit over my head

havensp's picture

Thanks for the tips, but I'm afraid it is a bit over my head, still being somewhat a newbie with web server configs. I don't know how to check the things that you are suggesting. When you are referring to clearing cache, I assume you mean the clear cache in Configuration > Performance > Clear All Caches button. I tried that, but no change.
Thank you.

I can't see the site at

tommyent's picture

I can't see the site at http://mycorept.com/test_folder/test1/ as it returns a 404.
I don't work in gardens so forgive me if these are obvious but does the site's theme end up in your export? Does it give you an entire install meaning a complete with core? Or do you have to download core and add your site folder?

If you want you know my email feel free to send me the export and I will try it locally and let you know what's going on.

Phil, Did you run the

skowyra's picture

Phil,

Did you run the update.php script? Sometimes that will clear up any database issues, particularly in the system table. The system table may be referencing a wrong path to your modules and themes.

Jim

update.php? That just runs

asherry's picture

update.php? That just runs anything in hook_update in all of the install files. The path to the modules and themes are stored in the system table, but if you simply go to the modules page at /admin/build/modules (assuming you're using drupal 6) that will rebuild all the paths to all of the modules.

update.php in his case is not going to have anything else to run because all of the update hooks will be listed as already having been run. (on his site on drupal gardens that is)

DG Runs

mwetmore's picture

Drupal Gardens runs on Drupal 7...

We've found that sometimes just hitting the update.php and not performing and not proceeding with the entire update will help clear some URL/file issues. My guess is that the SQL Dump provided by Drupal Gardens probably has some variables referencing the old URL. Plus the extract for the files location is not the same, so you are going to have broken links until you can get in and clear the cache. So also check the Files path under the Files configuration...

-matt

Clearing the cache fixes some

tommyent's picture

Clearing the cache fixes some of it but it turns out the paths for the images in the css are wrong.
e.g.

.front .lining {
  background-image: ('/sites/mycorept.drupalgardens.com/files/about-us.png');
  background-repeat:no-repeat;
  background-position:0px 48px;
}

should be

.front .lining {
  background-image: url('/sites/default/files/home-image.png');
  background-repeat:no-repeat;
  background-position:0px 48px;
}

Connecticut

Group categories

County or Region

Event Type

Featured Item (Admin Only)

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: