It is not possible to download invoices from the order overview

  • Posts: 64
  • Thank you received: 8
  • Hikaserial Subscription Hikashop Business
1 day 1 hour ago #373468

-- HikaShop version -- : 6.6.0
-- Joomla version -- : 6.1.3
-- PHP version -- : 8.4.23
-- Browser(s) name and version -- : FF 152.0.9
-- Error-message(debug-mod must be tuned on) -- : no view

Hello,

When I want to download an invoice from the order overview in the backend and tick a box to select an order, the invoice isn’t loaded or downloaded; instead, the page simply reloads.

I updated the invoicing plugin to version 5.2.0 yesterday, thinking that this might resolve the issue. Before that, I’d been using version 3.0.8 on my site. Unfortunately, yesterday’s update didn’t sort it out, so could it possibly be related to changes introduced in version 6.5.1 to 6.6.0?

Last edit: 1 day 1 hour ago by P.M..

Please Log in or Create an account to join the conversation.

  • Posts: 86212
  • Thank you received: 14219
  • MODERATOR
22 hours 41 minutes ago #373469

Hello,

We tried to reproduce it with HikaShop 6.6.0, Joomla 6.1 and the latest version of the PDF invoice plugin (5.1.1, there is no 5.2.0 so please check the version shown in the Joomla plugins manager): ticking an order and clicking on the Invoice button downloads the PDF straight away, in the same way as with HikaShop 6.5.1. That part of HikaShop didn't change between the two versions either, so something specific to your website seems to stop the request before it reaches the plugin.

Could you check these points?
- On your screenshot, the Invoice, Actions and Copy buttons look greyed out even though an order is ticked. Do they become active when you tick an order? If they stay greyed out, a JavaScript error is likely involved: press F12, open the Console tab, tick an order, click on Invoice, and give us what shows up in red.
- Does it work in another browser, or in a private window of Firefox with its add-ons disabled?
- Does the Invoice button at the top of the page of an order (when you open it from the listing) download the PDF?
- Do you use a security extension like Admin Tools, RSFirewall or similar? Such an extension can block the request and send you back to the listing. Try temporarily disabling it to see if it changes anything.

If none of this helps, please give us a backend access via our contact form so that we can check it directly on your website.

Please Log in or Create an account to join the conversation.

  • Posts: 64
  • Thank you received: 8
  • Hikaserial Subscription Hikashop Business
22 hours 14 minutes ago #373470

Hello Nicolas.

first you are a machine :)

The buttons seem to be working, but the behaviour remains as described for me.
I have sent you our login details via the contact form.
Please let me know if there is anything else I can send you.

Thanks, Michael

Please Log in or Create an account to join the conversation.

  • Posts: 86212
  • Thank you received: 14219
  • MODERATOR
7 hours 40 minutes ago #373473

Hello,

Thank you for the backend access, we found the cause. Your orders listing is set to display 500 orders per page, and each order has its own status dropdown in the form. So when you click on Invoice, your browser sends a little over 530 values to the server. Your server's PHP configuration has max_input_vars set to 500, so PHP silently drops everything past the 500th value, including the one that asks for the invoice. HikaShop then only sees a request to display the orders listing, which is why the page just reloads. The invoice plugin itself works fine on your website.

You have two ways to fix it:
- In the orders listing, lower the number of orders displayed per page (the dropdown at the bottom of the listing) to 100 or less. The Invoice button should then work.
- Or ask your hosting company to raise the PHP setting max_input_vars to 5000 or more, so that you can keep displaying 500 orders per page. The other buttons of that listing that act on the ticked orders (Actions, Copy, Delete, Export) are affected by the same limit.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum