0

I have ungraded my Magento 2.2.x Store to Magento 2.3. After upgrade everything was working fine. I have observed a new issue in PHP CLI.

Once I run any CLI command I am getting PHP Warning Like below:

bin/magento indexer:reindex
Warning: set_error_handler() expects parameter 2 to be integer, string given in bin/magento on line 21

After that command works properly.

I am using the correct PHP CLI version: PHP 7.2.15 (cli)

I have no idea how this new warning get occurred and how to fix this.

Also I observed that a log file get created on my root folder with php_error log where the above warning is getting appended.

Can someone help me in fixing this issue?

1
  • please check my answer. Commented Mar 6, 2019 at 8:59

1 Answer 1

0

try this command

php56 bin/magento setup:upgrade

php version 5.6 which is required in Magento 2. Hope this would help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.