Links to dashboard and invoices not working

Created on 24 March 2025, about 2 months ago

Problem/Motivation

It would be great to get this fixed. I'm on D10.4.5, Commerce 2.40 and 3.0.1, Commerce Registration 3.1.5 and 3.4.0-beta2 (live and testing sites):
On the upper right of a Commerce sub page, e.g., Products, Orders, Promotions, Configuration, Invoices (from latest commerce_invoice 2.0-rc5), etc., there is a blue button with a small envelope icon left of the words "Commerce inbox" and a link to /commerce. The link works nicely on all sub pages except Registrations and Registrations Overview where going there with the mouse pointer does not do anything - the link does not become active. The same is true for the /admin/commerce/invoices page.

Which leads me to the other observation, and maybe another invoices issue is perhaps related to the commerce_invoice link issue mentioned in the previous paragraph, or at least not too different from the aforementioned problem:
Going to /admin/invoices and viewing an invoice works when clicking "view" which goes to, e.g., with invoice 324,

/admin/commerce/invoices/324?language_content_entity=de

and it is possible to download the invoice as well with the "download" function, thereby evoking

/invoice/324/download?language_content_entity=de (the link has no prefixed /admin/)

However, if, as an admin, I go to the registrant's user account and go to her/his view of the user's invoices, the link name is the name of the invoice, here, e.g., R2025-034, and the link should lead to /user//invoices/324 and retrieve the file - in this example, /private/R2025034-de-pending.pdf. Instead I get the message "The requested page could not be found."

Perhaps this is an unrelated a commerce_invoice issue, but I didn't report it yet because I thought it was a database problem that remained after a missed database upgrade almost a year ago where I had to roll back he DB and lost registration entries I had to recreate afterwards. But perhaps it's just a typo or slightly misnamed link that causes the problem, and maybe even only in the interplay of commerce_registration and commerce and/or commerce_invoice.

Steps to reproduce

Run a regular install of commerce, commerce_invoice and registrations plus commerce_registrations, create an event and have a user register for it. Try the blue button "Commerce inbox" in the upper right of the commerce pages "registrations", "registrations overview" or "invoices" as accessed from the commerce dashboard or menu.

For the other issue go to the registered user's account, go to "invoices" and click on the invoice name left on the page in the list.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dgwolf
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Hi Andreas, you should not have the "Views UI" module enabled in Production - that is used to maintain or add new views listings, and it adds contextual links that can occasionally interfere with other elements on the page. If you uninstall it (drush pmu views_ui) all of your listings will still work, but the contextual links for doing maintenance will disappear, and the Commerce Inbox links will be accessible again. The reason it works with Views UI enabled for the native Commerce listings like Orders and Products is those listings happen to have an action button (Add Product etc) in the upper left - that causes the Commerce inbox link to slide up, where the Views UI contextual filter link no longer interferes.

    Please open a new issue in the Commerce Invoice issue queue for that other unrelated problem.

Production build 0.71.5 2024