Themes and Modules are not working for configured sites

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

Hello Everyone,

I have successfully setup my multisites with help of this group. I have successfully made it with subdomains and folder as you can check it at http://groups.drupal.org/node/43166

Now i am still facing one major problem here. I have few sites and they are working well on server. What am i trying to do is following.

-> making new folder of subdomain.domain.com.multisite.site1 or subdomain.domain.com.multisite.site2.
-> coping all modules and theme from my previous site1 to new multisite folder of site1 as per following structure

document_root
document_root/sites/
document_root/sites/default/
document_root/sites/all/
document_root/sites/subdomain.domain.com.multisite.site1/
document_root/sites/subdomain.domain.com.multisite.site1/setting.php
document_root/sites/subdomain.domain.com.multisite.site1/themes/
document_root/sites/subdomain.domain.com.multisite.site1/modules/

-> changing database details and base_url for site 1 at setting.php. [database is already enable with modules and themes. no new database is created. ]

But problem is i am getting page without any style-sheet and modules loaded. i have attached image of what am i getting. When i see source code of this page than found that there are some path problem. It shows me following.

<link rel="shortcut icon" href="/multisite/site1/sites/default/files/wabi_favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" media="all" href="/multisite/site1/modules/node/node.css?u" />
<link type="text/css" rel="stylesheet" media="all" href="/multisite/site1/modules/system/defaults.css?u" />
<link type="text/css" rel="stylesheet" media="all" href="/multisite/site1/modules/system/system.css?u" />

Can anyone tell me what am i doing is right or wrong ? As per my understanding i have successfully installed multisite so this must be done but do not know much about this path setting in multisite.

Version of Drupal is 6.13 for all sites.
Any help will be appreciated.

Thank you
Tejas Mehta

Comments

Caching issue (possibly)

btopro's picture

Go into the database via phpmyadmin or something like that and truncate / empty any table that's prefixed with cache_ and the cache table. This might help because the site caches things based on location and caches the location of files in that way as well.

Try that and then let me know if there's an issue. Another thing you (might) have to do is get the modules and themes folders to reset themselves which usually involves going to modules enabled page of your site and then it'll rebuild where things are located. If your having issue after the cache clear look at the system table and look for anything path based and make sure the paths point to the new location of your modules / themes as this can also cause an issue.

Hope this helps

Thanks for your reply.

tejaspmehta's picture

Hello btopro,

Thanks for your reply. I tried to clear cache_ tables but still no effect. Also i have checked that in variable table there are some theme and files related path which i changed with help of mysql REPLACE() function. but still no luck. when i try to open site.com/user/login than also it shows blank page.

Do you have any other idea that how it make works ? as i do not want to provide enable disable module to my end-user. so i have only option to move folder from one place/site to another only. If you have any other idea on this than also let me know, i can try it.

Thank you
Tejas Mehta

those paths look strange...

SumyTheSlayer's picture

those paths look strange... the '/multisite/site1' part should not be in the path

maybe i'm wrong but have you tried to uncomment the 'RewriteBase /' line in your .htaccess file? (do you have Clean URL's enabled?)

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  RewriteBase /

Hello Everyone, Thank you for

tejaspmehta's picture

Hello Everyone,

Thank you for you help. I have solved this issue myself. I did download first mysql database and than with help of find and replace command i did change some paths like follows.

in original site my path is like : multisite.domain.com.site1
and i made it like : multisite.domain.com.site2

it solved my problem. i just have to copy down files folder form site1 to site2 if any theme change or image-uploading is there.

Thank you everyone for you help.

Thank you
Tejas Mehta

Multisite

Group organizers

Group notifications

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