Blogs

Switch letsencrypt cert to wildcard to include www

Remove the current cert

sudo certbot delete

pick from list

Update virtual host, comment out SSL portion

Ensure that http virtual host is working - will need this for certbot to work

Check confs

sudo apachectl configtest

Must be error free for certbot to work

sudo systemctl restart apache2

Will also reveal issues in virtual hosts

Wildcard cert to include domain and www

sudo certbot --apache certonly -d 'site.net,www.site.net'

How to solve Mismatched entity and/or field definitions

 

https://www.drupal.org/forum/support/upgrading-drupal/2019-06-23/how-to-solve-mismatched-entity-andor-field-definitions

 

Entity/field definitions

Mismatched entity and/or field definitionsThe following changes were detected in the entity type and field definitions.

Content

  • The CSS class(es) field needs to be updated.

cd web/modules/contrib

grep -R class(es)

The specified file 'temporary://file4b1kc1' could not be copied

 Got error ‘PHP message: Uncaught PHP Exception Drupal\Core\File\Exception\DirectoryNotReadyException: “The specified file ‘temporary://file4b1kc1’ could not be copied because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions.” at /var/www/site/web/core/lib/Drupal/Core/File/FileSystem.php line 488\n’, referer: http://site.com/admin/config/development/backup_migrate

Or same from

Add keyboard navigation to Sooperthemes Premium Portfolio

The Sooperthemes Premium Portfolio is based on the Cube Portfolio jQuery plugin, which does not support keyboard navigation.

The portfolio has very nice interaction on mouse over. Typically, triggering a mouseover state on focus allows you to tie in keyboard navigation. This is not working at present though. Perhaps a change in Chrome?

Computed field examples and snippets

Drupal 8 Computed Field snippets

$value = $entity->get('title')->value . ' | ' . $entity->get('body')->value . ' | ' . $entity->field_location->entity->field_address->locality . ', ' . $entity->field_location->entity->field_address->administrative_area . ' | ' . $entity->field_location->entity->get('title')->value . ' | ' .  ($entity->field_is_online->value ? 'Online' : '') . ' | ' . $entity->field_status->entity->name->value;

$value = print_r ($entity->get('body')->value, 'true');

Pages

Subscribe to Blogs