I recently upgraded my Magento store to 2.3.1
. The main store works just fine, however, my other store (multi-store instance) brings up this error:
Warning: stream_wrapper_unregister(): Unable to unregister protocol phar:// in /home/site/public_html/app/bootstrap.php on line 11
It then redirects to a report page, the relevant log file shows:
{"0":"Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/app/bootstrap.php:11)}
I've cleared out the var/
folders, run the:
$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile
$ php bin/magento setup:static-content:deploy -f
$ php bin/magento cache:clean
Going to app/bootstrap.php line 11 shows:
stream_wrapper_unregister('phar');
Commenting it out works ... but that feels hacky and dirty.
What's the proper way to fix this?
Server info:
PHP: 7.2.16
CentOS 7
Thanks,