Skip to content

Invalid Block Mollie\Payment\Block\Adminhtml\Widget\Grid\PaypalReferenceColumn #937

@pointia

Description

@pointia

Describe the bug
The new version of the Module tries to use a Block that is not inherited from the Abstract Block. The PaypalReferenceColumn whould be instantiated in vendor/magento/framework/View/Layout/Generator/Block.php:277 but as it is in an instance of the AbstractBlock it will throw an error.

if (!$block instanceof \Magento\Framework\View\Element\AbstractBlock) {
            throw new LocalizedException(
                new \Magento\Framework\Phrase(
                    'Invalid block type: %1',
                    [is_object($block) ? get_class($block) : (string) $block]
                ),
                $e
            );
        }

Used versions

  • Magento Version number(eg 2.3.5): 2.4.7-p7
  • Open source/Enterprise/B2b: OS
  • Mollie version number (Check configuration): 2.47.0 (2.46.0 is working)

To Reproduce
Steps to reproduce the behavior:

  1. Go to an order in the admin view

Expected behavior
Should display the order.

Actual behavior
Exception while loading order.

Additional context
Add any other context about the problem here.

Here is a Stacktrace:

Next Magento\Framework\Exception\LocalizedException: Invalid block type: Mollie\Payment\Block\Adminhtml\Widget\Grid\PaypalReferenceColumn in /var/www/htdocs/vendor/magento/framework/View/Layout/Generator/Block.php:278
Stack trace:
#0 /var/www/htdocs/vendor/magento/framework/View/Layout/Generator/Block.php(252): Magento\Framework\View\Layout\Generator\Block->getBlockInstance('Mollie\\Payment\\...', Array)
#1 /var/www/htdocs/generated/code/Magento/Framework/View/Layout/Generator/Block/Interceptor.php(41): Magento\Framework\View\Layout\Generator\Block->createBlock('Mollie\\Payment\\...', 'mollie_paypal_r...', Array)
#2 /var/www/htdocs/vendor/magento/framework/View/Layout/Generator/Block.php(225): Magento\Framework\View\Layout\Generator\Block\Interceptor->createBlock('Mollie\\Payment\\...', 'mollie_paypal_r...', Array)
#3 /var/www/htdocs/vendor/magento/framework/View/Layout/Generator/Block.php(134): Magento\Framework\View\Layout\Generator\Block->generateBlock(Object(Magento\Framework\View\Layout\ScheduledStructure), Object(Magento\Framework\View\Layout\Data\Structure), 'mollie_paypal_r...')
#4 /var/www/htdocs/generated/code/Magento/Framework/View/Layout/Generator/Block/Interceptor.php(32): Magento\Framework\View\Layout\Generator\Block->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#5 /var/www/htdocs/vendor/magento/framework/View/Layout/GeneratorPool.php(93): Magento\Framework\View\Layout\Generator\Block\Interceptor->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#6 /var/www/htdocs/vendor/magento/framework/View/Layout.php(365): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#7 /var/www/htdocs/generated/code/Magento/Framework/View/Layout/Interceptor.php(68): Magento\Framework\View\Layout->generateElements()
#8 /var/www/htdocs/vendor/magento/framework/View/Layout/Builder.php(129): 


Metadata

Metadata

Assignees

Labels

InvestigatingWe are working on this issue together with the customer.Question / IssueFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions