Hello! I've recently installed the 1.0.5 version of the Viewer module in our Drupal 10.1.8 site. The PDF displaying in a node as expected and the .csv displaying as datatables both work great!
The issue is, when I'm trying to display a .csv to any kind of chart. I upload the .csv in a new source and then I create a new viewer, selecting that source. Whatever I pick then (from the chart.js, the ApexCharts.js - which I have both installed or even the tabs) it leads me to a page to add datasets. Whatever I pick there, when clicking the "Add dataset" button I get the following error:
"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 1713 from /web/core/lib/Drupal/Core/Database/Connection.php).
Array
(
[0] => Array
(
[function] => __sleep
[class] => Drupal\Core\Database\Connection
[type] => ->
)
[1] => Array
(
[file] => /web/core/lib/Drupal/Component/Serialization/PhpSerialize.php
[line] => 14
[function] => serialize
)
[2] => Array
(
[file] => /web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
[line] => 111
[function] => encode
[class] => Drupal\Component\Serialization\PhpSerialize
[type] => ::
)
[3] => Array
(
[file] => /web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
[line] => 127
[function] => doSetWithExpire
[class] => Drupal\Core\KeyValueStore\DatabaseStorageExpirable
[type] => ->
)
[4] => Array
(
[file] => /web/core/lib/Drupal/Core/Form/FormCache.php
[line] => 193
[function] => setWithExpire
[class] => Drupal\Core\KeyValueStore\DatabaseStorageExpirable
[type] => ->
)
[5] => Array
(
[file] => /web/core/lib/Drupal/Core/Form/FormBuilder.php
[line] => 463
[function] => setCache
[class] => Drupal\Core\Form\FormCache
[type] => ->
)
[6] => Array
(
[file] => /web/core/lib/Drupal/Core/Form/FormBuilder.php
[line] => 441
[function] => setCache
[class] => Drupal\Core\Form\FormBuilder
[type] => ->
)
[7] => Array
(
[file] => /web/core/lib/Drupal/Core/Form/FormBuilder.php
[line] => 633
[function] => rebuildForm
[class] => Drupal\Core\Form\FormBuilder
[type] => ->
)
[8] => Array
(
[file] => /web/core/lib/Drupal/Core/Form/FormBuilder.php
[line] => 325
[function] => processForm
[class] => Drupal\Core\Form\FormBuilder
[type] => ->
)
[9] => Array
(
[file] => /web/core/lib/Drupal/Core/Controller/FormController.php
[line] => 73
[function] => buildForm
[class] => Drupal\Core\Form\FormBuilder
[type] => ->
)
[10] => Array
(
[function] => getContentResult
[class] => Drupal\Core\Controller\FormController
[type] => ->
)
[11] => Array
(
[file] => /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php
[line] => 123
[function] => call_user_func_array
)
[12] => Array
(
[file] => /web/core/lib/Drupal/Core/Render/Renderer.php
[line] => 592
[function] => Drupal\Core\EventSubscriber\@closure
[class] => Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber
[type] => ->
)
[13] => Array
(
[file] => /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php
[line] => 124
[function] => executeInRenderContext
[class] => Drupal\Core\Render\Renderer
[type] => ->
)
[14] => Array
(
[file] => /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php
[line] => 97
[function] => wrapControllerExecutionInRenderContext
[class] => Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber
[type] => ->
)
[15] => Array
(
[file] => /vendor/symfony/http-kernel/HttpKernel.php
[line] => 181
[function] => Drupal\Core\EventSubscriber\@closure
[class] => Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber
[type] => ->
)
[16] => Array
(
[file] => /vendor/symfony/http-kernel/HttpKernel.php
[line] => 76
[function] => handleRaw
[class] => Symfony\Component\HttpKernel\HttpKernel
[type] => ->
)
[17] => Array
(
[file] => /web/modules/contrib/simple_oauth/src/HttpMiddleware/BasicAuthSwap.php
[line] => 68
[function] => handle
[class] => Symfony\Component\HttpKernel\HttpKernel
[type] => ->
)
[18] => Array
(
[file] => /web/core/lib/Drupal/Core/StackMiddleware/Session.php
[line] => 58
[function] => handle
[class] => Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap
[type] => ->
)
[19] => Array
(
[file] => /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php
[line] => 48
[function] => handle
[class] => Drupal\Core\StackMiddleware\Session
[type] => ->
)
[20] => Array
(
[file] => /web/core/modules/page_cache/src/StackMiddleware/PageCache.php
[line] => 106
[function] => handle
[class] => Drupal\Core\StackMiddleware\KernelPreHandle
[type] => ->
)
[21] => Array
(
[file] => /web/core/modules/page_cache/src/StackMiddleware/PageCache.php
[line] => 85
[function] => pass
[class] => Drupal\page_cache\StackMiddleware\PageCache
[type] => ->
)
[22] => Array
(
[file] => /web/core/modules/ban/src/BanMiddleware.php
[line] => 50
[function] => handle
[class] => Drupal\page_cache\StackMiddleware\PageCache
[type] => ->
)
[23] => Array
(
[file] => /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php
[line] => 48
[function] => handle
[class] => Drupal\ban\BanMiddleware
[type] => ->
)
[24] => Array
(
[file] => /web/modules/contrib/tracer/src/StackMiddleware/TracesMiddleware.php
[line] => 38
[function] => handle
[class] => Drupal\Core\StackMiddleware\ReverseProxyMiddleware
[type] => ->
)
[25] => Array
(
[file] => /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php
[line] => 51
[function] => handle
[class] => Drupal\tracer\StackMiddleware\TracesMiddleware
[type] => ->
)
[26] => Array
(
[file] => web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php
[line] => 51
[function] => handle
[class] => Drupal\Core\StackMiddleware\NegotiationMiddleware
[type] => ->
)
[27] => Array
(
[file] => /web/core/lib/Drupal/Core/DrupalKernel.php
[line] => 704
[function] => handle
[class] => Drupal\Core\StackMiddleware\StackedHttpKernel
[type] => ->
)
[28] => Array
(
[file] => /web/index.php
[line] => 19
[function] => handle
[class] => Drupal\Core\DrupalKernel
[type] => ->
)
)"
It's been a week that I'm trying to solve this, I tried older versions of the module, multi .csv files, other versions of the charts, nothing worked and I'm kinda lost what else I could try to solve this.
Thank you in advance!
Active
1.0
User interface
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.