Hey everybody,

I just stumbled on very odd behaviour... After running updates (and I do not know which modules been updated exactly) my Drupal 8.3.7 installation went odd... I could not add any new items to any of node edit forms....

At first I thought that this is because of Paragraphs 8.1.2 update however I can see that this issue is everywhere where there is any multiple fields or any buttons to add anything...

In order to fix that I tried many things... now I updated my Drupal installation to 8.4.0-rc2 to check if it fixes anything...

Please see error bellow:


An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /node/38/edit?destination=/admin/content&ajax_form=1
StatusText: 500 Service unavailable (with message)
ResponseText: The website encountered an unexpected error. Please try again later.LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution. in Drupal\Core\Database\Connection->__sleep() (line 1471 of core/lib/Drupal/Core/Database/Connection.php). serialize(Array) (Line: 14)
Drupal\Component\Serialization\PhpSerialize::encode(Array) (Line: 81)
Drupal\Core\KeyValueStore\DatabaseStorageExpirable->setWithExpire('form-FUFOgOWCQ8hwPQc0kemAuMFmozDqaheiC2y8uHz-H2E', Array, 21600) (Line: 193)
Drupal\Core\Form\FormCache->setCache('form-FUFOgOWCQ8hwPQc0kemAuMFmozDqaheiC2y8uHz-H2E', Array, Object) (Line: 441)
Drupal\Core\Form\FormBuilder->setCache('form-FUFOgOWCQ8hwPQc0kemAuMFmozDqaheiC2y8uHz-H2E', Array, Object) (Line: 419)
Drupal\Core\Form\FormBuilder->rebuildForm('node_product_edit_form', Object, Array) (Line: 621)
Drupal\Core\Form\FormBuilder->processForm('node_product_edit_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm('node_product_edit_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 153)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Also here is a list of my modules that I am using:


 Package                          Name                                                                       Type    Status         Version
 Administration                   Admin Toolbar (admin_toolbar)                                              Module  Enabled        8.x-1.20
 Administration                   Admin Toolbar Extra Tools (admin_toolbar_tools)                            Module  Enabled        8.x-1.20
 Administration                   Module filter (module_filter)                                              Module  Enabled        8.x-3.0
 Adyax                            Country path (country_path)                                                Module  Enabled        8.x-1.0-rc2
 Chaos tool suite                 Chaos tools (ctools)                                                       Module  Enabled        8.x-3.0
 Chaos tool suite (Experimental)  Chaos tools blocks (ctools_block)                                          Module  Enabled        8.x-3.0
 Chaos tool suite (Experimental)  Chaos tools Views (ctools_views)                                           Module  Enabled        8.x-3.0
 Core                             Actions (action)                                                           Module  Enabled        8.4.0-rc2
 Core                             Automated Cron (automated_cron)                                            Module  Enabled        8.4.0-rc2
 Core                             BigPipe (big_pipe)                                                         Module  Enabled        8.4.0-rc2
 Core                             Block (block)                                                              Module  Enabled        8.4.0-rc2
 Core                             Breakpoint (breakpoint)                                                    Module  Enabled        8.4.0-rc2
 Core                             CKEditor (ckeditor)                                                        Module  Enabled        8.4.0-rc2
 Core                             Color (color)                                                              Module  Enabled        8.4.0-rc2
 Core                             Configuration Manager (config)                                             Module  Enabled        8.4.0-rc2
 Core                             Contact (contact)                                                          Module  Enabled        8.4.0-rc2
 Core                             Contextual Links (contextual)                                              Module  Enabled        8.4.0-rc2
 Core                             Custom Block (block_content)                                               Module  Enabled        8.4.0-rc2
 Core                             Custom Menu Links (menu_link_content)                                      Module  Enabled        8.4.0-rc2
 Core                             Database Logging (dblog)                                                   Module  Enabled        8.4.0-rc2
 Core                             Field (field)                                                              Module  Enabled        8.4.0-rc2
 Core                             Field UI (field_ui)                                                        Module  Enabled        8.4.0-rc2
 Core                             Filter (filter)                                                            Module  Enabled        8.4.0-rc2
 Core                             History (history)                                                          Module  Enabled        8.4.0-rc2
 Core                             Internal Dynamic Page Cache (dynamic_page_cache)                           Module  Enabled        8.4.0-rc2
 Core                             Layout Discovery (layout_discovery)                                        Module  Enabled        8.4.0-rc2
 Core                             Menu UI (menu_ui)                                                          Module  Enabled        8.4.0-rc2
 Core                             Node (node)                                                                Module  Enabled        8.4.0-rc2
 Core                             Path (path)                                                                Module  Enabled        8.4.0-rc2
 Core                             Quick Edit (quickedit)                                                     Module  Enabled        8.4.0-rc2
 Core                             RDF (rdf)                                                                  Module  Enabled        8.4.0-rc2
 Core                             Responsive Image (responsive_image)                                        Module  Enabled        8.4.0-rc2
 Core                             Shortcut (shortcut)                                                        Module  Enabled        8.4.0-rc2
 Core                             Statistics (statistics)                                                    Module  Enabled        8.4.0-rc2
 Core                             System (system)                                                            Module  Enabled        8.4.0-rc2
 Core                             Taxonomy (taxonomy)                                                        Module  Enabled        8.4.0-rc2
 Core                             Text Editor (editor)                                                       Module  Enabled        8.4.0-rc2
 Core                             Toolbar (toolbar)                                                          Module  Enabled        8.4.0-rc2
 Core                             Tour (tour)                                                                Module  Enabled        8.4.0-rc2
 Core                             Update Manager (update)                                                    Module  Enabled        8.4.0-rc2
 Core                             User (user)                                                                Module  Enabled        8.4.0-rc2
 Core                             Views (views)                                                              Module  Enabled        8.4.0-rc2
 Core                             Views UI (views_ui)                                                        Module  Enabled        8.4.0-rc2
 Core                             Workflows (workflows)                                                      Module  Enabled        8.4.0-rc2
 Custom                           Linkit (linkit)                                                            Module  Enabled        8.x-5.0-beta6
 Custom                           Responsive Favicons (responsive_favicons)                                  Module  Enabled        8.x-1.4
 Custom                           Twig Field Value (twig_field_value)                                        Module  Enabled        8.x-1.1+1-dev
 Development                      Devel (devel)                                                              Module  Enabled        8.x-1.0
 Development                      Features (features)                                                        Module  Enabled        8.x-3.5
 Development                      Features UI (features_ui)                                                  Module  Enabled        8.x-3.5
 Development                      Twig vardumper (twig_vardumper)                                            Module  Enabled        8.x-1.0
 Development                      Vardumper (vardumper)                                                      Module  Enabled        8.x-1.3
 Development                      Vardumper console integration (vardumper_console)                          Module  Enabled        8.x-1.3
 Display Suite                    Display Suite (ds)                                                         Module  Enabled        8.x-3.1
 Display Suite                    Display Suite Switch View Mode (ds_switch_view_mode)                       Module  Enabled        8.x-3.1
 Domain                           Domain (domain)                                                            Module  Enabled        8.4.0-rc2
 Domain                           Domain Access (domain_access)                                              Module  Enabled        8.4.0-rc2
 Domain                           Domain Alias (domain_alias)                                                Module  Enabled        8.4.0-rc2
 Domain                           Domain Alpha Updates (domain_alpha)                                        Module  Enabled        8.4.0-rc2
 Domain                           Domain Configuration (domain_config)                                       Module  Enabled        8.4.0-rc2
 Domain                           Domain Content (domain_content)                                            Module  Enabled        8.4.0-rc2
 Domain                           Domain Language (domain_language)                                          Module  Enabled        8.x-1.0-alpha1
 Domain                           Domain Site Settings (domain_site_settings)                                Module  Enabled        8.x-1.2
 Field types                      Address (address)                                                          Module  Enabled        8.x-1.2
 Field types                      Datetime (datetime)                                                        Module  Enabled        8.4.0-rc2
 Field types                      Double field (double_field)                                                Module  Enabled        8.x-3.0
 Field types                      Entity Reference Revisions (entity_reference_revisions)                    Module  Enabled        8.x-1.3
 Field types                      File (file)                                                                Module  Enabled        8.4.0-rc2
 Field types                      Geofield (geofield)                                                        Module  Enabled        8.x-1.0-alpha4
 Field types                      Geofield Map (geofield_map)                                                Module  Enabled        8.x-1.11
 Field types                      Image (image)                                                              Module  Enabled        8.4.0-rc2
 Field types                      Link (link)                                                                Module  Enabled        8.4.0-rc2
 Field types                      Office hours (office_hours)                                                Module  Enabled        8.x-1.0-alpha2
 Field types                      Options (options)                                                          Module  Enabled        8.4.0-rc2
 Field Types                      Physical Fields (physical)                                                 Module  Enabled        8.x-1.0-rc3
 Field types                      Telephone (telephone)                                                      Module  Enabled        8.4.0-rc2
 Field types                      Text (text)                                                                Module  Enabled        8.4.0-rc2
 Fields                           Field Group (field_group)                                                  Module  Enabled        8.x-1.0-rc6+21-dev
 Menu                             Menu Item Extras (menu_item_extras)                                        Module  Enabled        8.x-2.0-alpha2+2-dev
 Multilanguage                    Administration language negotiation (administration_language_negotiation)  Module  Enabled        8.x-1.2
 Multilingual                     Alternate hreflang (hreflang)                                              Module  Enabled        8.x-1.0
 Multilingual                     Configuration Translation (config_translation)                             Module  Enabled        8.4.0-rc2
 Multilingual                     Content Translation (content_translation)                                  Module  Enabled        8.4.0-rc2
 Multilingual                     Interface Translation (locale)                                             Module  Enabled        8.4.0-rc2
 Multilingual                     Language (language)                                                        Module  Enabled        8.4.0-rc2
 Multilingual                     Language Cookie (language_cookie)                                          Module  Enabled        8.x-1.0-beta1
 Other                            Advanced Link (editor_advanced_link)                                       Module  Enabled        8.x-1.4
 Other                            Component Libraries (components)                                           Module  Enabled        8.x-1.0
 Other                            Configuration Update Base (config_update)                                  Module  Enabled        8.x-1.4
 Other                            Contact Block (contact_block)                                              Module  Enabled        8.x-1.4
 Other                            Contact storage (contact_storage)                                          Module  Enabled        8.x-1.0-beta9
 Other                            CookieConsent (cookieconsent)                                              Module  Enabled        8.x-1.2
 Other                            Disqus (disqus)                                                            Module  Enabled        8.x-1.0-rc3
 Other                            Geocoder (geocoder)                                                        Module  Enabled        8.x-2.0-alpha5
 Other                            Geocoder Address (geocoder_address)                                        Module  Enabled        8.x-2.0-alpha5
 Other                            Geocoder Field (geocoder_field)                                            Module  Enabled        8.x-2.0-alpha5
 Other                            Geocoder Geofield (geocoder_geofield)                                      Module  Enabled        8.x-2.0-alpha5
 Other                            Git Deploy (git_deploy)                                                    Module  Enabled        8.x-2.x-dev
 Other                            Masquerade (masquerade)                                                    Module  Enabled        8.x-2.0-beta1
 Other                            Pathauto (pathauto)                                                        Module  Enabled        8.x-1.0
 Other                            Rabbit Hole (rabbit_hole)                                                  Module  Enabled        8.x-1.0-beta3+9-dev
 Other                            Rabbit Hole nodes (rh_node)                                                Module  Enabled        8.x-1.0-beta3+9-dev
 Other                            Rabbit Hole taxonomy (rh_taxonomy)                                         Module  Enabled        8.x-1.0-beta3+9-dev
 Other                            Redirect (redirect)                                                        Module  Enabled        8.x-1.0-beta1
 Other                            Redirect 404 (redirect_404)                                                Module  Enabled        8.x-1.0-beta1
 Other                            Redirect Domain (redirect_domain)                                          Module  Enabled        8.x-1.0-beta1
 Other                            Taxonomy Views Integrator (tvi)                                            Module  Enabled        8.x-1.0-beta1
 Other                            Token (token)                                                              Module  Enabled        8.x-1.0
 Other                            Twig tweak (twig_tweak)                                                    Module  Enabled        8.x-2.0-rc1
 Other                            Typed Data (typed_data)                                                    Module  Enabled        8.x-1.0-alpha1
 Other                            Ultimate Cron (ultimate_cron)                                              Module  Enabled        8.x-2.0-alpha2
 Paragraphs                       Paragraphs (paragraphs)                                                    Module  Enabled        8.x-1.2
 Rules                            Rules (rules)                                                              Module  Enabled        8.x-3.0-alpha3+2-dev
 Search                           Database Search (search_api_db)                                            Module  Enabled        8.x-1.4
 Search                           Search API (search_api)                                                    Module  Enabled        8.x-1.4
 SEO                              Metatag (metatag)                                                          Module  Enabled        8.x-1.2
 SEO                              Metatag: Dublin Core (metatag_dc)                                          Module  Enabled        8.x-1.2
 SEO                              Metatag: Dublin Core Advanced (metatag_dc_advanced)                        Module  Enabled        8.x-1.2
 SEO                              Metatag: Google Custom Search Engine (CSE) (metatag_google_cse)            Module  Enabled        8.x-1.2
 SEO                              Metatag: Google Plus (metatag_google_plus)                                 Module  Enabled        8.x-1.2
 SEO                              Metatag: Open Graph (metatag_open_graph)                                   Module  Enabled        8.x-1.2
 SEO                              Metatag: Open Graph Products (metatag_open_graph_products)                 Module  Enabled        8.x-1.2
 SEO                              Metatag: Twitter Cards (metatag_twitter_cards)                             Module  Enabled        8.x-1.2
 SEO                              Metatag: Verification (metatag_verification)                               Module  Enabled        8.x-1.2
 SEO                              Simple XML Sitemap (simple_sitemap)                                        Module  Enabled        8.x-2.10
 Taxonomy                         Taxonomy term depth (taxonomy_term_depth)                                  Module  Enabled        8.x-2.x-dev
 Translation Management           Config Entity Source (tmgmt_config)                                        Module  Enabled        8.x-1.2
 Translation Management           Content Entity Source (tmgmt_content)                                      Module  Enabled        8.x-1.2
 Translation Management           Drupal user (tmgmt_local)                                                  Module  Enabled        8.x-1.2
 Translation Management           Export / Import File (tmgmt_file)                                          Module  Enabled        8.x-1.2
 Translation Management           Locales Source (tmgmt_locale)                                              Module  Enabled        8.x-1.2
 Translation Management           Translation Language abilities (tmgmt_language_combination)                Module  Enabled        8.x-1.2
 Translation Management           Translation Management Core (tmgmt)                                        Module  Enabled        8.x-1.2
 User interface                   Simple hierarchical select (shs)                                           Module  Enabled        8.x-1.0-alpha2
 Views                            Better Exposed Filters (better_exposed_filters)                            Module  Enabled        8.x-3.0-alpha3
 Web services                     CloudFlare (cloudflare)                                                    Module  Enabled        8.x-1.0-alpha7
 Web services                     HTTP Basic Authentication (basic_auth)                                     Module  Enabled        8.4.0-rc2
 Web services                     RESTful Web Services (rest)                                                Module  Enabled        8.4.0-rc2
 Web services                     Serialization (serialization)                                              Module  Enabled        8.4.0-rc2
 Widgets                          Client-side hierarchical select (cshs)                                     Module  Enabled        8.x-1.0-beta4
 Core                             Bartik (bartik)                                                            Theme   Enabled        8.4.0-rc2
 Core                             Seven (seven)                                                              Theme   Enabled        8.4.0-rc2

Any thoughts would much appreciated... Or if you could give me of how to do more advanced debugging please let me know...

Cheers!

Comments

puogintas created an issue. See original summary.

cilefen’s picture

povilas uogintas’s picture

Cheers will check this issue and see if it comes back again....

povilas uogintas’s picture

Hey,

I finally identified issue... module causing this was https://www.drupal.org/node/2914831 Menu item extras....

Thanks!

cilefen’s picture

Status: Active » Closed (duplicate)
Related issues: +#2914831: Ajax Error when adding any new item/entity