awesomemotive / easy-digital-downloads

Sell digital downloads through WordPress
https://easydigitaldownloads.com
GNU General Public License v2.0
868 stars 473 forks source link

After upgraded to 2.1, all originally enabled download items become 404 not found #2573

Closed parcolee closed 9 years ago

parcolee commented 10 years ago

Wordpress 3.9.2

when in 2.0.4, everythings are very alright, all download item pages can go. upgraded to 2.1 , all download item pages become http error 404 not found, even tried add new items after upgraded to 2.1, new items 404 too. I swear there are nothing of EDD config changed before and after upgrade,

pippinsplugins commented 10 years ago

Go to Settings > Permalinks and click Save Changes.

It was probably caused by another plugin, perhaps the Crowd Funding extension, that needs the permalinks refreshed.

parcolee commented 10 years ago

Go to Settings > Permalinks and click Save Changes. Done, but it's still the same.

Crowd Funding extension? Nope, I have no such things installed.

pippinsplugins commented 10 years ago

Can you post your Downloads > Tools > System Info for me?

Pretty sure this is caused by a conflict with another plugin or your theme, in which case the support forums are the proper place for this (github is only for bug / enhancement tracking), but we will go ahea and take care of it here.

parcolee commented 10 years ago

Begin System Info

-- Site Info

Site URL: http://parcowp.proavnet.com Home URL: http://parcowp.proavnet.com Multisite: No

-- User Browser

Platform: Windows Browser Name: Mozilla
Browser Version: 5.0 User Agent String: Mozilla/5.0 (Windows NT 6.3; WOW 64; Trident/7.0; rv:11.0) like G ecko

-- WordPress Configuration

Version: 3.9.2 Language: zh_TW Permalink Structure: /%category%/%postname%/ Active Theme: SoundWavesSE 2.2 Show On Front: posts 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, refunded, failed, revoked, abandoned, active, inactive

-- EDD Configuration

Version: 2.1 Upgraded From: 2.0.4 Test Mode: Disabled Ajax: Enabled Guest Checkout: Enabled Symlinks: Disabled Download Method: Direct Currency Code: HKD Currency Position: before Decimal Separator: . Thousands Separator: ,

-- EDD Page Configuration

Checkout: Valid Checkout Page: http://parcowp.proavnet.com/checkout/ Success Page: http://parcowp.proavnet.com/checkout/purchase-confirmation/ Failure Page: http://parcowp.proavnet.com/checkout/transaction-failed/ Downloads Slug: /downloads

-- EDD Gateway Configuration

Enabled Gateways: None

-- EDD Tax Configuration

Taxes: Disabled Tax Rate: 0 Display On Checkout: Displayed Prices Include Tax: No Country / State Rates:
Country: 0, State: , Rate:

-- WordPress Active Plugins

Advanced Custom Fields: 4.3.8 Advanced Custom Fields: Contact Form 7 Field: 1.1.0 Advanced Custom Fields: Date and Time Picker: 2.0.16 Advanced Custom Fields: PayPal Field: 2.0.0 Advanced Custom Fields: qTranslate: 1.4 Better WordPress reCAPTCHA: 1.1.3 Compact Audio Player: 1.9.3 Contact Form 7: 3.9.3 Contact Form 7 add confirm: 1.3.9.2 Contact Form 7 Datepicker: 2.4.5 Contact Form 7 Get and Show Parameter from URL: 0.9.6 Contact Form 7 Integrations: 1.3.10 Contact Form 7 Mail Conditions: 0.0.1 Contact Form 7 Modules: Hidden Fields: 1.4.2 Contact Form 7 Modules: Send All Fields: 1.4.2 Contact Form 7 Popup Response: 1.0 Contact Form 7 UI: 1.0.0 Cue: 1.2.2 Custom Content Shortcode: 1.1.8 Easy Digital Downloads: 2.1 Easy Table: 1.5.2 Jquery Validation For Contact Form 7: 2.0.1 mqTranslate: 2.6.7 PPM Tooltip: 1.0 SE HTML5 Album Audio Player: 1.1.0 ShortCodes UI: 1.9.8 Shortcodes Ultimate: 4.9.1 Show Content Only: 1.2 Simple Retail Menus: 4.2.1 WooCommerce: 2.1.12

-- WordPress Inactive Plugins

Akismet: 3.0.2 Audio Album: 1.0.4 CHBD Simple jQuery Modal: 1.1 Contact Form 7 - City Field Extension: 1.0 Contact Form 7 - Dynamic Text Extension: 1.2 Contact Form 7 Map Field: 2.3 Contact Form 7 Phone Module: 2.3.4.1 Contact Form 7 Select Box Editor Button: 0.5 Easy Modal: 2.0.13 Free SMS Add On for Contact Form 7: 1.1.0 GigPress: 2.3.6 Hello Dolly: 1.6 Hide Downoad Path: 1.5 Lightbox Plus Colorbox: 2.7 Modal Links: 1.8.4 Musopress Discography: 0.5.1 PB oEmbed HTML5 Audio - with Cache Support: 2.5.1 Ribcage: 1.0.1 TablePress: 1.4 thefreemusician: 0.6 WhatsApp - Contact Form 7 Integration: 1.0 WPArtists: 0.0.2 WP Bands Directory: 0.4 WP UI - Tabs, accordions and more.: 0.8.8

-- Webserver Configuration

PHP Version: 5.4.24 MySQL Version: 5.5.37 Webserver Info: Apache

-- PHP Configuration

Safe Mode: Disabled Memory Limit: 256M Upload Max Size: 20M Post Max Size: 20M Upload Max Filesize: 20M Time Limit: 120 Max Input Vars: 1000 Display Errors: On (1)

-- PHP Extensions

cURL: Supported fsockopen: Supported SOAP Client: Installed Suhosin: Not Installed

-- Session Configuration

EDD Use Sessions: Enabled Session: Enabled Session Name: PHPSESSID Cookie Path: / Save Path: /tmp Use Cookies: On Use Only Cookies: On

End System Info

pippinsplugins commented 10 years ago

Can you deactivate all other plugins then refresh the permalinks? Does that fix it? If so, reactivate the plugins one by one until it breaks.

parcolee commented 10 years ago

But the main point is that, all other plugins are the same, nothing modified in the whole wordpress system. And become 404 just caused by upgrading to EDD 2.1 only, everything in EDD run well just before the EDD upgrading.

pippinsplugins commented 10 years ago

Permalinks are exceptionally picky in WordPress. They can be broken even by plugins that don't modify them at all. A lot of times the issues is due to one plugin that is doing something incorrectly, but for whatever reason that doesn't cause a problem until another plugin is activated.

I've seen it happen so many times. Please deactivate all other plugins to test.

parcolee commented 10 years ago

Can you deactivate all other plugins then refresh the permalinks? Done, all other plugins deactivated except the EDD, and saved the permalinks config again.

Does that fix it? Nope, nothing changed, still all 404 not found, the same

pippinsplugins commented 10 years ago

Ok now test with the default Twenty Twelve theme active.

parcolee commented 10 years ago

Yup, the 2012 theme activated, still 404

pippinsplugins commented 10 years ago

Did you resave permalinks after changing the theme?

parcolee commented 10 years ago

Sure

pippinsplugins commented 10 years ago

Which permalink structure are you using?

parcolee commented 10 years ago

/%category%/%postname%/ of wordpress rewrites

pippinsplugins commented 10 years ago

Does it work with just postname?

parcolee commented 10 years ago

Nope

pippinsplugins commented 10 years ago

Do default permalinks work?

What about the other custom post types on your site, do they work?

parcolee commented 10 years ago

only the default /?p=123 (/?download=) one work, but why?

chriscct7 commented 10 years ago

Your hosting provider probably doesn't support apache rewrites

parcolee commented 10 years ago

Then can you tell me why my other wordpress rewrites work except yours?

pippinsplugins commented 10 years ago

Trying to figure that out.

This may sound crazy but please bare with me:

  1. Deactivate all plugins but EDD
  2. Activate the default Twenty Twelve theme
  3. Go to Settings > Permalinks and select the one you want
  4. Click Save Changes
  5. Click Save Changes again
  6. Now do they work?

If not, can you please tell me what is in your .htaccess file?

parcolee commented 10 years ago

Same way last nght I've tried with 5 times of clicking save changes already, never works.

here is my .htaccess file which written by Wordpress system by default:

AddHandler application/x-httpd-php54 .php XSendFile on

BEGIN WordPress

RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

pippinsplugins commented 10 years ago

Can you install EDD 2.0.4 for me to see if that resolves it? I can't think of anything that changed, but knowing whether reverting fixes it would help get us looking in the right place.

On Fri, Sep 5, 2014 at 9:53 AM, parcolee notifications@github.com wrote:

Same way last nght I've tried with 5 times of clicking save changes already, never works.

here is my .htaccess file which written by Wordpress system by default:

AddHandler application/x-httpd-php54 .php XSendFile on BEGIN WordPress

RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPress

— Reply to this email directly or view it on GitHub https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2573#issuecomment-54635106 .

parcolee commented 10 years ago

So where can I download the old one?

cklosowski commented 10 years ago

You can get to older versions of plugins on WordPress.org on the 'Developers' tab: http://wordpress.org/plugins/easy-digital-downloads/developers/

You'll want this .zip file specifically: http://downloads.wordpress.org/plugin/easy-digital-downloads.2.0.4.zip

parcolee commented 10 years ago

eeehhhhh, downgraded back to 2.0.4, but still 404.

I guess maybe there are something not right in the database convertion progress when upgrading to 2.1, that made some permanent malfunctions or failures?

parcolee commented 10 years ago

Just tested and even the new download item added with the old 2.0.4 also 404.

pippinsplugins commented 10 years ago

There are no changes made to the database by EDD that have any relation to permalinks.

On Saturday, September 6, 2014, parcolee notifications@github.com wrote:

eeehhhhh, downgraded back to 2.0.4, but still 404.

I guess maybe there are something not right in the database convertion progress when upgrading to 2.1, that made some permanent malfunctions or failures?

— Reply to this email directly or view it on GitHub https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2573#issuecomment-54707194 .

pippinsplugins commented 10 years ago

http://wordpress.org/plugins/easy-digital-downloads/developers/

On Fri, Sep 5, 2014 at 12:48 PM, parcolee notifications@github.com wrote:

So where can I download the old one?

— Reply to this email directly or view it on GitHub https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2573#issuecomment-54658173 .

parcolee commented 10 years ago

so...... any ideas would it be caused by?

pippinsplugins commented 10 years ago

Quick test.

I see you have WooCommerce installed. Do the permalinks work for WooCommerce?

parcolee commented 10 years ago

Just tested and, yup, they are all alright in WooCommerce

pippinsplugins commented 10 years ago

I'm about out of ideas. I'd be more than happy to log in directly to try and resolve it for you, but you'd need to signup for priority support for me to do that: https://easydigitaldownloads.com/support/pricing/

Let me know if that interests you.

evertiro commented 9 years ago

@pippinsplugins What's the status on this?

pippinsplugins commented 9 years ago

Closing as invalid.