Posted on

Magento 2.2.2: problem with php bin/magento setup:di:compile

when I try to compile after setup:upgrade

It displays for me blank page with error in log file:

main.INFO: Broken reference: the ‘logger’ element cannot be added as child to ‘after.body.start’, because the latter doesn’t exist [] []

I used this code too to display errors in index.php

ini_set(‘error_reporting’, E_ERROR);
register_shutdown_function(“fatal_handler”);
function fatal_handler() {
$error = error_get_last();
echo(“<pre>”);
print_r($error);
}

The home page now display the following error

Array
(
[type] => 8192
[message] => Function mcrypt_module_close() is deprecated
[file] => C:xampphtdocsmagentovendormagentoframeworkEncryptionCrypt.php
[line] => 112
)

Any suggestion?

Thanks,

Leave a Reply

Your email address will not be published. Required fields are marked *