Hello, from module descriptions I see it should do exactly what I needed, but on STEP 5 from documentation I am getting mentioned error.
Error: The website encountered an unexpected error. Please try again later.
Path: admin/config/media/background_image/add
Any ideas what is it?
I am using fresh Drupal 8.4.2
Lev.
EDIT: I checked the dblog and I think this should help.
User: admin
Location: http://my_site_url/admin/config/media/background_image/add
Referrer: http://my_site_url/admin/config/media/background_image/add
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 1472 of [path to D8]/core/lib/Drupal/Core/Database/Connection.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 2935208-11.patch | 4.72 KB | andypost |
| #11 | 2935208-interdiff-10.txt | 899 bytes | andypost |
| #11 | 2935208-11-test-only.patch | 3.06 KB | andypost |
Comments
Comment #2
le72Comment #3
Sebcbien commentedHello,
I have exactly the same problem! When we add an background image.
my config: wamp 64, php 5.6.31, mysql 5.7.19, drupal 8.4.4
An idea?
Comment #4
saramato commentedAnd me too
PHP 5.6.33-1 + Ubuntu 16.04.1 + Drupal 8.4.4 + Background image 8.x-1.1
Comment #5
fruitsalad commentedSame here. Fresh standard drupal installation.Bootstrap Paragraphs is the only module used except the ones recommended on the background image page. Error appears when I try to add a new background.
Auf der Website ist ein unvorhergesehener Fehler aufgetreten. Bitte versuchen Sie es später nochmal.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 1472 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-VDOnPPb7mknzTfO30iHdoCxbl9oViSMeEfONJXoYcVQ', Array, 21600) (Line: 197) Drupal\Core\Form\FormCache->setCache('form-VDOnPPb7mknzTfO30iHdoCxbl9oViSMeEfONJXoYcVQ', Array, Object) (Line: 441) Drupal\Core\Form\FormBuilder->setCache('form-VDOnPPb7mknzTfO30iHdoCxbl9oViSMeEfONJXoYcVQ', Array, Object) (Line: 419) Drupal\Core\Form\FormBuilder->rebuildForm('background_image_add_form', Object, Array) (Line: 621) Drupal\Core\Form\FormBuilder->processForm('background_image_add_form', Array, Object) (Line: 314) Drupal\Core\Form\FormBuilder->buildForm('background_image_add_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: 582) 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: 99) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78) Drupal\page_cache\StackMiddleware\PageCache->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)modules:
Advanced CSS/JS Aggregation AdvAgg Bundler (advagg_bundler) Module Not installed 8.x-3.4
Advanced CSS/JS Aggregation AdvAgg CDN (advagg_cdn) Module Not installed 8.x-3.4
Advanced CSS/JS Aggregation AdvAgg CSS/JS Validator (advagg_validator) Module Not installed 8.x-3.4
Advanced CSS/JS Aggregation AdvAgg External Minification (advagg_ext_minify) Module Not installed 8.x-3.4
Advanced CSS/JS Aggregation AdvAgg Minify CSS (advagg_css_minify) Module Not installed 8.x-3.4
Advanced CSS/JS Aggregation AdvAgg Minify JavaScript (advagg_js_minify) Module Not installed 8.x-3.4
Advanced CSS/JS Aggregation AdvAgg Modifier (advagg_mod) Module Not installed 8.x-3.4
Advanced CSS/JS Aggregation AdvAgg Old Internet Explorer Compatibility Enhancer (advagg_old_ie_compatibility) Module Not installed 8.x-3.4
Advanced CSS/JS Aggregation Advanced CSS/JS Aggregation (advagg) Module Enabled 8.x-3.4
Core Actions (action) Module Not installed 8.4.4
Core Activity Tracker (tracker) Module Not installed 8.4.4
Core Aggregator (aggregator) Module Not installed 8.4.4
Core Automated Cron (automated_cron) Module Enabled 8.4.4
Core Ban (ban) Module Not installed 8.4.4
Core BigPipe (big_pipe) Module Not installed 8.4.4
Core Block (block) Module Enabled 8.4.4
Core Book (book) Module Not installed 8.4.4
Core Breakpoint (breakpoint) Module Enabled 8.4.4
Core CKEditor (ckeditor) Module Enabled 8.4.4
Core Color (color) Module Enabled 8.4.4
Core Comment (comment) Module Enabled 8.4.4
Core Configuration Manager (config) Module Enabled 8.4.4
Core Contact (contact) Module Enabled 8.4.4
Core Contextual Links (contextual) Module Enabled 8.4.4
Core Custom Block (block_content) Module Enabled 8.4.4
Core Custom Menu Links (menu_link_content) Module Enabled 8.4.4
Core Database Logging (dblog) Module Enabled 8.4.4
Core Field (field) Module Enabled 8.4.4
Core Field UI (field_ui) Module Enabled 8.4.4
Core Filter (filter) Module Enabled 8.4.4
Core Forum (forum) Module Not installed 8.4.4
Core Help (help) Module Enabled 8.4.4
Core History (history) Module Enabled 8.4.4
Core Inline Form Errors (inline_form_errors) Module Not installed 8.4.4
Core Internal Dynamic Page Cache (dynamic_page_cache) Module Enabled 8.4.4
Core Internal Page Cache (page_cache) Module Enabled 8.4.4
Core Layout Discovery (layout_discovery) Module Not installed 8.4.4
Core Menu UI (menu_ui) Module Enabled 8.4.4
Core Node (node) Module Enabled 8.4.4
Core Path (path) Module Enabled 8.4.4
Core Quick Edit (quickedit) Module Enabled 8.4.4
Core RDF (rdf) Module Enabled 8.4.4
Core Responsive Image (responsive_image) Module Not installed 8.4.4
Core Search (search) Module Enabled 8.4.4
Core Shortcut (shortcut) Module Enabled 8.4.4
Core Statistics (statistics) Module Not installed 8.4.4
Core Syslog (syslog) Module Not installed 8.4.4
Core System (system) Module Enabled 8.4.4
Core Taxonomy (taxonomy) Module Enabled 8.4.4
Core Testing (simpletest) Module Not installed 8.4.4
Core Text Editor (editor) Module Enabled 8.4.4
Core Toolbar (toolbar) Module Enabled 8.4.4
Core Tour (tour) Module Enabled 8.4.4
Core Update Manager (update) Module Enabled 8.4.4
Core User (user) Module Enabled 8.4.4
Core Views (views) Module Enabled 8.4.4
Core Views UI (views_ui) Module Enabled 8.4.4
Core Workflows (workflows) Module Not installed 8.4.4
Core (Experimental) Content Moderation (content_moderation) Module Not installed 8.4.4
Core (Experimental) Field Layout (field_layout) Module Not installed 8.4.4
Core (Experimental) Migrate (migrate) Module Not installed 8.4.4
Core (Experimental) Migrate Drupal (migrate_drupal) Module Not installed 8.4.4
Core (Experimental) Migrate Drupal UI (migrate_drupal_ui) Module Not installed 8.4.4
Core (Experimental) Settings Tray (settings_tray) Module Not installed 8.4.4
Field types Datetime (datetime) Module Enabled 8.4.4
Field types Datetime Range (datetime_range) Module Not installed 8.4.4
Field types Entity Reference Revisions (entity_reference_revisions) Module Enabled 8.x-1.4
Field types File (file) Module Enabled 8.4.4
Field types Image (image) Module Enabled 8.4.4
Field types Link (link) Module Enabled 8.4.4
Field types Options (options) Module Enabled 8.4.4
Field types Telephone (telephone) Module Not installed 8.4.4
Field types Text (text) Module Enabled 8.4.4
File metadata File metadata - EXIF (file_mdm_exif) Module Enabled 8.x-1.1
File metadata File metadata - Font (file_mdm_font) Module Not installed 8.x-1.1
File metadata File metadata manager (file_mdm) Module Enabled 8.x-1.1
Media Image Style Quality (image_style_quality) Module Enabled 8.x-1.3
Media ImageMagick (imagemagick) Module Enabled 8.x-2.3
Multilingual Configuration Translation (config_translation) Module Not installed 8.4.4
Multilingual Content Translation (content_translation) Module Not installed 8.4.4
Multilingual Interface Translation (locale) Module Enabled 8.4.4
Multilingual Language (language) Module Enabled 8.4.4
Other Background Image (background_image) Module Enabled 8.x-1.1
Other Image Optimize (or ImageAPI Optimize) (imageapi_optimize) Module Enabled 8.x-2.0-alpha3
Other Token (token) Module Enabled 8.x-1.1
Paragraphs Bootstrap Paragraphs (bootstrap_paragraphs) Module Enabled 8.x-2.0-beta2
Paragraphs Bootstrap Paragraphs Contact Form (bp_contact) Module Not installed 8.x-2.0-beta2
Paragraphs Bootstrap Paragraphs Webform (bp_webform) Module Not installed 8.x-2.0-beta2
Paragraphs Paragraphs (paragraphs) Module Enabled 8.x-1.2
Paragraphs Paragraphs Demo (paragraphs_demo) Module Not installed 8.x-1.2
Paragraphs Paragraphs Type Permissions (paragraphs_type_permissions) Module Not installed 8.x-1.2
Views Views Reference Field (viewsreference) Module Enabled 8.x-1.2
Web services HAL (hal) Module Not installed 8.4.4
Web services HTTP Basic Authentication (basic_auth) Module Not installed 8.4.4
Web services RESTful Web Services (rest) Module Not installed 8.4.4
Web services Serialization (serialization) Module Not installed 8.4.4
Bootstrap aliris (aliris) Theme Enabled
Bootstrap Bootstrap (bootstrap) Theme Enabled 8.x-3.9
Core Bartik (bartik) Theme Enabled 8.4.4
Core Seven (seven) Theme Enabled 8.4.4
Core Stark (stark)
Comment #6
roninsa commentedFresh install with background image and the inline entity form enabled breaks views with the discussed error message. Uninstall background image gets ride of error message.
Comment #7
fruitsalad commentedTried it again with a complete fresh install. It just does not work.
Comment #8
fruitsalad commentedDoes anyone have a solution for this problem? I really would like to try this module.
Comment #9
markhalliwellI really don't have time to look at this right now. I haven't seen this error anywhere, so some fresh steps to reproduce using something like simplytest.me would be helpful so I can reproduce locally and step through as needed.
Comment #10
andypostThis allows at least to create Global BGM
Comment #11
andypostHere is basic tests, also require to fix config schema
Comment #13
markhalliwell