[Solved] Text file download problem and update plugin settings error  

  RSS

Filip
Active Member
Joined: 2 months  ago
Posts: 19
23/12/2016 9:21 pm  

Hi

First problem discover recently some of my members uploaded a text document and when i press to download it downloads the whole html page of what i view in text file.

Second problem is when Updating Options in the Addon setting it gives me HTTP ERROR 500 see both pictures for both issues.

Not sure if this started after update i did not tested the text but Update Options was working before without errors.


ReplyQuote
Tom
 Tom
Support Team
Joined: 2 years  ago
Posts: 1087
23/12/2016 10:54 pm  

Hi Filip,

The first issue is fixed in 1.0.1 version, please update it through Plugins admin page or download from gVectors account page, then deactivate delete current version and upload the new one.

The second problem related to TXT file is strange, we don't see such problem on our test websites.You can test it here, just login using your wpForo account or register a new:

http://addons.wpforo.com/community/wpforo-advanced-attachments/wpforo-advanced-attachments/

It seems some of your plugins generates Notice or Warning error. It'll disturb download header and put HTML content in it. I'd recommend deactivate plugins one by one and check it. This is something which can't be fixed from our side.

wpDiscuz Documentation


Filip liked
ReplyQuote
Filip
Active Member
Joined: 2 months  ago
Posts: 19
24/12/2016 4:54 am  

Hi Martin

Problem with error was fixed after update but txt file issue still persist tried disabling plugins switching theme and without result.

What else can i try?


ReplyQuote
Tom
 Tom
Support Team
Joined: 2 years  ago
Posts: 1087
24/12/2016 1:36 pm  

Could you please download the TXT file and send it to support[at]gvectors.com email address? We need to see the HTML content you're talking about.

wpDiscuz Documentation


ReplyQuote
Filip
Active Member
Joined: 2 months  ago
Posts: 19
24/12/2016 5:23 pm  

Hi Tom

I found the problem but need a solution to this not know why it happen.

As soon i enable hotlinking in htaccess it will download that html in text file if i disable codes it works but this is important for my site, here is my code maybe something can be changed.

RewriteEngine On 
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?itesla.solutions/ [NC]
RewriteRule .*.(jpg|jpeg|png|gif|pdf|rar|)$ https://itesla.solutions/isign-up/ [NC,R,L] 
Edited: 4 weeks  ago

ReplyQuote
Tom
 Tom
Support Team
Joined: 2 years  ago
Posts: 1087
26/12/2016 1:21 pm  

Have you tried to add txt extension in the list? For example:

RewriteEngine On 
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?itesla.solutions/ [NC]
RewriteRule .*.(txt|jpg|jpeg|png|gif|pdf|rar|)$  https://itesla.solutions/isign-up/   [NC,R,L]

 

wpDiscuz Documentation


ReplyQuote
Filip
Active Member
Joined: 2 months  ago
Posts: 19
26/12/2016 5:32 pm  

Yes i tried before but not helped i even try remove all those but keep jpg it still not work only if i disable hotlink code it work.

Also google could not access robot.txt and i have to move this htaccess code into /uploads/ dir so google and other search engines could read that text.


ReplyQuote
Filip
Active Member
Joined: 2 months  ago
Posts: 19
02/01/2017 7:12 pm  

Heaven

My htaccess is not in /uploads/ but in /wp-content/ dir sorry was not able to edit my reply.
Any idea why txt files get hotlinked even without adding it?

Between i found recently some error log in /wp-admin/ dir, can this be related?

[31-Dec-2016 17:44:36 UTC] no decode delegate for this image format `' @ error/constitute.c/ReadImage/501 
Edited: 2 weeks  ago

ReplyQuote
Tom
 Tom
Support Team
Joined: 2 years  ago
Posts: 1087
04/01/2017 2:36 am  

Hi Filip,

it seems you use the old version. Or these error was generated before wpForo Advanced Attachment 1.0.1 version. Please deactivate and delete this addon through Dashboard > Plugins admin page. Then go to gVectors Shop Account page, download and install it again. And remove this error log file.

wpDiscuz Documentation


ReplyQuote
Filip
Active Member
Joined: 2 months  ago
Posts: 19
04/01/2017 3:56 am  

Hi Tom
It seems it was old error log.
Well i will mark this topic as solved because hotlink issue is not related with the Add-on.

On a side note if you can edit my previous reply to exclude those links would be good there was not much time to edit them when i post.
Thank you for all the help!


ReplyQuote
Filip
Active Member
Joined: 2 months  ago
Posts: 19
09/01/2017 9:03 pm  

Hi again.

I did further testing and moved the Hotlink Protection code to root htaccess and you know i can access robots.txt but attachemnt in wpForo no mater txt or rar it does not download the attachment so it seems a conflict with this add-on and Hotlink Protection code.

Can you look please what is wrong? Did you people test the add-on with Hotlink Protection code?


ReplyQuote
Tom
 Tom
Support Team
Joined: 2 years  ago
Posts: 1087
10/01/2017 3:17 pm  

Hi Filip,

I'm sorry but we don't test addons with other plugins. There are about 10 most popular plugins (cache, seo, profile...) which are being tested with addons, not more. We test it with WordPress different versions and wpForo.

We're not familiar with "Hotlink Protection" plugin. We'll add this in our to-do list and test it once we got some free time-frame.

wpDiscuz Documentation


ReplyQuote
Filip
Active Member
Joined: 2 months  ago
Posts: 19
10/01/2017 5:42 pm  

Hi

That is not plugin but most host provide it as a feature to protect files so they are not accessed by anyone with direct link.

Anyway i have found out that my Hotlink Protection code is wrong that is why attachments not work but if i change it how it must be originally then other of my important plugin will not work.

I will try find a solution to this, thank you for great add-ons and plugins!

Case closed.


ReplyQuote
  
Working

Please Login or Register