Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When attempting to install this module on a brand new Drupal 8 site, using the latest dev release (installed via
</code>), I got the following error in the log, and a WSOD after clicking 'Install' on the modules page:
<code>
Got error 'PHP message: Error: Class 'Drupal\\tideways\\Install' not found in /var/www/drupalvm/drupal/web/modules/contrib/tideways/tideways.install on line 7 #0 [internal function]: tideways_requirements('install')
#1 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(391): call_user_func_array('tideways_requir...', Array)
#2 /var/www/drupalvm/drupal/web/core/includes/install.inc(997): Drupal\\Core\\Extension\\ModuleHandler->invoke('tideways', 'requirements', Array)
#3 /var/www/drupalvm/drupal/web/core/modules/system/src/Form/ModulesListForm.php(412): drupal_check_module('tideways')
#4 /var/www/drupalvm/drupal/web/core/modules/system/src/Form/ModulesListForm.php(430): Drupal\\system\\Form\\ModulesListForm->buildModuleList(Object(Drupal\\Core\\Form\\FormState))
#5 [internal function]: Drupal\\system\\Form\\ModulesListForm->submitForm(Array, Object(Drupal\\Core\\Form\\FormState))
#6 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array)
#7 /var/www/...
', referer: http://drupalvm.dev/admin/modules
Comment | File | Size | Author |
---|---|---|---|
#10 | tideways-php-status-report.png | 184.31 KB | geerlingguy |
Comments
Comment #3
david_garcia CreditAttribution: david_garcia commentedLooks like autoloading is not available during install phase. I added the requirements hook after having the module installed on several sites, so that's why I did not notice this.
Pushed a fix. Give it a shot.
Comment #4
david_garcia CreditAttribution: david_garcia commentedThis would have been a better fix....
Could you try with this alternative fix?
Comment #5
geerlingguy CreditAttribution: geerlingguy at Acquia commentedComment #6
geerlingguy CreditAttribution: geerlingguy at Acquia commentedNow trying to
composer require
either1.x-dev
or^1.0
results in:Not sure if it's a Drupal.org issue or something else, but I'll try downloading manually to see if that works.
Comment #7
geerlingguy CreditAttribution: geerlingguy at Midwestern Mac, LLC commentedWith the code in -dev, module installs correctly. Also trying the manual patch you posted above now... it works fine as well!
Do you want to switch to the code in #4? Otherwise, can mark this fixed.
Comment #8
geerlingguy CreditAttribution: geerlingguy at Midwestern Mac, LLC commentedActually... with the alternative fix in #4, install succeeds, but in either case, I don't see any report on the Reports -> Status report page.
I'm guessing the code inside
src/Install.php
is supposed to run, but it seems like it never actually gets picked up, so it's hard to see if Tideways is supposed to be running correctly or not...Comment #9
geerlingguy CreditAttribution: geerlingguy at Midwestern Mac, LLC commentedIf I manually paste the code from Install.php over into the .install file (just to make sure I can check requirements), I get a fatal error, with the message:
Is that supposed to be installed as part of the Tideways PHP Extension installation? I don't see it after I follow the official extension compile/install instructions :/
Comment #10
geerlingguy CreditAttribution: geerlingguy at Midwestern Mac, LLC commentedAlso, it seems that Tideways is being picked up by PHP correctly, at least...
Comment #11
david_garcia CreditAttribution: david_garcia commentedShould be brought into scope as a composer dependency.
Comment #12
geerlingguy CreditAttribution: geerlingguy at Midwestern Mac, LLC commentedAh... Drupal's composer endpoint was down, so I manually downloaded the release, and that's why I didn't get the library. Explains a lot!
I'll try again later now that the D.o repo is up.
Comment #13
david_garcia CreditAttribution: david_garcia commentedI'm going to consider this as fixed. Thanks!