rick Posted June 2, 2019 Posted June 2, 2019 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!
LostKobrakai Posted June 2, 2019 Posted June 2, 2019 The functions api is not multi instance aware anyways, so you cannot use it in `site2` anyways. If you disable it via the config the error should go away. 3
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