Jump to content
Sign in to follow this  
mtk

Ticket attachment redirects to clients area

Recommended Posts

Hey,

when trying to download attachments from tickets (on the admin side) the URL redirects to the client area!

(and no attachment is downloaded)

 

 

This happens to both new tickets (that were recieved after upgrading to 5.2.12) and old.

 

MtK

Edited by mtk

Share this post


Link to post
Share on other sites

This has been confirmed as an issue affecting the most recent security release.

 

The issue only affects the downloading of attachments in the original message of a ticket, those in replies can still be downloaded.

 

Below are patch files that fix this, simply download the appropriate patch for your version and then upload the file contained in it to the root directory of your WHMCS installation.

 

Version 5.2.12 - TicketAttachmentFixV5212.zip

Version 5.1.13 - TicketAttachmentFixV5113.zip

 

Matt

Share this post


Link to post
Share on other sites

Matt

I am having a similar issue with downloading the PDF version of invoices ( when clicking the download link on the bottom of the invoice page ) and also files from the download section of the client area. it just redirect to the login page. the version I am running is 5.2.12. and clue why this is happening?

 

thanks

Share this post


Link to post
Share on other sites
I am having a similar issue with downloading the PDF version of invoices ( when clicking the download link on the bottom of the invoice page ) and also files from the download section of the client area. it just redirect to the login page. the version I am running is 5.2.12. and clue why this is happening?

 

I had the issue with downloading PDFs, in the past, on version 5.2.8. Things would work when I disabled SSL, but with SSL enabled, it would redirect to the client area login when I tried to view/download PDFs (invoices or quotes). Apparently, I had some rewrite rules that were causing the issues. Excluding dl.php from the mod_rewrite rules, with the following line, fixed it:

 

# Exclude dl.php from rewrite rules
RewriteRule ^(dl\.php) - [L] 

 

I'm not sure if this will work for you, but that is how I fixed it for me.

Share this post


Link to post
Share on other sites

Thanks Site0x

I have added the rule to htaccess but didn't do anything. I still see 302 in the browser.

I am sure this is something to do with security..

hope somebody have a solution for this

Share this post


Link to post
Share on other sites

Hi Matt,

 

This did not fix it for us, we have the attachments folder outside of the public area for security reasons and have put the path in the config file and when support tickets are logged, the files are getting put in the folder, but from within the portal, i am not able to access the files within the support tickets. the error i get is "File not found. Please contact support"

 

This has been confirmed as an issue affecting the most recent security release.

 

The issue only affects the downloading of attachments in the original message of a ticket, those in replies can still be downloaded.

 

Below are patch files that fix this, simply download the appropriate patch for your version and then upload the file contained in it to the root directory of your WHMCS installation.

 

Version 5.2.12 - [ATTACH]5222[/ATTACH]

Version 5.1.13 - [ATTACH]5226[/ATTACH]

 

Matt

Share this post


Link to post
Share on other sites
Version 5.2.12 - [ATTACH]5222[/ATTACH]

 

This version worked for me! I have my attachements folder outside the publuc_html folder, and uploaded this file to the root dir of my WHMCS install, and it worked perfectly for me!

 

Thanks for the fix.

Share this post


Link to post
Share on other sites

Hi, i can't upgrade my WHMCS version and i'm having this issue, currently we have the 5.1.15 version and we need to solve this whitout upgrading to 5.2 because we have a custom payment gateway developed for the 5.1 version; any help please?

Share this post


Link to post
Share on other sites

Version 5.1 is now EOL (End of Life). This means patches will no longer be provided for it. You will have to upgrade to 5.2 to get any fixes going forward. Are you positive the custom payment gateway does not work on the latest 5.2 version? Have you tested it?

 

http://docs.whmcs.com/Long_Term_Support#WHMCS_Version_.26_LTS_Schedule

Edited by SeanP

Share this post


Link to post
Share on other sites

Thx for replying SiteOX

 

I haven't tested if the payment Gateway works on 5.2, but i've seen some of the source code and uses some functions that we tested and didn't worked on 5.2, i'm going to recommend the 5.2 upgrade to my supervisor.

Share this post


Link to post
Share on other sites

We had the same concerns, with some custom modules we have, when we went from the 5.1 series to the latest 5.2 version. Fortunately, we were able to test everything thoroughly, and our modules worked on the latest version. It's always best to be on the latest version, if at all possible, especially being the nature of the software.

Share this post


Link to post
Share on other sites

Another thing to mention, if you haven't already done so, is to get a development license from WHMCS. If you put in a support ticket, they will give you a development license key. You can then install a dev environment, of WHMCS, and do all your testing there, before rolling anything into production.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By WIS hosting
      If a client has multiple domain names which are due on the same date then the upcoming domain renewal email should combine them according to the new version 5.3.2
       
      This doesnt work!
       
      I use the following code like WHMCS put in the upcoming domain renewal template while upgrading.
       
      {if $days_until_expiry}The domain(s) listed below are due to expire within the next {$days_until_expiry} days.{else}The domain(s) listed below are going to expire in {$domain_days_until_expiry} days. Renew now before it's too late...{/if}
       
      {if $expiring_domains}{foreach from=$expiring_domains item=domain}{$domain.name} - {$domain.nextduedate} ({$domain.days} Days)
      {/foreach}{else}{$domain_name} - {$domain_next_due_date} ({$domain_days_until_nextdue} Days){/if}
       
       
      Are there more people who have this problem?
    • By asmar
      After upgrading to 5.2.4 from 5.1.6 none of the users can login under admin link.
       
      I tried re-uploading everything but still same problem.
       
      I've also generate new md5 passwords and double check the old ones that are correct but seems just not to work.
    • By mhx
      After updating today, I cant add "Add new Addon" to product/service
       
      No errors in httpd logs.
       
      Anyone else having this trouble?
    • By jclarke
      Just a heads up to anyone that upgrades to 5.2.6, don't try and send a mass email as it appears to be broken in this release. It will only send the first batch and then return an invalid token message on the second batch.
       
      I've reported the bug to WHMCS, just want to save others some frustration.
    • By mrl14
      After updating to 5.1.8, visiting the view/search clients page causes an error.
       
      Fatal error: Call to undefined function db_escaoe_string() in /home/**/public_html/whmcs/admin/clients.php on line 0
       
      I've seen several others have this same issue.
       
      - - - Updated - - -
       
      Looks like a spelling error in the function call. db_escape_string()
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated