The project is called form_mode_control but all files are named form_modes_control. The "s" needs to be removed on all files. It will have a significant impact on existing intall.

Initial report : not able to install REST module

Very simple to reproduce: go to admin/modules and try to install it by selecting the rest module.
Result: after few minutes, the rest module is not installed

Here is the installed modules

 Admin Toolbar (admin_toolbar)                                           
 Admin Toolbar Extra Tools (admin_toolbar_tools)                         
 Fancy File Delete (fancy_file_delete)                    8.x-1.x-dev    
 Form modes control (form_modes_control)                  8.x-1.0-beta0  
 Blazy UI (blazy_ui)                                      8.1.1          
 Artemis Productions Business Logic (artprod)             1              
 Linkit (linkit)                                                         
 Devel (devel)                                            8.x-1.x-dev    
 Devel Kint (kint)                                        8.x-1.x-dev    
 Address (address)                                                       
 Country (country)                                        8.1.1          
 Field collection (field_collection)                      8.1.1          
 Language field (languagefield)                           8.x-1.0        
 Field Group (field_group)                                               
 File (Field) Paths (filefield_paths)                                    
 Inline Entity Form (inline_entity_form)                                 
 Entity Embed (entity_embed)                                             
 dropzonejs (dropzonejs)                                                 
 DropzoneJS entity browser widget (dropzonejs_eb_widget)                 
 Entity Browser (entity_browser)                                         
 Entity Browser IEF (entity_browser_entity_form)                         
 Intense images (intense)                                 8.1.1          
 Media entity (media_entity)                                             
 Media entity document (media_entity_document)                           
 Media entity image (media_entity_image)                                 
 AddToAny (addtoany)                                                     
 Contact storage (contact_storage)                        8.x-1.0-beta4  
 Embed (embed)                                                           
 Entity (entity)                                          8.x-1.0-alpha3 
 File Browser (file_browser)                                             
 Pathauto (pathauto)                                      8.x-1.0-alpha3 
 Token (token)                                            8.x-1.0-alpha2 
 Slick (slick)                                            8.1.1          
 Slick media (slick_media)                                8.1.1          
 Slick UI (slick_ui)                                      8.1.1          
 Slick views (slick_views)                                8.1.1          
 Video Embed Field (video_embed_field)                                   
 Video Embed Field Dailymotion (video_embed_dailymotion)                 
 Video Embed Media (video_embed_media)   
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DuneBL created an issue. See original summary.

Wim Leers’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this. Can you reproduce this on simplytest.me?

Wim Leers’s picture

This reminds me of #2719953: Can't install the BigPipe module. I think it's a deeper problem.

Wim Leers’s picture

Title: Can't install the module » Can't install the REST module
Wim Leers’s picture

  1. Can you verify that you can still install other modules?
  2. Can you describe your server environment?
DuneBL’s picture

I confirm I can install another module (I have installed simplenews)

FYI : regarding my Drupal Install, I have followed the following guide: Disable Drupal 8 caching during development

And hereafter some output from phpinfo

Linux ubulap 3.13.0-86-generic #131-Ubuntu 
PHP API 	20121113
PHP Extension 	20121212
Zend Extension 	220121212
Zend Extension Build 	API220121212,NTS
PHP Extension Build 	API20121212,NTS 

Apache Version 	Apache/2.4.7 (Ubuntu)
Apache API Version 	20120211 
Loaded Modules 	core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_status mod_vhost_alias 
Wim Leers’s picture

Is there anything in your PHP error log?

DuneBL’s picture

Do you mean the apache log? (By default php is storing errors in the apache log)
If yes, there is nothing in it.

Other phpinfo settings:

log_errors	On
track_errors	Off
error_log	no value

Note that I have the same problem with the "CSV Serialization" module

DuneBL’s picture

Edit to add:
*It takes a very huge time to just get access to /admin/modules
*I have removed the call to development.services.yml and the include ofsettings.local.php : nothing change

DuneBL’s picture

I found the solution after uninstalling the last modules I have added.
The Ugly Duckling was :
Form modes control (form_modes_control) 8.x-1.0-beta0

Many thanks for your kind help!!!!

Wim Leers’s picture

https://www.drupal.org/project/form_modes_control does not exist, so where did you get that module? I want to make sure we file a bug report against it.

DuneBL’s picture

This is because there is a missing 's' in the name...
https://www.drupal.org/project/form_mode_control

I am also preparing a bug report for this module...

Wim Leers’s picture

Project: Drupal core » Form Mode Control
Version: 8.1.1 » 8.x-1.x-dev
Component: rest.module » Code
Category: Support request » Bug report
Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Active
eme’s picture

Title: Can't install the REST module » Rename all files "form_mode_control" without the "s"
Issue summary: View changes

Indeed. Needs to be done asap.

DuneBL’s picture

Win Leers was too fast!!!

chishah92’s picture

Assigned: Unassigned » chishah92
chishah92’s picture

Have created a patch where the "s" is removed from the files as well as in the functions also.

Thanks!
~Chirag

chishah92’s picture

Status: Active » Needs review
mayurjadhav’s picture

Status: Needs review » Reviewed & tested by the community

Great Work, Patch applied successfully. Works fine for me, moving to RTBC.

  • matio89 committed 2f6caa1 on 8.x-1.x authored by chishah92
    Issue #2737271 by chishah92: Rename all files "form_mode_control"...
mayurjadhav’s picture

Status: Reviewed & tested by the community » Fixed

Changing the status as code is already committed.

chishah92’s picture

Assigned: chishah92 » Unassigned

  • matio89 committed 2f6caa1 on 8.x-2.x authored by chishah92
    Issue #2737271 by chishah92: Rename all files "form_mode_control"...
eme’s picture

Status: Fixed » Closed (fixed)