Problem/Motivation

The current Tugboat Preview build fails with error:

Call to undefined function imagejpeg() in Drupal\Component\Utility\Random->image()
(line 300 of /var/www/drupal/web/core/lib/Drupal/Component/Utility/Random.php)
#0 /var/www/drupal/web/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php(351)
Drupal\Component\Utility\Random->image('/tmp/generateIm...', '100x100', '600x600')

Proposed resolution

Fix similar to this commit for Scheduler

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

jonathan1055 created an issue. See original summary.

jonathan1055’s picture

Fixed the JPEG problem. Now we get

Your requirements could not be resolved to an installable set of packages.
    - Root composer.json requires drupal/config_update ^1.7 -> satisfiable by drupal/config_update[1.7.0].
    - drupal/config_update 1.7.0 requires drupal/core ^8 || ^9 -> found drupal/core[8.0.0-beta6, ..., 8.9.20, 9.0.0-beta1, ..., 9.5.0-rc1] but the package is fixed to 10.0.0-rc1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
smustgrave’s picture

jonathan1055’s picture

Yes, I just realsied that. Easy to fix.

  • 76a33e4 committed on 2.x
    Issue #3325788 by jonathan1055: Fix Tugboat preview build
    
jonathan1055’s picture

Title: Fix Tugboat preview build » Fix Tugboat build - images and form display
Status: Active » Fixed

All looks good now. I added 'document' for scheduled publishing but not unpublishing, to show that SCMI caters for the separate settings correctly. Also executed the two functions (one from Scheduler, then other from SCMI) to reset the form display to match the entity type settings. This would be done automatically via UI, but when the scheduler settings are pre-set via drush during the build we need to ste the form display to match them.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.