Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – Download Links lead to Page Not Found Error-tried all solutions
Tagged: download_manager_debug.log, download.php, estore, php deny all
- This topic has 10 replies, 2 voices, and was last updated 12 years, 1 month ago by wzp.
-
AuthorPosts
-
October 28, 2012 at 3:09 am #7767avidlyParticipant
I’m using eStore and eMember. I created a digital product with encrypted download link. The problem is, the link leads to a Page Not Found error. I’ve tried generating the link through the “Admin Functions” tab and that link also leads to a Page Not Found.
I’m on a shared server.
I’ve searched the forum for all the possible solutions and implemented the following (and the problem is still there):
1. Went through all the possible combination of settings in the “Add On” settings of eStore.
2. The link that gets generated: website.com/page_not_found.php?file=random_characters
3. I’ve disabled the firewall on the site and went with a clean (non-secured) .htaccess file (thinking it may be a .htaccess or firewall problem) – no conflict with firewall or .htaccess file.
4. I’ve disabled all plugins and used the default twentyeleven theme – no plugin or theme conflicts.
5. I’ve enabled debugging and went through all the steps (CHMOD permissions) but still have a blank log at: download_manager_debug.log (except for one entry, from when I reset it, thinking maybe a reset would make it log):
[10/28/2012 12:27 AM] – Advisory : Log file reset.
6. Since the debug log was empty, I looked on my server error log and found:
website.com/.htaccess: Invalid command ‘/*RewriteCond’, perhaps misspelled or defined by a module not included in the server configuration,
Can you please help me?
Thank you.
October 28, 2012 at 5:58 am #50833avidlyParticipantAfter doing more reading, I thought that maybe storing my downloads on Amazon S3 could be the solution – it isn’t. The S3 bucket was create, and the URL was inserted into the “product URL (instructions from: http://www.tipsandtricks-hq.com/ecommerce/amazon-web-services-simple-storage-service-aws-s3-integration-1101).
I cleared cache too for luck.
When I went back to click the link (with the download now being hosted in my S3 bucket), I’m STILL getting website.com/page_not_found.php?file=random_numbers.
Do you think there’s something wrong with how the download.php is NOT being processed? That’s my only guess after going through all the solutions I found with no luck.
October 28, 2012 at 6:38 am #50834avidlyParticipantAlso, another problem that may be related: When I try to use the eStore Shortcodes Tinymce button from the visual editor, I get a 404 page not found error in the popup.
I’ve disabled ALL plugins and am using the twenty ten theme for testing.
I’m also using ONLY the WordPress-generated .htaccess:
# 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 WordPress
October 28, 2012 at 12:27 pm #50835avidlyParticipantUpdate, some progress:
1. I generated a download link via Admin Functions (which did not work as is) – link generated:
[http://mywebsite.com/wp-content/plugins/wp-cart-for-digital-products/download.php?file=adkfwuujka3^%#$51]
2. HOWEVER, If I add a slash between download.php and the ?, see below for snippet:
…download.php/?file=
Rather than the encrypted link that’s generated via eStore:
…download.php?file=
the download works (and re-directs to my S3 bucket).
Questions:
1. What do I change in the PHP files (I’m guessing) to create the slash where I need it for the download link to work?
2. For S3 buckets (I did NOT set it to public), after my encrypted link from eStore is clicked on, I get the following in the address location bar (to my bucket):
http://bucketname.s3.amazonaws.com/folder/object?AWSAccessKeyId=xxx&Expires=1351426344&Signature=xxx
a. Is this safe for people to see since my access key id is in the URL, along with the file location?
b. Doesn’t that defy the point of an encrypted link if people can see where they’re downloading from and possibly use a bucket ripper to get my downloads?
c. Also, I apologize for the newbie question since this is the first time I’ve used S3 – does this link S3 download link expire? What I would like to know is that even if someone shares the S3 link that’s shown in the address bar, will the person/s who get it be able to download from the link?
Thanks in advance for the answers.
October 28, 2012 at 1:31 pm #50836wzpModeratorPlease step away from the keyboard! You are making your situation worse, because you are just “trying different things.”
First, please undo *****EVERY CHANGE***** that you have made since you first began posting in this thread.
Next, turn on the eStore “Enable Debug” option. After saving that setting, click the red “Reset Debug Log Files” button. Now, check the download_manager_debug.log file and make sure a log file reset message has been recorded there.
Now, go to the Admin Functions page and generate an encrypted link for one of your products. Copy the generated link, exactly as it appears, and paste it into the address bar of your browser.
Did the link work?
If it did not work, check the download_manager_debug.log file. There should be a few messages in there, indicating if the link was used.
If there are no new messages, the download.php file wasn’t even found/started by the server, and all those things you tried weren’t even doing anything. If there are messages, please post what they say.
Also, is this a new or existing site, and what version of eStore are you using?
As for the server log error, are you using a commercial hosting provider, or are you trying to use “your own box?”
October 28, 2012 at 3:30 pm #50837avidlyParticipantI’ve undone all changes I’ve made.
Using eStore 6.9.1.7.
Please see the last post above your response of my update. The problem is with HOW the encrypted link is generated (without a slash that I need). I need the encrypted links to be generated with an extra slash (see example above) for them to work. The link generated through Admin Functions does NOT WORK due to the missing slash.
This is a brand new site, commercial shared hosting.
download_manager_debug.log does not log anything except for my reset date – and I’ve gone through the troubleshooting steps in the forum to get the log file to write. Still nothing.
Thank you.
October 28, 2012 at 4:31 pm #50838wzpModeratorThe correct form for a query string is: download.php?file=wxyz
It is improper syntax for the query string to require a slash before it.
Are you sure the .htaccess file at the document root level only contains:
# 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 WordPress
# Protect wp-config.php
<files wp-config.php>
order allow,deny
deny from all
</files>If the server error complains about “/*RewriteCond'” it means that there is a line in the file that begins with a “/*” someplace.
October 28, 2012 at 4:47 pm #50839wzpModeratorIn your eStore directory, please create a “test.php” file that contains the following:
<?php
echo ‘Hello World!’
?>
And try to execute it directly from the browser as:
<name of your site>.com/wp-content/plugins/wp-cart-for-digital-products/test.php
If you can’t execute it, without having to use a trailing slash, something is wrong with your server configuration.
October 28, 2012 at 10:23 pm #50840avidlyParticipantThanks WZP. I did the two suggestions above (.htaccess at root level only contains the code provided, and created the test.php file:
I CANNOT execute the test file without having to use a trailing slash. I also CANNOT execute the file WITH a trailing slash. Both trailing slash and not gives me the following result:
<mywebsite.com>/page_not_found.php
If the above is due to a wrong server configuration, can you please tell me what I need to ask my host to do? I’m on a shared hosting account with Downtownhost (Linux).
Thank you so much for your help.
October 29, 2012 at 1:15 am #50841wzpModeratorYou simply need to tell the hosting provider that you can’t execute the test file, and that it’s their problem to make it work. After all, what good is a server that can’t execute a simple 3 line test file, LOL.
November 7, 2012 at 2:38 pm #50842wzpModeratorWe just had a similar issue with another eStore user. Perhaps this solution will resolve your problem (check my final reply on that post):
-
AuthorPosts
- You must be logged in to reply to this topic.