magento2.3.1 php bin/magento setup:upgrade error

Created on 7 Apr 2019  路  10Comments  路  Source: magento/magento2

Preconditions (*)


1.magento2.3.1
2.php7.2.16

Steps to reproduce (*)


1.install new magento2.3.1 project
2.install completed,run php bin/magento setup:upgrade error
3.don't have any other plugin

Expected result (*)

  1. [Screenshots, logs or description]
    2.PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\HTTP\ClientInterface in public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
    Stack trace:

0 public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...')

1 public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewo...')

2 public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Framewo...', NULL, 'client', 'Magento\Invento...')

3 public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Invento...', Array, Array)

4 in public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

Actual result (*)

  1. [Screenshots, logs or description]
    2.
Format is valid

Most helpful comment

I am also getting this error after upgrading to 2.3.2. Any work around?

Cannot instantiate interface Magento\InventoryReservationsApi\Model\ReservationBuilderInterface in /vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Stack trace:

0 /vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Invento...')

1 /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Invento...')

2 /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Invento...', NULL, 'reservationBuil...', 'Magento\Invento...')

3 /vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Frame in /vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

All 10 comments

Hi @benyang2015. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • [ ] Summary of the issue
  • [ ] Information on your environment
  • [ ] Steps to reproduce
  • [ ] Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me 2.3-develop instance - upcoming 2.3.x release

For more details, please, review the Magento Contributor Assistant documentation.

@benyang2015 do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • [ ] yes
  • [ ] no

Hi @engcom-backlog-nazar. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento-engcom-team give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 5. Verify that the issue is reproducible on 2.2-develop branch.

    Details- Add the comment @magento-engcom-team give me 2.2-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x

  • [ ] 6. Add label Issue: Confirmed once verification is complete.

  • [ ] 7. Make sure that automatic system confirms that report has been added to the backlog.

Hi @benyang2015 thank you for you report, this issue related to your, configuration , please verify that you have correct permission on folders, also try to clear generated folder, I'm closing this as this is not reproducible.

Hello

I am getting same issue after upgrade to magento 2.3.2

Cleaned var/ and generated/*. Cleaned Redis, flushed cache in Admin Panel

www-data@a8a46d717115:~/live$ bin/magento 

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\HTTP\ClientInterface in /var/www/live/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Stack trace:
#0 /var/www/live/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#1 /var/www/live/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#2 /var/www/live/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'client', 'Magento\\Invento...')
#3 /var/www/live/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Invento...', Array, Array)
#4 /var/www/live/vendor/magento/framework/ObjectManager/Factory in /var/www/live/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

Same issue after upgrade to magento 2.3.2

Any workaround and fix of this issue?
I am also facing same issue after upgrade 2.3.2.

Hello

I am getting same issue after upgrade to magento 2.3.2

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\HTTP\ClientInterface in /opt/lampp/htdocs/flowerbx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Stack trace:
#0 /opt/lampp/htdocs/flowerbx/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...')
#1 /opt/lampp/htdocs/flowerbx/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
#2 /opt/lampp/htdocs/flowerbx/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'client', 'Magento\\Invento...')
#3 /opt/lampp/htdocs/flowerbx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Invento...', Array, Array in /opt/lampp/htdocs/flowerbx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

I am also getting this error after upgrading to 2.3.2. Any work around?

Cannot instantiate interface Magento\InventoryReservationsApi\Model\ReservationBuilderInterface in /vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Stack trace:

0 /vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Invento...')

1 /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Invento...')

2 /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Invento...', NULL, 'reservationBuil...', 'Magento\Invento...')

3 /vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Frame in /vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

I raised a ticket to Magento for the above https://github.com/magento/magento2/issues/23648

Just run composer update on the root directory.

Was this page helpful?
0 / 5 - 0 ratings