"Failed to move file" error when uploading a file

  • Massimo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago - 10 years 1 month ago #60077 by Massimo
I'm having the following issue since the very first version of Membership Pro I installed up to the latest version 1.70.
My website accepts subscriptions both with online payments method (PayPal) and offline method. When a user subscribes and decides to pay with an offline method (i.e. a wire transfer) I ask him to attach a copy of the payment receipt to the subscription form. To that purpose I've set a file type field (a button) in the Membership Pro form that allows the upload of .jpg files.
Everything works fine as long as the user is subscribing for the first time: I go to his profile and find the download link to the document he sent.
However, when the member wants to RENEW his subscription using the same offline method, he gets an error from the website after uploading the payment receipt. The error is: "Warning: failed to move file!".
If I go to the upload folder (in my case it's: /content/media/com_osmembership/upload) I can locate the uploaded file so the upload didn't actually fail, but because of the error the user is lead to think that the file transfer failed, so he tries again and / or contacts out customer service to complain about the failed operation...
I already checked the folder permissions and every other parameter that I could think of, so my question now is: from a technical point of view what does it change between the first time subscription form and the renewal form? As far as I can see it's exactly the same form, so how come this issue only appears in the renewal form?
I need to fix this thing urgently as it's causing lots of troubles to me and it's an annoyance to my subscribers.
Last edit: 10 years 1 month ago by Massimo.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 years 1 month ago #60096 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic "Failed to move file" error when uploading a file
Hi Massimo

From technical point of view, there is nothing different from uploading for the first time signing up and on the renewal time. We just use JFile::upload method to process file upload (seems you know the code, so it is a Joomla core class) and I don't really know why it throw that error message.

If you want, you can submit a support ticket sending us super admin and FTP account of your site so that I can check to see what's wrong and get it sorted for you

Regards,

Tuan

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

  • Massimo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 weeks ago #60111 by Massimo
Ok, I'll open a support ticket right away. Thanks.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 years 4 weeks ago #60115 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic "Failed to move file" error when uploading a file
OK Massimo. We are going to check and solve your ticket on tomorrow. It is night time here now

Tuan

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