hheyne Posted March 21, 2016 Share Posted March 21, 2016 Hello, I have two Processwire installations which should share an entire part (a collection of plants). Now I tried to include the installation with all the content (plants) (site1) into the other installation (site2). This gives me the error: Compile Error: Cannot redeclare class ProcessWire\ProcessWire (line 696 of /var/www/virtual/site2/site/assets/cache/FileCompiler/var/www/virtual/site1/wire/core/ProcessWire.php) Is there a trick, a hint what I have to do? Must I do something with the namespaces? Is there something to do in the config.php? In site1 I use PW 3.0.11 and in site2 I use PW 3.0.12. Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 21, 2016 Share Posted March 21, 2016 Multi-instance support is only for instances sharing the same wire folder via the multi-domain-configuration. Otherwise it won't work. Link to comment Share on other sites More sharing options...
hheyne Posted March 21, 2016 Author Share Posted March 21, 2016 Thank you for the answer ... I thought this could be done with ProcessWire 3 and namespace support Link to comment Share on other sites More sharing options...
hheyne Posted March 21, 2016 Author Share Posted March 21, 2016 Is multi-domain-configuration working in PW 3? I tested it as described above but there is no result for the second domain in index.config.php. It looks like PW don't get the content of the index.config.php which I copied to the DocumentRoot of the installation. Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 21, 2016 Share Posted March 21, 2016 There's no need to copy the file. Just edit the content. Link to comment Share on other sites More sharing options...
hheyne Posted March 22, 2016 Author Share Posted March 22, 2016 Thanks again for the quick answer. I tried it and nothing happened. Then I downgraded PW to 2.7.2. After the downgrade it works with PW 2.7.2. I will try tomorrow to upgrade the system to 3.0.12 again. Maybe it works this way. Link to comment Share on other sites More sharing options...
hheyne Posted March 23, 2016 Author Share Posted March 23, 2016 I upgraded the system to 3.0.12. And voilá ... it works. But I'm afraid that my mind is blocked ... is there a possibility to fetch data from the other multisite installation via $this->wire->something? I need to work with a huge catalog which belongs to one of the both multisites. TIA Link to comment Share on other sites More sharing options...
Can Posted April 9, 2016 Share Posted April 9, 2016 As far as I know you need to either use Ryan Web-Service module or roll your own API to pull data.. Or wait a little for Multi-Instance support to be fully ready, I've got no clue when this will be, but it's mentioned in some posts about PW3, so probably in a few weeks?! Then you can use PW's own API from Site1 on Site2 and vice versa to share/manage data.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now