[Skip to main content](#vessel-content)

#   Downloads suddenly stopped working

##

- **[jgribble](/forum/user/4695-jgribble "View jgribble's Profile")**
- [![jgribble's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4695-jgribble "View jgribble's Profile") Topic Author
- [ Offline](/forum/user/4695-jgribble)

Less More

- Posts: 318
- Thank you received: 20
-
-

9 years 9 months ago [\#260270](#260270) by [jgribble](/forum/user/4695-jgribble "View jgribble's Profile")  *[Downloads suddenly stopped working](/forum/28-shipping-methods/888445-downloads-suddenly-stopped-working#260270 "-- url of the page with the problem -- : educationlaw.org -- HikaShop version -- : 2.61 -- Joomla version -- : 2.59 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : An error occurred while processing this request.  I am moving this support thread to the forum. We have been communicating via e-mail. Our client operates a bookstore and has a small section selling e-books. These are shipped via a download link in the order confirmation e-mail. Two weeks ago for no obvious reason the download links being received by purchasers stopped working. The error message is: &quot;An error occurred while processing this request.&quot; We were advised to update to the latest version of Hikashop. We did so but it broke the store and we had to revert. The latest version is not compatible with Joomla 2.59. We are stuck for now at that version because to update to the latest version of Joomla is a major undertaking which also will require updating of many other apps. It can't be done quickly. To solve the problem now, we eventually were advised by Jerome that this appears to be an SEF issue. Joomla SEF for whatever reason decided to start modifying the native download link being generated by Hikashop. The native download link is fine. But it will have been subtly edited by Joomla SEF in the process of embedding it in the order confirmation e-mail. Jerome advised that &quot;using a view override or email customization, it would be possible to change how the URL are generated.&quot; This could be an answer. We have asked for detail on how to implement it. In the meantime, has anyone else experienced this? Thank you, -Jim G.")* was created by *[jgribble](/forum/user/4695-jgribble "View jgribble's Profile")*

-- url of the page with the problem -- : educationlaw.org
-- HikaShop version -- : 2.61
-- Joomla version -- : 2.59
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : An error occurred while processing this request.

I am moving this support thread to the forum. We have been communicating via e-mail. Our client operates a bookstore and has a small section selling e-books. These are shipped via a download link in the order confirmation e-mail. Two weeks ago for no obvious reason the download links being received by purchasers stopped working. The error message is: "An error occurred while processing this request." We were advised to update to the latest version of Hikashop. We did so but it broke the store and we had to revert. The latest version is not compatible with Joomla 2.59. We are stuck for now at that version because to update to the latest version of Joomla is a major undertaking which also will require updating of many other apps. It can't be done quickly.
To solve the problem now, we eventually were advised by Jerome that this appears to be an SEF issue. Joomla SEF for whatever reason decided to start modifying the native download link being generated by Hikashop. The native download link is fine. But it will have been subtly edited by Joomla SEF in the process of embedding it in the order confirmation e-mail. Jerome advised that "using a view override or email customization, it would be possible to change how the URL are generated." This could be an answer. We have asked for detail on how to implement it. In the meantime, has anyone else experienced this?
Thank you,
-Jim G.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg4NDQ1LWRvd25sb2Fkcy1zdWRkZW5seS1zdG9wcGVkLXdvcmtpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

9 years 9 months ago [\#260272](#260272) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Downloads suddenly stopped working](/forum/28-shipping-methods/888445-downloads-suddenly-stopped-working#260272 "-- url of the page with the problem -- : educationlaw.org -- HikaShop version -- : 2.61 -- Joomla version -- : 2.59 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : An error occurred while processing this request.  I am moving this support thread to the forum. We have been communicating via e-mail. Our client operates a bookstore and has a small section selling e-books. These are shipped via a download link in the order confirmation e-mail. Two weeks ago for no obvious reason the download links being received by purchasers stopped working. The error message is: &quot;An error occurred while processing this request.&quot; We were advised to update to the latest version of Hikashop. We did so but it broke the store and we had to revert. The latest version is not compatible with Joomla 2.59. We are stuck for now at that version because to update to the latest version of Joomla is a major undertaking which also will require updating of many other apps. It can't be done quickly. To solve the problem now, we eventually were advised by Jerome that this appears to be an SEF issue. Joomla SEF for whatever reason decided to start modifying the native download link being generated by Hikashop. The native download link is fine. But it will have been subtly edited by Joomla SEF in the process of embedding it in the order confirmation e-mail. Jerome advised that &quot;using a view override or email customization, it would be possible to change how the URL are generated.&quot; This could be an answer. We have asked for detail on how to implement it. In the meantime, has anyone else experienced this? Thank you, -Jim G.")*

Hi,

The links in the emails are generated in the preload section of the emails that you can find when you edit them via the menu System &gt; Emails.

It's done by this code: Code:

if(empty($customer-&gt;user_cms_id)) $file_pos .= '&amp;email=' . $customer-&gt;user_email; $oid = $data-&gt;order_id; if(!empty($data-&gt;cart-&gt;order_parent_id)) $oid = $data-&gt;cart-&gt;order_parent_id; $t .= '&lt;a href="'.hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$oid.$file_pos.$url_itemid).'"&gt;'.$fileName.'&lt;/a&gt;&lt;br/&gt;';

You would have to change it to something like that: Code:

if(empty($customer-&gt;user_cms_id)) $file_pos .= '?email=' . $customer-&gt;user_email; $oid = $data-&gt;order_id; if(!empty($data-&gt;cart-&gt;order_parent_id)) $oid = $data-&gt;cart-&gt;order_parent_id; $t .= '&lt;a href="'.hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$oid.$url_itemid).$file_pos.'"&gt;'.$fileName.'&lt;/a&gt;&lt;br/&gt;';

And that should fix the problem.
But you need to be sure to have the SEF activated, otherwise you will have two "?" in the URL and it won't be valid anymore.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg4NDQ1LWRvd25sb2Fkcy1zdWRkZW5seS1zdG9wcGVkLXdvcmtpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jgribble](/forum/user/4695-jgribble "View jgribble's Profile")**
- [![jgribble's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4695-jgribble "View jgribble's Profile") Topic Author
- [ Offline](/forum/user/4695-jgribble)

Less More

- Posts: 318
- Thank you received: 20
-
-

9 years 9 months ago -  9 years 9 months ago [\#260307](#260307) by [jgribble](/forum/user/4695-jgribble "View jgribble's Profile")  Replied by *[jgribble](/forum/user/4695-jgribble "View jgribble's Profile")* on topic *[Downloads suddenly stopped working](/forum/28-shipping-methods/888445-downloads-suddenly-stopped-working#260307 "-- url of the page with the problem -- : educationlaw.org -- HikaShop version -- : 2.61 -- Joomla version -- : 2.59 -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : An error occurred while processing this request.  I am moving this support thread to the forum. We have been communicating via e-mail. Our client operates a bookstore and has a small section selling e-books. These are shipped via a download link in the order confirmation e-mail. Two weeks ago for no obvious reason the download links being received by purchasers stopped working. The error message is: &quot;An error occurred while processing this request.&quot; We were advised to update to the latest version of Hikashop. We did so but it broke the store and we had to revert. The latest version is not compatible with Joomla 2.59. We are stuck for now at that version because to update to the latest version of Joomla is a major undertaking which also will require updating of many other apps. It can't be done quickly. To solve the problem now, we eventually were advised by Jerome that this appears to be an SEF issue. Joomla SEF for whatever reason decided to start modifying the native download link being generated by Hikashop. The native download link is fine. But it will have been subtly edited by Joomla SEF in the process of embedding it in the order confirmation e-mail. Jerome advised that &quot;using a view override or email customization, it would be possible to change how the URL are generated.&quot; This could be an answer. We have asked for detail on how to implement it. In the meantime, has anyone else experienced this? Thank you, -Jim G.")*

Thank you, Jerome. This looks promising. I will try it tomorrow and report back. Meanwhile, the client today approved the big Joomla update sometime in the next couple weeks. So hopefully we won't need this stopgap solution very long.
-Jim G.

Last edit: 9 years 9 months ago by [jgribble](/forum/user/4695-jgribble "View jgribble's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODg4NDQ1LWRvd25sb2Fkcy1zdWRkZW5seS1zdG9wcGVkLXdvcmtpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
