Problem/Motivation

In the OpenWooAppLegacy publisher plugin, when a media item doesn't have a file, or no longer has a file, the cron will crash.

Error: Call to a member function getMimeType() on null in Drupal\openwoo_pu  
  blish\Plugin\OpenWooPublish\OpenWooAppLegacy->getAttachments() (line 266 of  
   /var/www/acc.delft.nl/releases/20260130032305-acc-4037525/htdocs/modules/c  
  ontrib/openwoo/modules/openwoo_publish/src/Plugin/OpenWooPublish/OpenWooApp  
  Legacy.php). 

Steps to reproduce

Delete the file belonging to the media item
Update the publication
run cron

Proposed resolution

Add an extra check to see if the file is not null

Added the solution to a MR.

Issue fork openwoo-3570507

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

johan_vm created an issue. See original summary.

johan_vm’s picture

Issue summary: View changes