Drush updb in ProcessBase.php line 188: Syntax Error while updating from 8.7.7 to 8.8.1

Created on 2 January 2020, almost 5 years ago
Updated 1 August 2023, over 1 year ago

I ran update after updating path_auto and running and got this error:

In ProcessBase.php line 188:

  Unable to decode output into JSON: Syntax error

  {
      "0": {
          "system": {
              "8801": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "update"
              },
              "8802": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "update"
              },
              "8803": {
                  "results": {
                      "query": "The "path_alias" entity type has been installed.",
                      "success": true
                  },
                  "type": "update"
              },
              "8804": {
                  "results": {
                      "query": "Path aliases have been converted to entities.",
                      "success": true
                  },
                  "type": "update"
              },
              "8805": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "update"
              },
              "entity_reference_autocomplete_match_limit": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              },
              "layout_plugin_schema_change": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "path": {
              "create_language_content_settings": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "search": {
              "block_page": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "taxonomy": {
              "configure_status_field_widget": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "text": {
              "add_required_summary_flag": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "views": {
              "limit_operator_defaults": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              },
              "remove_core_key": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          }
      },
      "drush_batch_process_finished": true
  }

Here is the complete update commands:

$ drush updb
 [warning] Invalid json in modules/contrib/contentimport/composer.json
 [warning] You are running on a system where PHP is compiled or limited to using 32-bit integers. This will limit the range of dates and timestamps to the years 1901-2038. Read about the <a href="https://www.drupal.org/docs/8/system-requirements/limitations-of-32-bit-php">limitations of 32-bit PHP</a>. (Currently using Limited date range Your PHP installation has a limited date range.)
 ---------- ------------------------------------------- --------------- -----------------------------------------------
  Module     Update ID                                   Type            Description
 ---------- ------------------------------------------- --------------- -----------------------------------------------
  system     8801                                        hook_update_n   Remove 'path.temporary' config if redundant.
  system     8802                                        hook_update_n   Fix system.theme:admin when the default theme
                                                                         is used as the admin theme.
  system     8803                                        hook_update_n   Install the 'path_alias' entity type.
  system     8804                                        hook_update_n   Convert path aliases to entities.
  system     8805                                        hook_update_n   Change the provider of the 'path_alias'
                                                                         entity type and its base fields.
  path       create_language_content_settings            post-update     Create the language content settings
                                                                         configuration object for path aliases.
  search     block_page                                  post-update     Configures default search page for
                                                                         instantiated blocks.
  system     entity_reference_autocomplete_match_limit   post-update     Populate the new 'match_limit' setting for
                                                                         the ER autocomplete widget.
  system     layout_plugin_schema_change                 post-update     Clear the schema cache.
  taxonomy   configure_status_field_widget               post-update     Add status with settings to all form displays
                                                                         for taxonomy entities.
  text       add_required_summary_flag                   post-update     Update text_with_summary fields and widgets
                                                                         to add summary required flags.
  views      limit_operator_defaults                     post-update     Define default values for limit operators
                                                                         settings in all filters.
  views      remove_core_key                             post-update     Remove core key from views configuration.
 ---------- ------------------------------------------- --------------- -----------------------------------------------


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > yes

>  [warning] Invalid json in modules/contrib/contentimport/composer.json
>  [notice] Update started: system_update_8801
>  [notice] Update completed: system_update_8801
>  [notice] Update started: system_update_8802
>  [notice] Update completed: system_update_8802
>  [notice] Update started: system_update_8803
>  [warning] Invalid json in modules/contrib/contentimport/composer.json
>  [notice] The "path_alias" entity type has been installed.
>  [notice] Update completed: system_update_8803
>  [notice] Update started: system_update_8804
>  [notice] Path aliases have been converted to entities.
>  [notice] Update completed: system_update_8804
>  [notice] Update started: system_update_8805
>  [notice] Update completed: system_update_8805
>  [warning] Invalid json in modules/contrib/contentimport/composer.json
>  [warning] Invalid json in modules/contrib/contentimport/composer.json
>  [notice] Update started: path_post_update_create_language_content_settings
>  [notice] Update completed: path_post_update_create_language_content_settings
>  [notice] Update started: search_post_update_block_page
>  [notice] Update completed: search_post_update_block_page
>  [notice] Update started: system_post_update_entity_reference_autocomplete_match_limit
>  [notice] Update completed: system_post_update_entity_reference_autocomplete_match_limit
>  [notice] Update started: system_post_update_layout_plugin_schema_change
>  [notice] Update completed: system_post_update_layout_plugin_schema_change
>  [notice] Update started: taxonomy_post_update_configure_status_field_widget
>  [notice] Update completed: taxonomy_post_update_configure_status_field_widget
>  [notice] Update started: text_post_update_add_required_summary_flag
>  [notice] Update completed: text_post_update_add_required_summary_flag
>  [notice] Update started: views_post_update_limit_operator_defaults
>  [notice] Update completed: views_post_update_limit_operator_defaults
>  [notice] Update started: views_post_update_remove_core_key
>  [notice] Update completed: views_post_update_remove_core_key

In ProcessBase.php line 188:

  Unable to decode output into JSON: Syntax error

  {
      "0": {
          "system": {
              "8801": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "update"
              },
              "8802": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "update"
              },
              "8803": {
                  "results": {
                      "query": "The "path_alias" entity type has been installed.",
                      "success": true
                  },
                  "type": "update"
              },
              "8804": {
                  "results": {
                      "query": "Path aliases have been converted to entities.",
                      "success": true
                  },
                  "type": "update"
              },
              "8805": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "update"
              },
              "entity_reference_autocomplete_match_limit": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              },
              "layout_plugin_schema_change": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "path": {
              "create_language_content_settings": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "search": {
              "block_page": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "taxonomy": {
              "configure_status_field_widget": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "text": {
              "add_required_summary_flag": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          },
          "views": {
              "limit_operator_defaults": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              },
              "remove_core_key": {
                  "results": {
                      "query": null,
                      "success": true
                  },
                  "type": "post_update"
              }
          }
      },
      "drush_batch_process_finished": true
  }


updatedb [--cache-clear [CACHE-CLEAR]] [--entity-updates] [--post-updates [POST-UPDATES]] [--no-cache-clear] [--no-post-updates] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon] [--notify] [--xh-link XH-LINK] [--] <command>

when I tried to run drush updb again, it returned with " [success] No pending updates." Will appreciate any suggestions on this. The updates were completed but not getting a successful statement at the end is of concern, though the error seem minor.

🐛 Bug report
Status

Closed: duplicate

Version

9.3

Component
Database update 

Last updated 8 days ago

No maintainer
Created by

🇳🇬Nigeria ojchris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Similar issue here with ckeditor while I try to updatedb with drush during migration from 9.1.^ to 9.5.^

    In ProcessBase.php line 171:
    Unable to decode output into JSON: Syntax error
    
      Fatal error: Declaration of Drupal\token_filter\Plugin\CKEditorPlugin\TokenBrowser::getModulePath() must be compatible with Drupal\ckeditor\CKEditorPluginBase::getModulePath(string $module_name): string
       in ...\modules\token_filter\src\Plugin\CKEditorPlugin\TokenBrowser.php on line 151

    Tried update.php also, but received another 200 with ckeditor_post_update_omit_settings_for_disabled_plugins.module

Production build 0.71.5 2024