Jump to content

Multi-instance fatal error: cannot declare class


Marc
 Share

Recommended Posts

I'm working on a process module that connects to another ProcessWire 3.0.54 installation on the same (local) server (both sites running 3.0.54). I'm trying to use multi-instance for this, so:

namespace ProcessWire;

$path = "C:/Users/Me/Documents/development/www/pw3/";
$url = "http://www.test.me";
$site = new ProcessWire($path, $url);

Those simple three lines generate the following error:

Quote

 

Fatal error: Cannot declare class ProcessWire\LanguagesPageFieldValue, because the name is already in use in C:\Users\Me\Documents\development\www\pw3\wire\modules\LanguageSupport\LanguagesPageFieldValue.php on line 11

Fatal error: Cannot declare class ProcessWire\AdminThemeReno, because the name is already in use in C:\Users\Me\Documents\development\www\pw3\wire\modules\AdminTheme\AdminThemeReno\AdminThemeReno.module on line 3

 

I'm probably missing something obvious here as I don't have much experience with namespaces yet. Any suggestions?

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

×
×
  • Create New...