This is happening on Drupal 8.4.2.

When installing the module through the GUI, I get a WSOD with no error message and the installation fails.

When installing the module through Drush, the installation fails and I get the following error message:

PHP Fatal error:  Cannot use Drupal\Component\Utility\String as String because 'String' is a special class name in /home/drupalpro/websites/mysite.dev/docroot/modules/contrib/views_rss_media/views_rss_media.install on line 8
PHP Stack trace:
PHP   1. {main}() /home/drupalpro/.composer/vendor/drush/drush/drush.php:0
PHP   2. drush_main() /home/drupalpro/.composer/vendor/drush/drush/drush.php:12
PHP   3. Drush\Boot\DrupalBoot8->bootstrap_and_dispatch() /home/drupalpro/.composer/vendor/drush/drush/includes/preflight.inc:66
PHP   4. drush_dispatch() /home/drupalpro/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php:67
PHP   5. drush_command() /home/drupalpro/.composer/vendor/drush/drush/includes/command.inc:185
PHP   6. _drush_invoke_hooks() /home/drupalpro/.composer/vendor/drush/drush/includes/command.inc:217
PHP   7. drush_pm_enable_validate() /home/drupalpro/.composer/vendor/drush/drush/includes/command.inc:366
PHP   8. drupal_check_module() /home/drupalpro/.composer/vendor/drush/drush/commands/pm/pm.drush.inc:1108
PHP   9. module_load_install() /home/drupalpro/websites/mysite.dev/docroot/core/includes/install.inc:1005
PHP  10. module_load_include() /home/drupalpro/websites/mysite.dev/docroot/core/includes/module.inc:93
Drush command terminated abnormally due to an unrecoverable error.
Error: Cannot use Drupal\Component\Utility\String as String because 'String' is a special class name in /home/drupalpro/websites/mysite.dev/docroot/modules/contrib/views_rss_media/views_rss_media.install, line 8

Comments

jcmartinez created an issue. See original summary.

jcmartinez’s picture

StatusFileSize
new2.78 KB

This my attempt at fixing this issue. There are other issues with the views_rss module which this module depends on. We should open tickets for that module as well.

suraj2012’s picture

Assigned: Unassigned » suraj2012
Status: Active » Needs review
suraj2012’s picture

Assigned: suraj2012 » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new47.86 KB

Patch from #2 works. Module installed properly. Attached screenshot
Screenshot

  • jcmartinez authored a2e7eca on 8.x-1.x
    Issue #2931901 by jcmartinez: Fixed WSOD on installation
    
gisle’s picture

Status: Reviewed & tested by the community » Fixed

Pushed to the latest snapshot of 8.x-1.x-dev. Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.