🇬🇷Greece @mariaioann

Account created on 15 October 2013, about 11 years ago
#

Recent comments

🇬🇷Greece mariaioann

I have the same problem with Message entities. I am creating messages for as notification for a large number of users, but they are being purged where they are 30 days old. Currently, we have 400K messages, but the cachetags table has 23M entries for messages, as it included all deleted messages as well.
Is it safe to delete the relevant cache tag on a message postDelete hook?
What I have not understood is why don't we delete an entity's cache tag when the entity gets deleted in general?

🇬🇷Greece mariaioann

OK, fair enough. Although both drush status and php --version report using PHP 7.4
and I have explicitly set php version to 7.4 with:

sudo a2enmod php7.4
sudo update-alternatives --set php /usr/bin/php7.4

maybe I have a misconfiguration at some part of my stack that hardcodes the php version to < 7.3.
In that case, I suppose that this issue can be closed.

🇬🇷Greece mariaioann

The same error is thrown at: /admin/config/content/formats/manage/full_html
My composer version is 1.10.26 if it is relevant with composer autoloading.

ParseError: syntax error, unexpected ')' in Composer\Autoload\includeFile() (line 39 of core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php).
Composer\Autoload\includeFile('/home/drupal9/web/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php') (Line: 322)
Composer\Autoload\ClassLoader->loadClass('Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalImageCaption')
spl_autoload_call('Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalImageCaption')
class_exists('Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalImageCaption') (Line: 96)
Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass('drupalimagecaption', Array, 'Drupal\ckeditor\CKEditorPluginInterface') (Line: 17)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('drupalimagecaption', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('drupalimagecaption') (Line: 146)
Drupal\ckeditor\CKEditorPluginManager->getButtons() (Line: 191)
Drupal\ckeditor\Plugin\Editor\CKEditor->buildConfigurationForm(Array, Object) (Line: 165)
editor_form_filter_format_form_alter(Array, Object, 'filter_format_edit_form') (Line: 562)
🇬🇷Greece mariaioann

Correct, trailing commas in functions are allowed from PHP 7.3+.
I do have PHP 7.4.
I should have mentioned that the error appears in browser console when using ajax in views, and the exact error message is the following:

Drupal.AjaxError {message: 'An AJAX HTTP error occurred.HTTP Result Code: 20…rc/Plugin/CKEditorPlugin/DrupalImageCaption.php).', name: 'AjaxError'}
message: "An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows.
Path: /en/quickedit/attachments 
StatusText: OK
ResponseText: ParseError: syntax error, unexpected &#039;)&#039; in Composer\\Autoload\\includeFile() (line 39 of web/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php)."
Error at http://local-d9/core/misc/ajax.js?v=9.5.2:642:3
Production build 0.71.5 2024