Jump to content

Cannot declare class ProcessWire\ProcessModuleInstall, because the name is already in use


Recommended Posts

Posted

Just tried to install a new module (RockCalculator from @bernhard) and got this message. I don't think it's anything to do with his module, so posting here as a general query. Any ideas what might be causing it? (BTW it installed OK by downloading the files manually)

Posted

I've also had those errors lately... Not sure what is the reason because it have been bigger projects with lots of modules under heavy development and also on latest DEV which had some issues lately. Do you have any other of my modules installed? RockFrontend? RockMigrations?

Posted
50 minutes ago, bernhard said:

also on latest DEV which had some issues lately. Do you have any other of my modules installed? RockFrontend? RockMigrations?

On 3.0.203. No other modules of yours installed, but planning RockFrontend and maybe RockMigrations

Posted

Hi @bernhard. Just tried a different module (AppAPI) which is OK. The problem appears to be with your modules. I tried RockMigrations too - on v3.0.200 - both RockMigrations and RockCalculator give this error: ProcessWire: ProcessModule: No page specified

  • Thanks 1
Posted
14 minutes ago, bernhard said:

can you track it down further

I’ll look into it when I get a moment. Manual install seems ok. 

  • Thanks 1
Posted

Hi @bernhard. Had a quick look at this. It's a bit of a puzzle to me. The problem occurs when clicking the "Get Module Info" button on the new modules tab.

I tried on 3.0.200 and 3.0.203

In 3.0.203, all I get is a compile error - see the title of this thread - so it's a bit difficult to diagnose as there is no obvious cause. This happens with RockCalculator and RockMigrations, but NOT RockFrontend. (Although I have not yet proceeded to install RockFrontend I have no reason to believe it won't install).

In 3.0.200 I get the "ProcessWire: ProcessModule: No page specified" error. This is generated by ProcessPageEditImageSelect::init() (line 292 or 294). I have no idea why PW is even in that class. See the trace below

1424604609_RockMigrationsdownloadprob.thumb.jpg.89db291d4ed1d440e2461ee0ca064c7d.jpg

Again, this happens with RockCalculator and RockMigrations, but not RockFrontend.

I inserted a debug_backtrace - see here (unfortunately lost indents on paste from Tracy), which explains more:

3 => array
'file' => '.../admin/wire/core/Modules.php'
'line' => 1711
'function' => 'get'
'class' => 'ProcessWire\Modules'
'object' => ProcessWire\Modules
count: 131
items: array
'type' => '->'
'args' => array
0 => 'ProcessPageEditImageSelect'
4 => array
'file' => '.../admin/wire/core/WireArray.php'
'line' => 1763
'function' => 'find'
'class' => 'ProcessWire\Modules'
'object' => ProcessWire\Modules
count: 131
items: array
'type' => '->'
'args' => array
0 => 'installs='
5 => array
'file' => '.../admin/wire/core/WireArray.php'
'line' => 582
'function' => 'findOne'
'class' => 'ProcessWire\WireArray'
'object' => ProcessWire\Modules
count: 131
items: array
'type' => '->'
'args' => array
0 => 'installs='
6 => array
'file' => '.../admin/wire/core/Modules.php'
'line' => 1911
'function' => 'get'
'class' => 'ProcessWire\WireArray'
'object' => ProcessWire\Modules
count: 131
items: array
'type' => '->'
'args' => array
0 => 'installs='
7 => array
'file' => '.../admin/wire/modules/Process/ProcessModule/ProcessModule.module'
'line' => 1154
'function' => 'isInstalled'
'class' => 'ProcessWire\Modules'
'object' => ProcessWire\Modules
count: 131
items: array
'type' => '->'
'args' => array
0 => 'installs='
8 => array
'file' => '.../admin/wire/core/Wire.php'
'line' => 420
'function' => '___buildDownloadConfirmForm'
'class' => 'ProcessWire\ProcessModule'
'object' => ProcessWire\ProcessModule #359
'type' => '->'
'args' => array
0 => array
'status' => 'success'
'id' => 2236
'class_name' => 'RockMigrations'
'name' => 'rock-migrations-1'
'title' => 'RockMigrations'
'summary' => 'The Ultimate Automation and Deployment-Tool for ProcessWire'
'version' => 121
'module_version' => '1.2.1'
'created' => 1661782531
'modified' => 1662318506
'refreshed' => 1662616138
'url' => 'https://processwire.com/modules/rock-migrations-1/'
'details_url' => 'https://modules.processwire.com/export-json/rock-migrations-1'
'requires' => array
0 => ''
1 => 'installs='
'requires_versions' => array
'' => array
'installs=' => array
'installs' => array
0 => ''
'author' => 'bernhard'
'icon' => ''
'likes' => 1
'release_state' => array
'id' => 1083
'name' => 'stable'
'title' => 'Stable'
'url' => 'https://modules.processwire.com/release-states/stable/'
'pw_versions' => array
0 => array
'categories' => array
0 => array
1 => array
'authors' => array
0 => array
'authors_other' => ''
'project_url' => 'https://github.com/baumrock/RockMigrations'
'download_url' => 'https://github.com/baumrock/RockMigrations/archive/main.zip'
'forum_url' => 'https://processwire.com/talk/topic/27504-rockmigrations-'
'author_id' => 2865
1 => false

 

  • Thanks 1

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
  • Recently Browsing   0 members

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