English 中文(简体)
Subdomain not reading modules or themes folder under sites/all/
原标题:

I have a site set up with drupal, everything going fine. I then added a subdomain, and that too was fine until I went to enable a custom theme that was under the sites/all/themes folder. The theme does not show properly in the admin panel (no thumbnail), and when activated, the site appears to have no structure at all.

The theme I am trying to use works flawlessly on my other sites, so the theme itself is not a problem. I noticed the same happens with modules under that all/ folder. It is able to use anything under the root themes and modules folder however.

So something is preventing it from properly loading/reading the sites/all/ folder. Dumping everything into the core folder is not ideal of course, but I can t figure out the problem.

Edit: RESOLVED! Somehow an htaccess file got into the sites folder with a redirect in it. Causing just the subdomain to not see the subfolders properly, only root.

问题回答

If the themes and modules under sites/all are unavailable for both sites - the main site and your subdomain - then the problem may be around accessibility of the folder.

Regardless of the user account you use to access the site, it s almost certain that the website server itself (whether Apache, IIS or Xyz) runs as a different account. If that account doesn t have rights to scan for, and read, files under sites/all then they won t show up.

Compare the permissions (and user/group details, if running on a Unix server) between your regular modules directory and sites/all to find any differences, and fix any you find.





相关问题
Delphi: Proper time to subclass, and restore, a control?

What is the correct place/time to start subclassing a control? What is the proper time to restore the original window proc? Right now i subclass during form creation: procedure TForm1.FormCreate(...

XP alternative to "TEXTSTLYE" Aero theme class

I m using the "TEXTSTYLE" class with OpenThemeData in Vista/Win 7 to render text elements with the appropriate emphasis (all values found on the Parts and States documentation): ...

Change size of user/password login box

I don t know how to change the size of the login username/password boxes on the drupal site that I m trying to build. I m stumbling through the theming, and don t know where to find the file that ...

WPF Custom Themes

I have a simple question which is giving me some difficulty. I have downloaded a custom them for WPF of the net. Now i want to apply this theme to my App instead of the default one. How do i do that,...

DllGetVersion not giving expected results under Windows 7

I have some code that attempts to test whether my application is running with the themes set. Here s the C# code: internal class NativeMethods { [DllImport("comctl32", CharSet = CharSet.Auto, ...

热门标签