spaceprogram
Forum Replies Created
-
Hi @mordauk & @pratik-jain
I’ve found the issue – it is as Pippin suggested the mod_security feature that seems to be blocking the downloads. I switched it off and everything worked fine – back on again and boom downloads fail. I will now contact my host again to get them to modify the mod_security firewall to allow my downloads to work.
Thanks again guys!
And BTW Easy Digital Downloads really is ‘Easy’ even though this thread seemed to make it hard! π
Hi @pratik-jain – I tried your suggestions – the Debug just threw up a few errors in the parent Theme file (nothing to worry about) and the external server file does not result in a file being downloaded.
Although, now that I have changed a few things here the download links now pass the browser back to the site index page with the following URL showing in the address bar: https://www.space-net.co.uk/?eddfile=1545%3A1422%3A1%3A0&ttl=(…etc – I’ve cut it short here as I’m not sure if it would reveal anything on this public forum.)
I have also had a look at the logs and when I try to get a file through EDD I see the following:
[Tue May 07 08:11:09.101674 2019] [access_compat:error] [pid 18885] [client 122.169.95.221:56235] AH01797: client denied by server configuration:…/wp/wp-content/uploads/edd/2019/05/Surfboard.zip (again cut for privacy)
This shows that the server is not allowing access to the file. The IP address shown in the error is listed as somewhere in Mumbai India? Any ideas what might be causing this?
I donβt think itβs helpful to name the hosting companies. However, I can tell you that both are based here in the UK and both are using Linux servers. The only real difference is that the transferred site is now using SSL and HTTPS and Iβve changed all of the fixed links to match this. Would it make a difference to EDD if it was installed under http then changed to https?
I have already tried that one – again fails!
If I link to a file outside of the EDD directory (so no EDD protection) and then manually put it’s URL into the browser it will download but if I put the same URL into the EDD download without moving the file into the EDD directory, it fails…
Thanks for all your help so far
Here it is…
https://www.space-net.co.uk/wp/wp-content/uploads/edd/2019/05/Surfboard.zip
If you want to try the whole purchase, to see what is happening you can start with https://www.space-net.co.uk/downloads/surfboard
OK Here is the htaccess file from the wp folder on the server:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressNot sure how to add a screen shot here?
But I guess the things you’re interested in seeing are:
WordPress Address (URL) https://www.space-net.co.uk/wp
Site Address (URL) https://www.space-net.co.ukI have noticed that if I key in the Site URL: https://www.space-net.co.uk/wp
I also get a 404 Not Found error – could this be the issue?Sure – Here you go…
Options -Indexes
deny from all
<FilesMatch ‘\.(jpg|jpeg|png|gif|mp3|ogg|zip)$’>
Order Allow,Deny
Allow from all
</FilesMatch>Thanks
OK tried that – disabled all plug-ins except EDD and tried to purchase the file again. All good until the purchase conformation page, clicked the download link at the bottom – Error 404 Not found!
Just to let you know, all of the plug-ins I am using now were also active on my previous host and EDD was working fine there.
Any other ideas?
Thanks in advance
Here you go – By the way, in case it matters, when I tried to use the button to ‘Download System Info File’ I got the same ‘not found’ error!
### Begin System Info (Generated 2019-05-06 14:33:49) ###
— Site Info
Site URL: https://www.space-net.co.uk/wp
Home URL: https://www.space-net.co.uk
Multisite: No— Hosting Provider
Host: DBH: localhost, SRV: http://www.space-net.co.uk
— User Browser
Platform: Apple
Browser Name: Firefox
Browser Version: 66.0
User Agent String: Mozilla/5.0 (Macintosh; Intel Ma
c OS X 10.14; rv:66.0) Gecko/201
00101 Firefox/66.0— WordPress Configuration
Version: 5.1.1
Language: en_GB
Permalink Structure: /archives/%post_id%
Active Theme: Space Software Theme 1.0
Parent Theme: Thematic 1.0.4
Show On Front: posts
ABSPATH: /home/spacenet/public_html/wp/
Remote Post: wp_remote_post() works
Table Prefix: Length: 3 Status: Acceptable
WP_DEBUG: Disabled
Memory Limit: 40M
Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, refunded, failed, revoked, abandoned, processing, active, inactive— EDD Configuration
Version: 2.9.12
Upgraded From: 2.9.12
Test Mode: Disabled
AJAX: Enabled
Guest Checkout: Enabled
Symlinks: Disabled
Download Method: Direct
Currency Code: GBP
Currency Position: before
Decimal Separator: .
Thousands Separator: ,
Upgrades Completed: upgrade_payment_taxes,upgrade_customer_payments_association,upgrade_user_api_keys,remove_refunded_sale_logs,update_file_download_log_data
Download Link Expiration: 24 hour(s)— EDD Page Configuration
Checkout: Valid
Checkout Page: https://www.space-net.co.uk/checkout
Success Page: https://www.space-net.co.uk/checkout/purchase-confirmation
Failure Page: https://www.space-net.co.uk/checkout/transaction-failed
Downloads Slug: /downloads— EDD Gateway Configuration
Enabled Gateways: PayPal Standard
Default Gateway: PayPal Standard— EDD Tax Configuration
Taxes: Disabled
Tax Rate: 0
Display On Checkout: Not Displayed
Prices Include Tax: No— WordPress Active Plugins
Add From Server: 3.3.3
AddToAny Share Buttons: 1.7.35
Contact Form 7: 5.1.1
Cookie Notice: 1.2.46
Easy Digital Downloads: 2.9.12
Easy Digital Downloads – htaccess Editor: 1.0.1
Erident Custom Login and Dashboard: 3.5.5
Exclude Pages from Navigation: 1.92
Google Analytics Dashboard for WP (GADWP): 5.3.8
Hide Dashboard: 1.3
Login-Logout: 2.6.1
Really Simple CAPTCHA: 2.0.1
Simple Lightbox: 2.7.1
Stealth Login Page: 4.0.0
Wordfence Security: 7.2.5
WP Google Fonts: v3.1.4— WordPress Inactive Plugins
Duplicator: 1.3.12
Force Regenerate Thumbnails: 2.0.6
GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership: 1.4.18
GoUrl Easy Digital Downloads (EDD) – Bitcoin Altcoin Payment Gateway: 1.0.2
SABRE: 1.2.2
WP-DBManager: 2.79.2— Webserver Configuration
PHP Version: 5.6.32
MySQL Version: 5.5.58
Webserver Info: Apache— PHP Configuration
Memory Limit: 256M
Upload Max Size: 2M
Post Max Size: 8M
Upload Max Filesize: 2M
Time Limit: 30
Max Input Vars: 1000
Display Errors: N/A
PHP Arg Separator: &— PHP Extensions
cURL: Supported
fsockopen: Supported
SOAP Client: Installed
Suhosin: Not Installed— Session Configuration
EDD Use Sessions: Enabled
Session: Disabled### End System Info ###
I also tried changing the download settings from forced to redirect and tried it with sim link ticked as well – same outcome!
Hi tried that too – same error. π
Hi Pippin
Thanks for your reply. I have already tried the steps you have suggested but in the spirit of cooperation, I did try them again with a new file and unfortunately I get the same 404 error when I click the link on the purchase confirmation page or in the email sent to confirm the purchase.
Could this error be due to my moving the entire site to a new host? Perhaps there is something internally in EDD that is still pointing to the old host? Alternatively could it be a file permissions issue?
Thanks in advance for any further assistance you can provide.
Hi @pratik-jain
I’ve checked the file path and it’s all good. The file exists in the location that is in the box in EDD. As a test I also created another folder on the site and put a copy of the file in there. Then I put the direct path to the new test file into my browser and I was able to download the file. Next, I pointed the EDD download path to my test file and tried to (free) purchase the file using EDD. This did not work and I got the 404 not found page instead!
I now think there is some technical hitch inside of EDD that’s causing this, as it seems like the EDD plugin is not internally saving the correct path to the file. Obviously I can’t check this, as EDD is cloaking the file with it’s own code.
Unless someone technical (from EDD) can come up with the answer to this I think I may have to delete the EDD plugin and reinstall it all again – which will be a PITA but I can’t see why it’s not working.
Arrrrrgh!
Hi Pratik, thanks for your reply.
The ‘Add From Server’ plug-in is recommended by EDD themselves, so I doubt it would be an issue here. This plug-in allows you to add large files to the WP media folder when your upload limit is too small. Actully the plug-in is not active now that I have uploaded and added all of my files.
I don’t know how to add screen shots here. However, I know the configuration of the download pages is all good as I have been able to use EDD to sell things prior to moving my site to a new host and adding the SSL Cert.
I think the issue is related to the path to the file on my WP site but I don’t know how to resolve this.
Thanks