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!