Open olegf2a opened 6 years ago
Work around could set MAGE_PROFILER_STAT to null before new RSA() etc.
$_SERVER['MAGE_PROFILER_STAT'] = null;
Disabling Mirasvit Profiler module from Magento 2 did not appear to fix this.
bin/magento module:disable Mirasvit_Profiler
Removing it entirely did.
composer remove mirasvit/module-profiler
Unknown as to why it causes a crash when running @phpinfo from Magento cron job cli.
Fatal error appears function phpinfo() is used, function phpinfo() is used in the library for establishing a connection via SFTP. Library uses phpinfo() to check PHP settings. for example phpseclib\Crypt\RSA
function __construct() { $this->configFile = dirname(__FILE__) . '/../openssl.cnf'; if (!defined('CRYPT_RSA_MODE')) { switch (true) { .... case extension_loaded('openssl') && file_exists($this->configFile): ... ob_start(); @phpinfo(); $content = ob_get_contents(); ob_end_clean();