Hi,
I'll come back to you to see if you have an idea to solve my problem.
Should I try drush cim or not ? And why import configuration ?
Very thanks,
After editing : core/lib/Drupal/Core/TypedData/TypedDataManager.php
I put after $class = $data_definition->getClass(); :
(line 95):
$output=ob_start();
var_dump($class);
file_put_contents('public://log.txt', ob_get_clean());
log.txt :
array(2) {
["type"]=>
string(6) "string"
["label"]=>
string(5) "Class"
}
I replaced with $data_type :
$output=ob_start();
var_dump($data_type);
file_put_contents('public://log1.txt', ob_get_clean());
log1.txt:
string(7) "mapping"
debug class :
array(2) {
["type"]=>
string(6) "string"
["label"]=>
string(5) "Class"
}
Very thanks,
My site is in production "mode". I can't debug with the site in production. The site went from 10.2.7 to 10.3.9 but only updatedb error. Could you tell me how to debug easily "TypedDataManager::createInstance"? And how I can display $class ?
Drupal version 10.2.7 to 10.3.9
drush updatedb -vvv
[preflight] Config paths: .../vendor/drush/drush/drush.yml
[preflight] Alias paths: .../drush/sites,/sites/cercorwb/www/drush/sites
[preflight] Commandfile search paths: .../vendor/drush/drush/src
[info] Starting bootstrap to full [1.36 sec, 9.82 MB]
[info] Drush bootstrap phase 5 [1.36 sec, 9.82 MB]
[info] Try to validate bootstrap phase 5 [1.36 sec, 9.82 MB]
[info] Try to validate bootstrap phase 5 [1.36 sec, 9.82 MB]
[info] Try to bootstrap at phase 5 [1.36 sec, 9.82 MB]
[info] Drush bootstrap phase: bootstrapDrupalRoot() [1.36 sec, 9.82 MB]
[info] Change working directory to ... [1.36 sec, 9.82 MB]
[info] Initialized Drupal 10.3.9 root directory at ... [1.36 sec, 9.87 MB]
[info] Try to validate bootstrap phase 5 [1.36 sec, 9.87 MB]
[info] Try to bootstrap at phase 5 [1.38 sec, 10.33 MB]
[info] Drush bootstrap phase: bootstrapDrupalSite() [1.38 sec, 10.33 MB]
[debug] Could not find a Drush config file at sites/default/drush.yml. [1.39 sec, 10.57 MB]
[info] Initialized Drupal site default at sites/default [1.39 sec, 10.57 MB]
[info] Try to validate bootstrap phase 5 [1.39 sec, 10.57 MB]
[info] Try to bootstrap at phase 5 [1.39 sec, 10.57 MB]
[info] Drush bootstrap phase: bootstrapDrupalConfiguration() [1.39 sec, 10.57 MB]
[info] Try to validate bootstrap phase 5 [1.4 sec, 10.77 MB]
[info] Try to bootstrap at phase 5 [1.52 sec, 11.36 MB]
[info] Drush bootstrap phase: bootstrapDrupalDatabase() [1.52 sec, 11.36 MB]
[info] Successfully connected to the Drupal database. [1.52 sec, 11.36 MB]
[info] Try to validate bootstrap phase 5 [1.52 sec, 11.36 MB]
[info] Try to bootstrap at phase 5 [1.52 sec, 11.36 MB]
[info] Drush bootstrap phase: bootstrapDrupalFull() [1.52 sec, 11.36 MB]
[debug] Start bootstrap of the Drupal Kernel. [1.52 sec, 11.36 MB]
[debug] Get container builder [3.5 sec, 14.29 MB]
[debug] Finished bootstrap of the Drupal Kernel. [4.72 sec, 40.55 MB]
[debug] Loading drupal module drush commands & etc. [4.72 sec, 40.55 MB]
[debug] Found drush.services.yml for search_api_solr Drush commands [4.74 sec, 40.72 MB]
[debug] Found drush.services.yml for token Drush commands [4.74 sec, 40.72 MB]
[debug] Found drush.services.yml for webform Drush commands [4.74 sec, 40.72 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommands [5.38 sec, 54.72 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommentsCommands [5.38 sec, 54.72 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeSessionsCommands [5.38 sec, 54.72 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserFieldsCommands [5.38 sec, 54.73 MB]
[debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserTableCommands [5.38 sec, 54.73 MB]
[debug] Add a commandfile class: Drupal\colorbox\Commands\ColorboxCommands [5.38 sec, 54.73 MB]
[debug] Add a commandfile class: Drupal\search_api\Commands\SearchApiCommands [5.38 sec, 54.74 MB]
[debug] Add a commandfile class: Drupal\search_api_solr\Commands\SearchApiSolrCommands [5.39 sec, 54.83 MB]
[debug] Add a commandfile class: Drupal\token\Drush\Commands\TokenCommands [5.39 sec, 54.86 MB]
[debug] Add a commandfile class: Drupal\upgrade_status\Drush\Commands\UpgradeStatusCommands [5.39 sec, 54.86 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformSubmissionCommands [5.39 sec, 54.87 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformLibrariesCommands [5.39 sec, 54.91 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformUtilityCommands [5.39 sec, 54.93 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformDocumentationCommands [5.39 sec, 54.93 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformDevelCommands [5.39 sec, 54.94 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformSanitizeSubmissionsCommands [5.39 sec, 54.94 MB]
[debug] Add a commandfile class: Drupal\pathauto\Commands\PathautoCommands [5.39 sec, 54.95 MB]
[debug] Add a commandfile class: Drupal\xmlsitemap\Commands\XmlSitemapCommands [5.39 sec, 54.96 MB]
[info] Executing: .../vendor/bin/drush updatedb:status --verbose --strict=0 --uri=default [5.91 sec, 62.73 MB]
---------- --------------------- ------------- -------------------------------
Module Update ID Type Description
---------- --------------------- ------------- -------------------------------
system add_langcode_to_all post-update Adds a langcode to all simple
_translatable_confi config which needs it.
g
system amend_config_sync_r post-update Fix path in README.txt in
eadme_url CONFIG_SYNC_DIRECTORY.
system convert_empty_count post-update Updates system.date config to
ry_and_timezone_set NULL for empty country and
tings_to_null timezone defaults.
system mail_notification_s post-update Adds default value for the
etting mail_notification config
parameter.
system move_development_se post-update Move development settings
ttings_to_keyvalue from state to raw key-value
storage.
system set_cron_logging_se post-update Fix system.cron:logging
tting_to_boolean values to boolean.
taxonomy set_new_revision post-update Re-save Taxonomy
configurations with
new_revision config.
taxonomy set_vocabulary_desc post-update Converts empty `description`
ription_to_null in vocabularies to NULL.
views pager_heading post-update Adds a default pager heading.
views rendered_entity_fie post-update Removes entity display cache
ld_cache_metadata metadata from views with
rendered entity fields.
views views_data_argument post-update Post update configured views
_plugin_id for entity reference argument
plugin IDs.
---------- --------------------- ------------- -------------------------------
Do you wish to run the specified pending updates? (yes/no) [yes]:
> yes
[info] Executing: .../vendor/bin/drush updatedb:batch-process 675 --uri=default [11.46 sec, 63.06 MB]
> [notice] Update started: system_post_update_add_langcode_to_all_translatable_config
> [notice] Processed 50 items of 886.
> [notice] Processed 100 items of 886.
> [notice] Processed 150 items of 886.
> [notice] Processed 200 items of 886.
> [notice] Processed 250 items of 886.
> [notice] Processed 300 items of 886.
> [notice] Processed 350 items of 886.
> [notice] Processed 400 items of 886.
> [notice] Processed 450 items of 886.
> [error] Error: Class name must be a valid object or a string in Drupal\Core\TypedData\TypedDataManager->createInstance() (line 99 of .../core/lib/Drupal/Core/TypedData/TypedDataManager.php) #0 .../core/lib/Drupal/Core/TypedData/TypedDataManager.php(111): Drupal\Core\TypedData\TypedDataManager->createInstance()
> #1 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(155): Drupal\Core\TypedData\TypedDataManager->create()
> #2 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(57): Drupal\Core\Config\Schema\ArrayElement->createElement()
> #3 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(104): Drupal\Core\Config\Schema\ArrayElement->parse()
> #4 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(138): Drupal\Core\Config\Schema\ArrayElement->getElements()
> #5 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(24): Drupal\Core\Config\Schema\ArrayElement->getIterator()
> #6 .../core/modules/system/system.post_update.php(270): Drupal\Core\Config\Schema\ArrayElement->hasTranslatableElements()
> #7 .../vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(280): system_post_update_add_langcode_to_all_translatable_config()
> #8 .../vendor/drush/drush/includes/batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate()
> #9 .../vendor/drush/drush/includes/batch.inc(204): _drush_batch_worker()
> #10 .../vendor/drush/drush/includes/batch.inc(75): _drush_batch_command()
> #11 .../vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(136): drush_batch_command()
> #12 [internal function]: Drush\Commands\core\UpdateDBCommands->process()
> #13 .../vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
> #14 .../vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
> #15 .../vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
> #16 .../vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process()
> #17 .../vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
> #18 .../vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
> #19 .../vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
> #20 .../vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
> #21 .../vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
> #22 .../vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
> #23 .../vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
> #24 .../vendor/drush/drush/drush(4): require('...')
> #25 .../vendor/bin/drush(120): include('...')
> #26 {main}.
> Error: Class name must be a valid object or a string in .../core/lib/Drupal/Core/TypedData/TypedDataManager.php on line 99 #0 .../core/lib/Drupal/Core/TypedData/TypedDataManager.php(111): Drupal\Core\TypedData\TypedDataManager->createInstance()
> #1 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(155): Drupal\Core\TypedData\TypedDataManager->create()
> #2 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(57): Drupal\Core\Config\Schema\ArrayElement->createElement()
> #3 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(104): Drupal\Core\Config\Schema\ArrayElement->parse()
> #4 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(138): Drupal\Core\Config\Schema\ArrayElement->getElements()
> #5 .../core/lib/Drupal/Core/Config/Schema/ArrayElement.php(24): Drupal\Core\Config\Schema\ArrayElement->getIterator()
> #6 .../core/modules/system/system.post_update.php(270): Drupal\Core\Config\Schema\ArrayElement->hasTranslatableElements()
> #7 .../vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(280): system_post_update_add_langcode_to_all_translatable_config()
> #8 .../vendor/drush/drush/includes/batch.inc(257): Drush\Commands\core\UpdateDBCommands::updateDoOnePostUpdate()
> #9 .../vendor/drush/drush/includes/batch.inc(204): _drush_batch_worker()
> #10 .../vendor/drush/drush/includes/batch.inc(75): _drush_batch_command()
> #11 .../vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(136): drush_batch_command()
> #12 [internal function]: Drush\Commands\core\UpdateDBCommands->process()
> #13 .../vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
> #14 .../vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
> #15 .../vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
> #16 .../vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process()
> #17 .../vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
> #18 .../vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
> #19 .../vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
> #20 .../vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
> #21 .../vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
> #22 .../vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
> #23 .../vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
> #24 .../vendor/drush/drush/drush(4): require('...')
> #25 .../vendor/bin/drush(120): include('...')
> #26 {main}
> [warning] Drush command terminated abnormally.
In ProcessBase.php line 171:
[InvalidArgumentException]
Unable to decode output into JSON: Syntax error
Error: Class name must be a valid object or a string in Drupal\Core\TypedData\TypedDataManager->cre
ateInstance() (line 99 of .../core/lib/Drupal/Core/TypedData/TypedDataMan
ager.php).
Exception trace:
at .../vendor/consolidation/site-process/src/ProcessBase.php:171
Consolidation\SiteProcess\ProcessBase->getOutputAsJson() at .../vendor/drush/drush/includes/batch.inc:155
_drush_backend_batch_process() at .../vendor/drush/drush/includes/batch.inc:55
drush_backend_batch_process() at .../vendor/drush/drush/src/Commands/core/UpdateDBCommands.php:410
Drush\Commands\core\UpdateDBCommands->updateBatch() at .../vendor/drush/drush/src/Commands/core/UpdateDBCommands.php:73
Drush\Commands\core\UpdateDBCommands->updatedb() at n/a:n/a
call_user_func_array() at .../vendor/consolidation/annotated-command/src/CommandProcessor.php:276
Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() at .../vendor/consolidation/annotated-command/src/CommandProcessor.php:212
Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() at .../vendor/consolidation/annotated-command/src/CommandProcessor.php:176
Consolidation\AnnotatedCommand\CommandProcessor->process() at .../vendor/consolidation/annotated-command/src/AnnotatedCommand.php:391
Consolidation\AnnotatedCommand\AnnotatedCommand->execute() at .../vendor/symfony/console/Command/Command.php:326
Symfony\Component\Console\Command\Command->run() at .../vendor/symfony/console/Application.php:1096
Symfony\Component\Console\Application->doRunCommand() at .../vendor/symfony/console/Application.php:324
Symfony\Component\Console\Application->doRun() at .../vendor/symfony/console/Application.php:175
Symfony\Component\Console\Application->run() at .../vendor/drush/drush/src/Runtime/Runtime.php:110
Drush\Runtime\Runtime->doRun() at .../vendor/drush/drush/src/Runtime/Runtime.php:40
Drush\Runtime\Runtime->run() at .../vendor/drush/drush/drush.php:139
require() at .../vendor/drush/drush/drush:4
Hello,
Thank you very much. Patch work and fix the issue, but in available updates message : This project is no longer supported, and is no longer available for download. Uninstalling everything included by this project is strongly recommended!.
Can you fix in dev or a release for D10/11.
Best regards.
Hi,
I noticed that the image field was renamed with another name. I modified by adding my media field name (media->bundle) in src/Plugin/Field/FieldFormatter/LightgalleryMediaFormatter.php. Now the Lightgallery Formatter works very well except in a views, i guess we need to change too src/Plugin/views/style/LightGallery.php.
Very thanks,
Bonjour,
I applied the patch #27 without success. I'm using Bootstrap Barrio 5.5.16 with drupal 10.3.2 and php 8.1.
Images/medias are not displaying with the lightgallery formater for my content.
In the Firefox inspector there is the selector but the images/media are not displayed.
Thank you for your work and help.
Kind regards
Hi,
Would be nice to make the module installable on D10.
Very thanks
Hi,
Would be nice to make the module installable on D10!
Thanks
Hi,
With only Ckeditor 5 activated (Drupal 10). I applied the patch #3. I modified info.yml to have ckeditor5 as a dependency, the installation completes normally but we do not have the boxout button for Ckeditor 5.
Warning : foreach() argument must be of type array|object, null given in _boxout_update_editors() (../modules/custom/boxout/boxout.install ligne 29).
Could you please look at the installation with ckeditor 5 and open issue with Ckeditor 5 please.
Very thanks and best regards.
Hi,
It would be great to have a D10-compatible version please.
Very Thanks,
Hi, Thanks @sarwan. It now seems compatible after applying the patch.
Hello,
I have same error. I change to
{#% for key, item in content.bp_tab_section|filter(key => key|first != '#') %#}
{% for key, item in content.bp_tab_section %}
{% if key|first != '#' %}
{% endif %}
{% endfor %}
...
{# Loops through the tab sections again to print the tab section bodies. #}
{#% for key, item in content.bp_tab_section|filter(key => key|first != '#') %#}
{% for key, item in content.bp_tab_section %}
{% if key|first != '#' %}
And for accordion same error for paragraph--bp-accordion.html.twig
and the same change
{# Loop through all of the accordion sections. #}
{#% for key, item in content.bp_accordion_section|filter(key => key|first != '#') %#}
{% for key, item in content.bp_accordion_section %}
{% if key|first != '#' %}
...
{% endif %}
{% endfor %}
After this change no error and tabs and accordions works fine for tabs without error. But for accordion, the accordions list is not displayed and activated immediately. You have to select the first tab to display the accordions.
Need a stable release and test also for bootstrap 5 (with barrio bootstrap 5 theme)
Thanks very well.
AFA