Thank you!
{{ timestamp|format_date('my_custom_date_format') }}
works like a charm!
Thank you Matthieu,
yes, I'm trying to share filters between the view and the attachment. I experimented with "Content calendar" from "Calendar View - Demo Views" module: I added an attachment after "Content calendar" page and enabled both "Inherit contextual filters" and "Inherit exposed filters".
The attachment filters content according to exposed filters in the page, but ignores the month selected in the calendar: I can choose July or June in the page and in the attachment I still have August content.
I disabled AJAX to see what happens when I navigate between months and I got a parameter like this:
?calendar_timestamp=1717192800...
Then in the attachment I tried to modify the "Authored on" filter as "is greater than 1717192800" but I get (after disabling "Expose this filter") an "Invalid date format" error. If I let the filter exposed, I get an "invalid value" error in browser console.
If in the filter in the attachment I don't use epoch time but something as "2024-06-01 00:00:00", filtering works. So maybe the problem is that the attachment inherits the month filter from the page, but it is in an unexpected format?
Maybe related to https://www.drupal.org/project/vartheme_bs5/issues/3469222 🐛 Error: Uncaught TypeError: Popper__namespace.createPopper is not a function when adding a dropdown in the navbar Needs work ?
Thank you Rajab, crystal clear!
ggamba → created an issue.
Hello Josh,
any progress on this? The Smart date issue you are referring to is the following one? https://www.drupal.org/project/smart_date/issues/3269225 ✨ Provide a simple method to expand recurring events Active
Thanks!
Thank you Rajab,
I corrected composer.json, ran update script and successfully upgraded to drupal/core ver. 10.1.6 and vardot/varbase 9.0.16. But now I see this error while running drush updb:
[error] (Currently using Incompatible module The following module is installed, but it is incompatible with Drupal 10.1.6:
* Entity Browser Generic Embed
Thanks a lot for your patience!
Hi Rajab,
I've now successfully upgraded all my Vardot based Drupal 9 sites to Drupal 10, using https://github.com/Vardot/varbase-project/blob/9.0.x/composer.json as a model. But now updating again fails:
- drupal/varbase_workflow dev-2.0.x requires drupal/core ~9 -> found drupal/core[9.0.0-alpha1, ..., 9.5.x-dev] but it conflicts with your root composer.json require (~10.1.0).
- vardot/varbase 9.0.x-dev requires drupal/varbase_workflow 2.0.x-dev -> satisfiable by drupal/varbase_workflow[2.0.x-dev (alias of dev-2.0.x)].
- drupal/varbase_workflow 2.0.x-dev is an alias of drupal/varbase_workflow dev-2.0.x and thus requires it to be installed too.
- Root composer.json requires vardot/varbase 9.0.x-dev -> satisfiable by vardot/varbase[9.0.x-dev].
I guess I need to update varbase_workflow, but to which version?
I forgot to report the only warning I got during the update process:
[notice] The role Site Admin has had the following non-existent permission(s) removed: userprotect.protected_site_admin.bypass.
[notice] The role Site Admin has had non-existent permissions removed. Check the logs for details.
I don't know what it means, but might be of your interest.
Once disabled a few modules that were crashing "drush updatedb" (namely "Simple entity merge" and "Snowball stemmer") everything worked like a charm!
I have another two sites to update, and they are more complex but I'm now confident that it can be done without too much effort.
Thanks a lot again!
Sorry, my fault: I had "export PATH="./vendor/bin:$PATH"" in .bashrc (to easily run drush), so I was using version 2.2.2 of composer (from ./vendor/bin) instead of the updated one (2.6.5)
Hello Rajab, thank you for your quick reply!
I'm trying to follow your instructions but first time I run "composer update" I get the following error:
...
88/97 [=========================>--] 90% - Installing drupal/varbase_landing (dev-9.0.x 73524c5): Cloning 73524c5be2 from cache
- Installing drupal/varbase_heroslider_media (dev-9.0.x 1b82cdf): Cloning 1b82cdf85b from cache
- Installing drupal/varbase_email (dev-9.0.x d12d01d): Cloning d12d01d7d7 from cache
- Installing drupal/varbase_core (dev-9.1.x ae189d8): Cloning ae189d8e7c from cache
- Installing drupal/varbase_carousels (dev-9.0.x 053b9de): Cloning 053b9de21d from cache
- Installing drupal/varbase_blog (dev-9.0.x bad40cc): Cloning bad40ccc11 from cache
- Installing drupal/varbase_auth (dev-9.0.x f8fa06c): Cloning f8fa06c0a6 from cache
- Installing drupal/varbase_api (dev-9.0.x 74c6cad): Cloning 74c6cad928 from cache
97/97 [============================] 100%
In FilesystemRepository.php line 163:
file_get_contents(/var/www/d10/vendor/composer/composer/src/Composer/Repository/../InstalledVersions.php): Failed to open stream: No such file or directory
Running "composer update" again doesn't help:
golem@t140:/var/www/d10$ composer update
PHP Warning: require(/var/www/d10/vendor/composer/../longwave/laminas-diactoros/src/functions/create_uploaded_file.php): Failed to open stream: No such file or directory in /var/www/d10/vendor/composer/autoload_real.php on line 82
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/d10/vendor/composer/../longwave/laminas-diactoros/src/functions/create_uploaded_file.php' (include_path='/var/www/d10/vendor/pear/archive_tar:/var/www/d10/vendor/pear/console_getopt:/var/www/d10/vendor/pear/pear-core-minimal/src:/var/www/d10/vendor/pear/pear_exception:.:/usr/share/php') in /var/www/d10/vendor/composer/autoload_real.php:82
Stack trace:
#0 /var/www/d10/vendor/composer/autoload_real.php(65): composerRequirea04b5b931443125d9f9e6084e5fef0b5()
#1 /var/www/d10/vendor/autoload.php(7): ComposerAutoloaderInita04b5b931443125d9f9e6084e5fef0b5::getLoader()
#2 /var/www/d10/vendor/composer/composer/src/bootstrap.php(17): include('...')
#3 /var/www/d10/vendor/composer/composer/src/bootstrap.php(20): includeIfExists()
#4 /var/www/d10/vendor/composer/composer/bin/composer(19): require('...')
#5 /var/www/d10/vendor/bin/composer(120): include('...')
#6 {main}
thrown in /var/www/d10/vendor/composer/autoload_real.php on line 82
I deleted my original composer.json file, downloaded https://github.com/Vardot/varbase-project/blob/9.0.x/composer.json, added under "require" section the modules that I need and corrected any "docroot" instance (webroot here is "public_html") .
Any suggestion? Thanks a lot in advance
ggamba → created an issue.
Hi Duwid, thank you for your patch! Unfortunately I have no more chance to test it, as in the meantime I migrated the needed lists to taxonomies!
I can confirm that patch in #13 enabled me to publish/unpublish nodes with language "not applicable". "Draft current revision" doesn't work but in fact I don't need it.