I looked at similar questions, but I could not find the answer.
Context: Windows 10, XAMPP, Git, Composer, Drush 8, and Drupal 8.
When I try to use:
(Updating modules and themes) drush pm-update
or
(for kernel update) drush up drupal
I got the following error:
Illegal string offset 'site' backend.inc:1037 [warning]
The command could not be executed successfully (returned: The [error]
filename, directory name, or volume label syntax is incorrect.
, code: 1)
pm-updatestatus failed.
But I have no problem , for example, loading, turning on, restoring the cache, etc. using Drush.
I can also update modules through Drupal (extend> update).
I tried using
drush pm-update --debug --verbose
And this is an excerpt with one warning and two errors.
Backend invoke: [command]
"C:\\Users\\Usuario\\AppData\\Roaming\\Composer\\vendor\\drush\\drush\\drush"
--backend=2 --verbose --debug --root="C:\\xampp\\htdocs\\mysite"
--uri=http://default pm-updatestatus 2>&1 [4.59 sec, 14.67 MB]
"C:\\Users\\Usuario\\AppData\\Roaming\\Composer\\vendor\\drush\\drush\\drush" [notice]
--backend=2 --verbose --debug --root="C:\\xampp\\htdocs\\mysite"
--uri=http://default pm-updatestatus 2>&1 [4.59 sec, 14.68 MB]
Illegal string offset 'site' backend.inc:1037 [4.8 sec, 14.68 MB] [warning]
The command could not be executed successfully (returned: The [error]
filename, directory name, or volume label syntax is incorrect.
, code: 1) [4.8 sec, 14.68 MB]
pm-updatestatus failed. [4.8 sec, 14.67 MB] [error]
Returned from hook drush_pm_updatecode [4.8 sec, 14.67 MB] [debug]
Changes made in drush_pm_updatecode have been rolled back. [4.8 sec, [debug]
14.67 MB]
Command dispatch complete [4.81 sec, 14.65 MB] [notice]
Returned from hook drush_pm_update [4.81 sec, 14.63 MB] [debug]
Command dispatch complete [4.81 sec, 14.6 MB]
Honestly ... I'm stuck. I am new to Drupal and I could not find the answer to this question.
- ? ?
!