Salut,
J’ai essayé de reprendre le debug. J’ai cherché du côté de Drush pour debugger les erreurs Drupal.
J’ai installé Drush de manière global, pas d’install « site ».
Une fois Drush installé, j’ai testé l’install en appelant Drush depuis un dossier quelconque ne contenant pas le site framforms.
La commande drush core-status
me retourne ça
PHP executable : /usr/bin/php
PHP configuration : /etc/php/7.3/cli/php.ini
PHP OS : Linux
Drush script : /var/www/.composer/vendor/drush/drush/drush.php
Drush version : 8.3.2
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
J’en déduis que l’installation s’est bien passée.
Lorsque je lance n’importe quelle commande Drush depuis le dossier /var/www/html/ (où se trouve mon site framaforms), j’obtiens les erreurs suivantes
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Attempt to assign property 'rdf_mapping' of non-object rdf.module:412 [warning]
Drush command terminated abnormally due to an unrecoverable error. [error]
Error : Call to a member function events() on string dans RulesEventSet::rebuildEventCache() (ligne 838 dans /var/www/html/sites/all/modules/rules/includes/rules.plugins.inc).
J’ai donc ensuite nettoyé le cache Drupal directement en base, puis j’ai essayé d’accéder à la page web qui m’a renvoyé l’erreur habituelle, avec le style Framaforms (pour rappel l’erreur est: « Le site Web a rencontré une erreur inattendue. Veuillez essayer de nouveau plus tard. »).
Après ça, drush core-status
depuis /var/www/html me retourne quelque chose de similaire, mais avec une petite variation par rapport aux erreurs précédentes
Invalid argument supplied for foreach() common.inc:7300 [warning]
array_keys() expects parameter 1 to be array, null given common.inc:7320 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() entity.controller.inc:259 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Invalid argument supplied for foreach() rules.core.inc:56 [warning]
Attempt to assign property 'dependencies' of non-object rules.core.inc:61 [warning]
Attempt to assign property 'tags' of non-object rules.core.inc:62 [warning]
Attempt to assign property 'rdf_mapping' of non-object rdf.module:412 [warning]
WD php: Error: Call to a member function events() on string in [error]
RulesEventSet::rebuildEventCache() (line 838 of
/var/www/html/sites/all/modules/rules/includes/rules.plugins.inc).
PHP Fatal error: Uncaught Error: Call to a member function plugin() on string in /var/www/html/sites/all/modules/rules/includes/rules.core.inc:84
Stack trace:
#0 /var/www/html/sites/all/modules/entity/includes/entity.controller.inc(774): RulesEntityController->applyConditions(Array, Array)
#1 /var/www/html/sites/all/modules/entity/includes/entity.controller.inc(223): EntityAPIControllerExportable->cacheGet(false, Array)
#2 /var/www/html/sites/all/modules/entity/includes/entity.controller.inc(730): EntityAPIController->load(false, Array)
#3 /var/www/html/includes/common.inc(8086): EntityAPIControllerExportable->load(false, Array)
#4 /var/www/html/sites/all/modules/entity/entity.module(259): entity_load('rules_config', false, Array)
#5 /var/www/html/sites/all/modules/rules/rules.module(892): entity_load_multiple_by_name('rules_config', false, Array)
#6 /var/www/html/sites/all/modules/rules/includes/rules.plugins.inc(835): rules_config_load_multiple(false, Array)
#7 /var/www/html/sites/all/modules/rules/rules.module(413): RulesE in /var/www/html/sites/all/modules/rules/includes/rules.core.inc on line 84
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Uncaught Error: Call to a member function plugin() on string in
/var/www/html/sites/all/modules/rules/includes/rules.core.inc:84
Stack trace:
#0 /var/www/html/sites/all/modules/entity/includes/entity.controller.inc(774):
RulesEntityController->applyConditions(Array, Array)
#1 /var/www/html/sites/all/modules/entity/includes/entity.controller.inc(223):
EntityAPIControllerExportable->cacheGet(false, Array)
#2 /var/www/html/sites/all/modules/entity/includes/entity.controller.inc(730):
EntityAPIController->load(false, Array)
#3 /var/www/html/includes/common.inc(8086):
EntityAPIControllerExportable->load(false, Array)
#4 /var/www/html/sites/all/modules/entity/entity.module(259):
entity_load('rules_config', false, Array)
#5 /var/www/html/sites/all/modules/rules/rules.module(892):
entity_load_multiple_by_name('rules_config', false, Array)
#6 /var/www/html/sites/all/modules/rules/includes/rules.plugins.inc(835):
rules_config_load_multiple(false, Array)
#7 /var/www/html/sites/all/modules/rules/rules.module(413): RulesE in
/var/www/html/sites/all/modules/rules/includes/rules.core.inc, line 84
On retrouve ici toutes les erreurs PHP qu’on avait dans le error.log Nginx.
Après exécution de la commande Drush, quand je recharge la page web, je perd le style Framaforms.
Si je nettoie le cache Drupal de nouveau et que je recharge la page, je retrouve le style. 
Bref, je sais plus trop où chercher maintenant. Des idées?