Keyword

Hash code in link causes error

  • Yolknet
  • Yolknet's Avatar Topic Author
  • Offline
  • New Member
More
4 years 4 months ago #176567 by Yolknet
Hash code in link causes error was created by Yolknet
When a product has an attachment the link in the frontend is .../item/download/1251_2b7f58ceee4aba56d1c5f86d3f0c18fb
If you click on the link you get a white page with the error that the file doesn't exist, although it's saved in the database and on the server in /media/k2/attachments. However the link does work when you remove the hash code at the end: .../item/download/1251
This only happens with files that were saved in the database before the site moved to a different server.
Attachments that are uploaded today do work.
So why does the old hashes don't work and how to generate new hashes?

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

  • Yolknet
  • Yolknet's Avatar Topic Author
  • Offline
  • New Member
More
4 years 4 months ago #176568 by Yolknet
Replied by Yolknet on topic Hash code in link causes error
As mentioned in www.joomlaworks.net/forum/k2-en/47194-k2-attachments-return-404-error-file-does-not-exist I commented out the hash check. This is a temporary fix untill an update. I hope there is a more clean fix?

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

More
4 years 4 months ago #176574 by JoomlaWorks
Replied by JoomlaWorks on topic Hash code in link causes error
A blank page always points to some other error.

I would recommend switching error reporting to maximum (in Joomla's Global Configuration) and testing an attachment in the frontend after that change.

Report back the error you'll get.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum