Quantcast
Viewing all articles
Browse latest Browse all 294613

Fail to clone the custom multisite with overriding modules?!

Could I ask you a question about the the overriding modules I am using please? Now, I use the Drupal overriding approach, as you know, to put all my custom modules in a multisite directory:

/sites/example.com.site1

like this:
/sites/example.com.site1/modules/

These modules all have the corresponding same modules in the main branch and main site (example.com) are are built from git branch from the master repos. The main branch are used for the main site and other multisites under it: including
example.com
/sites/example.com.site2
/sites/example.com.site3
/sites/example.com.site4
...

The reason of of putting all these custom modules is they are very different from the modules of the master branch. This works really well – which can do custom work and have different functions from the other sites, and meanwhile keeping the other multisites not affected.

Now, I find unlike the other drupal sites, or multi sites - which i can easily clone and place anywhere else, if I clone the this custom site (site1) to a different location, like from dev to stage, or from example.com/site1 to example-02/site1 It will have an fatal error, as this:

Fatal error: require_once() [function.require]: Failed opening required '[...]/example.com/modules/contrib/entity/includes/entity.inc' (include_path='.:/usr/share/php:/usr/share/pear') in[...]/example-02.com/includes/bootstrap.inc on line3066

I tested this plenty of times, and the whole custom site as example-02.com always remembers its previous domain setting example.com, and then fails to start with the new site crushes. This problem never occurs to me for other multisites (without a group of overriding modules of the same names) when I clone from one location to another.

Could you help me with this issue and suggest me what could be the solution please? Many thanks.


Viewing all articles
Browse latest Browse all 294613

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>