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

Create order (on Customer edit page) - not working from admin environment #11832

Closed
psbhanu opened this issue Oct 28, 2017 · 9 comments
Closed
Assignees
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@psbhanu
Copy link

psbhanu commented Oct 28, 2017

Getting Fatal error while trying to access create order page from Customer edit screen.

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Sales\Block\Adminhtml\Order\Create\Sidebar\Wishlist\Interceptor::getItemPrice() must be an instance of Magento\Catalog\Model\Product, instance of Magento\Wishlist\Model\Item given, called in /home/psbhanu/public_html/subdomains/ishop/vendor/magento/module-sales/view/adminhtml/templates/order/create/sidebar/items.phtml on line 73 and defined in /home/psbhanu/public_html/subdomains/ishop/generated/code/Magento/Sales/Block/Adminhtml/Order/Create/Sidebar/Wishlist/Interceptor.php:280 Stack trace: #0 /home/psbhanu/public_html/subdomains/ishop/vendor/magento/module-sales/view/adminhtml/templates/order/create/sidebar/items.phtml(73): Magento\Sales\Block\Adminhtml\Order\Create\Sidebar\Wishlist\Interceptor->getItemPrice(Object(Magento\Wishlist\Model\Item)) #1 /home/psbhanu/public_html/subdomains/ishop/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/home/psbhanu/p...') #2 /home/psbhanu/public_html/subdomains/ishop/vendor/magento/framework/View/Element/ in /home/psbhanu/public_html/subdomains/ishop/generated/code/Magento/Sales/Block/Adminhtml/Order/Create/Sidebar/Wishlist/Interceptor.php on line 280

Preconditions

  1. Magento version 2.2.0
  2. PhP version 7.1.9
  3. Apache version 2.4
  4. MySQL version 5.6.36

Steps to reproduce

  1. Login to Admin Panel
  2. Navigate to Customers -> All Customer
  3. Edit any customer
  4. Use top Action - Create Order

Expected result

  1. It should display Create Order screen correctly.

Actual result

The Create Order page displaying above FATAL error and due to the same, page (and css/js etc) has not loading completly.

  1. Screen Print - megento_admin_customer_create_order_fatal_error.png
@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Oct 28, 2017
@magento-engcom-team
Copy link
Contributor

Hello @psbhanu. Thanks for reporting. Can You reproduce Your issue on a fresh Magento 2.2.0 instance?

@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Progress: needs update labels Oct 30, 2017
@magento-engcom-team
Copy link
Contributor

magento-engcom-team commented Oct 30, 2017

Sorry for needlessly disturbing You @psbhanu. We've just managed to reproduce Your issue. Soon our internal ticket will have been created.

@magento-engcom-team
Copy link
Contributor

@psbhanu, thank you for your report.
We've created internal ticket(s) MAGETWO-82981 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 30, 2017
@RomaKis RomaKis self-assigned this Nov 2, 2017
@okorshenko
Copy link
Contributor

The issue has been fixed and delivered to 2.2-develop branch. Will be available with 2.2.2 release

@okorshenko okorshenko added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Nov 13, 2017
@fwolfst
Copy link

fwolfst commented Dec 12, 2017

Gosh we have this too. The workaround (delete wishlist of customer) is expensive. Thanks @RomaKis for the PR, we will look into patching our installation. @okorshenko Do you know about plans to transparentize the release schedules? Or specifically for 2.2.2 ?

@okorshenko
Copy link
Contributor

Hi @fwolfst most likely the fix will be a part of 2.2.2 release

@fwolfst
Copy link

fwolfst commented Dec 12, 2017

@okorshenko Thanks for the reply! Any guess whether 2.2.2 will be there before christmas?

@fwolfst
Copy link

fwolfst commented Dec 13, 2017

@okorshenko Okay, got update and confirm fix.

@magento-engcom-team
Copy link
Contributor

Hi @psbhanu. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1289 by @magento-engcom-team in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming patch release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

5 participants