Jump to content

[Solved] Multi-Instance redeclares ProcessWire\setting()


rick
 Share

Recommended Posts

Howdy!

I am following this blog post. I have set up two completely new (blank profile) installs of pw dev.132 on localhost (lamp) PHP7.2 and Apache 2.4.29.

The only additions to each default site for testing are:

localhost/site1: Added Page1 and User1
localhost/site2: Added Page2 and User2

Both sites have Tracy installed. No other modules (other than defaults) are installed.

From Tracy's console (Site2):

$path = '/var/www/site1/';
$url = 'localhost/site1/';
$site = new ProcessWire($path, $url);
$items = $site->pages->find("template=admin,name=users,include=all");
foreach($items as $item) {
	d($item->name);
}

yeilds:

ERROR: Cannot redeclare ProcessWire\setting() (previously declared in /var/www/site1/wire/core/FunctionsAPI.php:680) on line: 680 in /var/www/site2/wire/core/FunctionsAPI.php

According to searches of processwire/setting() indicates a namespace error. But both installations are identical. This error is generated whether I specify users or pages in the selector, or switch to Site1.

Can someone please point me in the right direction. Thank you!

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...