After a fresh install, when switching to wkhtmltopdf as the Print engine, an ajax error occurs:

`Notice: Undefined index: binary_location in Drupal\entity_print\Plugin\EntityPrint\PrintEngine\PhpWkhtmlToPdf->validateConfigurationForm() (line 85 ...)`

Patch attached to just check isset() for this index.

Comments

bgilhome created an issue. See original summary.

bgilhome’s picture

StatusFileSize
new986 bytes
honza pobořil’s picture

Status: Needs review » Reviewed & tested by the community

Works well.

Also will be nice to print better help in config form how to install it. Currently it prints only: "Please install with: composer require mikehaertl/phpwkhtmltopdf" but this is only PHP wrapper. It should recommend installing also wkhtmltopdf library: h4cc/wkhtmltopdf-amd64

benjy’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

  • benjy committed ba72b1b on 8.x-2.x authored by bgilhome
    Issue #2952434 by bgilhome: Undefined index: binary_location when...

Status: Fixed » Closed (fixed)

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