Keyword

Hash code in link causes error

  • Yolknet
  • Yolknet's Avatar Topic Author
  • Offline
  • New Member
More
4 months 1 week 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 months 1 week 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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 months 1 week ago #176574 by Fotis
Replied by Fotis 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.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum