Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running new RSA() phpinfo throws an exception, which is hidden by the @. #1400

Closed
LiamKarlMitchell opened this issue Sep 3, 2019 · 0 comments

Comments

@LiamKarlMitchell
Copy link

Putting this issue here, more to let people know who might have similar problem, not really related to this library, just that when phpinfo is called but phpinfo crashes for some reason it can cause issue.

Trying to use phpseclib from a Magento 2 cron.

When I remove the @ in front of phpinfo call I see.

  Recoverable Error: Object of class Magento\Framework\Profiler\Driver\Standard\Stat could not be converted to string```

When running with the @ the last line I see output is to do with MAGE_PROFILER_STAT

$_SERVER['MAGE_PROFILER_STAT'] => #


Work around could set MAGE_PROFILER_STAT to null
```$_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


Related https://github.com/mirasvit/module-profiler/issues/43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant