Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Hot answers tagged

4

Projects are built from the start to use the Media module and reference entities instead of files directly. That is how Entity Browser can help. Here is how it's usually done: https://www.drupal.org/docs/8/modules/entity-browser/how-to-configure-an-image-widget-to-re-use-existing-files. More useful resouces: https://www.drupal.org/docs/8/core/modules/...


3

This error is often caused by a "stale" autoloader file. The first and most effective step would be to call composer dump-autoload from inside your drupal installation folder (presumably /var/www/sites/drupalroot/) in order to force an updating of the autoloader file in your vendor folder. Try clearing the composer caches as well in combination with this ...


3

Here are some pointers that might help: Run drush cr to clear cache and see if the error persists. Enable error backtraces from the Config > Development > Logging & Errors page to see if you get more info in the error message about where the class is being redeclared. Search your project for the name MyFormatter and see if you find anything ...


1

Drupal places an .htaccess file in the files directory to prevent files inside from being executed. Check the status report on your site to ensure that this is correctly configured.


Only top voted, non community-wiki answers of a minimum length are eligible