Jump to content

bootstrap another pw 3 installation, Compile Error: Cannot redeclare class ProcessWire\ProcessWire


Recommended Posts

Posted

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.

Posted

Thank you for the answer ... I thought this could be done with ProcessWire 3 and namespace support  :(

Posted

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.

Posted

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.

Posted

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

  • 3 weeks later...
Posted

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..

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...