DMAGmbH / dma_simple_grid

Contao Extension for simple multiple grid-support
10 stars 9 forks source link

Warning: Undefined array key "hasBlockGrid" , PHP8 #43

Closed kraustomas closed 2 years ago

kraustomas commented 2 years ago

If you go under Contao to system administration on server with PHP8 and dma_simple_grid 1.1.0 installed there is message: Warning: Undefined array key "hasBlockGrid" in vendor/dma/dma_simple_grid/src/Resources/contao/classes/DmaSimpleGridDcaCallbacks.php:69

ro-a-fi commented 2 years ago

Im also getting the mentioned error message. Steps to reproduce:

  1. use PHP 8
  2. install newest dma_simple_grid Version 1.1.1
  3. go to "Einstellungen" in Contao Backend

Is it possible to fix this? Would really be great. Right now its the only reason we can not use this helpful extension anymore.

Bildschirmfoto 2022-07-12 um 19 52 04 Bildschirmfoto 2022-07-12 um 19 52 24
JanoschOltmanns commented 2 years ago

I will look at it tomorrow. But I think you could also check the other php 8 related pull request (https://github.com/DMAGmbH/dma_simple_grid/pulls?q=is%3Apr+is%3Aclosed) and try a fix.

JanoschOltmanns commented 2 years ago

Should be fixed with release 1.1.2 (https://github.com/DMAGmbH/dma_simple_grid/releases/tag/v1.1.2)