When I try to install page_manager_ui with php 7.2.0 I get the following fatal error
Fatal error: Declaration of Drupal\page_manager_ui\Form\VariantPluginAddBlockForm::buildForm(array $form, Drupal\Core\Form\FormStateInterface $form_state, ?Symfony\Component\HttpFoundation\Request $request = NULL, $block_display = NULL, $block_id = NULL) must be compatible with Drupal\page_manager_ui\Form\VariantPluginConfigureBlockFormBase::buildForm(array $form, Drupal\Core\Form\FormStateInterface $form_state, $block_display = NULL, $block_id = NULL) in /var/www/html/web/modules/contrib/page_manager/page_manager_ui/src/Form/VariantPluginAddBlockForm.php on line 20
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | 2929896-16.patch | 862 bytes | eclipsegc |
| #2 | 2929896-php72-fatal-2.patch | 2.05 KB | rodrigoaguilera |
Comments
Comment #2
rodrigoaguileraSeems like the module installs with this patch
Comment #4
damienmckennaComment #5
jasonellington commentedHello, is there any resolution to this issue?
Comment #6
damienmckennaIt isn't really safe to use Drupal with PHP 7.2 yet.
Comment #7
alexrayu commentedConfirmed this issue with 7.2, resolved by downgrading to 7.1.
Comment #8
CryptoKiwi commentedThis issue is still present, and with Drupal 8.5 PHP 7.2 is recommended. Patch from #2 does not work sadly.
Comment #9
thiagomoraesp commentedSame here with PHP 7.2.3 =(
Comment #10
manuel.adan#2 works for me in Drupal 8.5.0 (standard clean installation) + PHP 7.2.2, latest page_manager-dev (8.x-4.0-beta2+4-dev) or beta4 + #2918564: Update 'page_manager.variant_route_filter' service according to core changes
Comment #11
manuel.adanAlso check that your site is not affected by the very similar issue #2923286: Fatal error in Drupal\panels\Form\PanelsAddBlockForm::buildForm() with PHP 7.2 in panels.
Comment #12
damienmckennaComment #13
andypostConfirm that it works
- PHP 7.2.4
- core 8.5.1 (8.6-dev as well)
- PM 8.4-dev + patch
Comment #14
andypostThis fails on 7.2 because of interface https://3v4l.org/6p5Fe
if you remove
implements aacode starts to work)Comment #15
andypostThe same fix landed in ds module #2779243: Method declaration incompatibility
Comment #16
eclipsegc commentedTry this patch and tell me if it fixes it.
Eclipse
Comment #18
andypost@Eclipse thanx a lot! This way better and the same as panels
Comment #19
andypostIt was commited to 1.x so still needed for 4.x
Comment #21
japerryLooks good, fixed!