When trying to view an order I get these errors:

The website encountered an unexpected error. Please try again later.

Type php
Date Wednesday, February 17, 2016 - 19:36
User Chris Fiedler
Location https://chrisfiedler.com/admin/store/orders/21
Referrer https://chrisfiedler.com/admin/store/orders/view?order_id=&order_status=All
Message Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("user") to generate a URL for route "entity.uc_order.display". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 177 of /home/user/public_html/core/lib/Drupal/Core/Routing/UrlGenerator.php).
Severity Error

The next error, I think it's an anonymous order (its blank where the name link would be in the orders list)

Fatal error: Call to a member function getPlugin() on null in /home/user/public_html/modules/ubercart/payment/uc_payment/src/Plugin/PaymentMethodManager.php on line 50

Type php
Date Wednesday, February 17, 2016 - 19:19
User Chris Fiedler
Location https://chrisfiedler.com/admin/store/orders/16
Referrer https://chrisfiedler.com/admin/store/orders/view?order_id=&order_status=All
Message Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 232 of /home/user/public_html/core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Severity Warning

on another account i can view the order with the name associated with it but not the anonymous order, that one just gets a server error page. (i think it's an anonymous order) its blank where the name link would be in the view orders list.

CommentFileSizeAuthor
#2 2670800.patch573 byteslongwave
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sushichris created an issue. See original summary.

longwave’s picture

Status: Active » Needs review
FileSize
573 bytes

Slightly confused where route "entity.uc_order.display" comes from as we don't have a route with this name, but the attached patch may help (you will need to rebuild caches after applying it).

The second one appears related to #2655848: Deleting a payment method is bad., have you deleted a payment method that was previously used?

sushichris’s picture

Ah yes I have previously deleted a payment, (which has caused other errors that were fixed). The patch provided fixed my issue for this issue as well. Thanks! As for where the "entity.uc_order.display" comes from... maybe from deleting the payment method?

  • longwave committed 9b36afe on 8.x-4.x
    Issue #2670800 by longwave: Fix MissingMandatoryParametersException:...
longwave’s picture

Status: Needs review » Fixed

Committed #2, thanks for the report and testing the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

stellarvisions’s picture

I found this most helpful

https://www.drupal.org/node/2396677