Recoverable fatal error: Argument 8 passed to Drupal\ctools\Plugin\DisplayVariant\BlockDisplayVariant::__construct() must be an instance of Drupal\Core\Block\BlockManager, none given, called in panels/src/Plugin/DisplayVariant/PanelsDisplayVariant.php on line 116 and defined in Drupal\ctools\Plugin\DisplayVariant\BlockDisplayVariant->__construct() (line 93 of ctools/src/Plugin/DisplayVariant/BlockDisplayVariant.php).

Error happens when updating CTools to the latest dev because of the changes in https://www.drupal.org/node/2642786 on class BlockDisplayVariant

patch will follow

Comments

josebc created an issue. See original summary.

josebc’s picture

Assigned: josebc » Unassigned
Status: Active » Needs review
StatusFileSize
new1.7 KB

patch

Status: Needs review » Needs work

The last submitted patch, 2: panels-fix_error_on_ctools_update-2648226-1.patch, failed testing.

josebc’s picture

Tested it manually and its working with latest ctools and page manager versions, testbot is giving a "Fatal error: Trait 'Drupal\ctools\Plugin\ConditionVariantTrait' not found" which appears to be removed in a late CTools patch https://www.drupal.org/node/2646286

mvdve’s picture

Can confirm that the patch solved the issue for me.

josebc’s picture

Status: Needs work » Needs review
Related issues: +#2646286: Remove selection logic/conditions from the BlockDisplayVariant

Updating related issues and status

japerry’s picture

Status: Needs review » Closed (duplicate)