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?

Kirti Nariya
3,0872 gold badges26 silver badges54 bronze badges
asked Mar 6, 2019 at 8:20
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

answered Mar 6, 2019 at 8:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.