WordPress.org

Ready to get started?Download WordPress

Forums

Easy Digital Downloads
[resolved] Not Working - Checkout (cart) Is Always Empty? (46 posts)

  1. jeffm2008
    Member
    Posted 1 year ago #

    Hi,

    I am having trouble getting this to work...
    My cart is always empty no matter many items I add to it. It says it adds them, but when I go to check out, it's empty...and no checkout form is displayed...when I use the widget (which I really do not want to do on this site) it does add it to the cart..but when I go to checkout..it says your cart is empty...and the widget cart is now empty too.

    I've installed then reinstalled it, but now my pages do not get created anymore and my settings are saved somehwere, and they are still there when I reinstall it (PayPal info, etc). I've recreated the pages with the proper shortcodes, etc..still does the same thing.

    Is there a way to completely remove this plugin so I can start fresh?

    Are there any known issues with the "Atahualpa" theme running WP 3.4.2?

    I've installed it on another site running WP 3.4.1 with the "Simple Catch" theme and the checkout page works, but I get this error when I go to click the download link:

    "You do not have permission to download this file

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log."

    Anyway, this plugin seems to perfect for what I am looking for...I just can't get it to work. Thanks!

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

  2. Catch Themes
    Member
    Posted 1 year ago #

    Hi jeffm2008,

    Your question is about plugin Easy Digital Download. So, I think it's better to post this question in Plugin Forum.

    Yes, if they ask to add in some code to the theme then we might consider adding up in version update.

    Regards,
    Sakin

  3. The issue is most likely caused by your host not having SESSIONS fully configured. Please read through the first two pages of this forum thread. Another user had your same problem and we fixed it by changing a host config option.

  4. jeffm2008
    Member
    Posted 1 year ago #

    Thanks...

    Although it does work on my site with WP 3.4.1 with the"Simple Catch" theme and the checkout page works, but I get this error when I go to click the download link (both sites are hosted on startlogic.com)

    "You do not have permission to download this file

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log."

    However, it doesn't work at all on the site running atahualpa, with plugins:

    Akismet

    Facebook Button Plugin (disabled)

    Hello Dolly (disabled)

    Jetpack by WordPress.com

    Maintenance (disabled)

    Select Meteor Slides

    SEO Ultimate (disabled)

    I am just unclear on the php.ini fix..I do have acces to it..but the forum post isn't really clear on the fix...

    any help would be greatly apppreciated!

    Thank you!! :)

  5. There are two separate issues here. Let's fix the empty cart first.

    You need to set the session save path. Check out the PHP docs for that here.

    This might do the trick:

    session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));

  6. jeffm2008
    Member
    Posted 1 year ago #

    Thanks for the quick response...

    I am unsure exactly where to put it (below)... Sorry I don't mess with the php.ini often. Do I just replace: session.save_path = "/var/php_sessions" with the session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session')); ?

    I tried that and it didn't seem to do anything

    Thank you in advance!

    The file storage module creates files using mode 600 by default.
    ; You can change that by using
    ;
    ; session.save_path = "N;MODE;/path"
    ;
    ; where MODE is the octal representation of the mode. Note that this
    ; does not overwrite the process's umask.
    ; http://php.net/session.save-path
    session.save_path = "/var/php_sessions"

  7. jeffm2008
    Member
    Posted 1 year ago #

    I put session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));

    in the beginning of my wp-config.php file and it still doesn't work...

    was that right?

    Thanks

  8. jeffm2008
    Member
    Posted 1 year ago #

    I've gotten the cart to show up up on the checkout page by pointing the session.save path to the absolute path of the home directory..

    But I have still have multiple issues..

    I am able to check out via paypal, but it doesn't redirect me automatically back, I have to click the "return to..." link.

    Then when I am redirected i get a "You do not have permission to download this file" error and can not download the file.

    Also, I never receive the confirmation email with the download links.

    Thanks!

  9. OK good on the session!

    For the auto return, that is a setting in your PayPal account. Go to Profile > My Selling Tools.

    For the no permissions error, this is shown because the purchase hasn't been verified. To fix this, do two things:

    1. Go to PayPal > Profile > My Selling Tools > Instant Payment Notification and make sure it is enabled, and set your URL to:

    http://yoursite.com/?edd-listener=IPN

    This is usually not needed, but some sites need it.

    2. Go to WordPress > Downloads > Settings > Payments and check the box for "Disable IPN Verification.

  10. royhutton
    Member
    Posted 1 year ago #

    I also have this problem, i did get it all working before, so it is a good plugin just, nothing goes to my cart now. I have gone through everything and using short codes did work before, but not now!? Do i just need a [downloads] and [download_cart] for things to work? What are the default pages/codes that you need?
    Any help would be greatly appreciated.

    p.s am i right in saying .m4r extension files are not accepted?

  11. @royhutton When you say that items aren't going to the cart, do you mean that you add them and then go to the checkout page, and the cart is empty?

    Correct, m4r files are not currently accepted, but we can add them.

  12. royhutton
    Member
    Posted 1 year ago #

    Yes exactly. I am unsure of the default shortcodes needed whether i am missing one, i think i have just [downloads] and [download_cart], in the settings i have also selected checkout with the download cart short code in it. I moved my site across to my own ipage hosting from a blue host account. I do have a custom theme (red light) but even when i reverted to default it is still not having it.

    Thanks for getting back to me. I did have it working before so i know it is a great plug in, so, why is is not pushing the download through to the cart?

  13. The short codes you're using will work fine.

    Do you have a lice URL you can show me?

  14. royhutton
    Member
    Posted 1 year ago #

    http://www.hypnoticringtones.com/

    I have taken my template off and it is just the basic one for now . try and purchase a download - there is nothing in the cart. :/

  15. royhutton
    Member
    Posted 1 year ago #

    by lice did you mean slice? - sorry live url yes, above.

  16. Can you go to Downloads > Settings > Misc and check the box for Disable Ajax to see if that makes items stay in the cart?

    Also, can you get access to your server's PHP error logs?

  17. royhutton
    Member
    Posted 1 year ago #

    I got a notification once ajax was diabsled saying "you have now successfully downloaded the item to your shopping cart" Checkout

    No joy when you click the link still i will search for php error logs now brb

  18. royhutton
    Member
    Posted 1 year ago #

    im reading up on how i can get these error logs, searching around mySQL.... Any pointers, will keep reading.

  19. royhutton
    Member
    Posted 1 year ago #

    hey, I edited WP_DEBUG to TRUE in wp config.

    Then i got the debug info, am i close?

    here is what it said on site:

    Notice: Use of undefined constant AIOFAVICON_TEXTDOMAIN - assumed 'AIOFAVICON_TEXTDOMAIN' in /hermes/bosweb/web207/b2078/ipg.jamesgolbycom/hypnoticringtones/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php on line 37 Warning: session_start(): open(/var/php_sessions/sess_e1c4e8cfc749dd33d4b6d37541c8e90d, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web207/b2078/ipg.jamesgolbycom/hypnoticringtones/wp-includes/plugin.php on line 403 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb/web207/b2078/ipg.jamesgolbycom/hypnoticringtones/wp-content/plugins/all-in-one-favicon/all-in-one-favicon.php:37) in /hermes/bosweb/web207/b2078/ipg.jamesgolbycom/hypnoticringtones/wp-includes/plugin.php on line 403

  20. royhutton
    Member
    Posted 1 year ago #

    That looks like its to do with my favicon generator, this seemed more relevant it appeared at the bottom once i switched to an original template:

    Warning: Unknown: open(/var/php_sessions/sess_e1c4e8cfc749dd33d4b6d37541c8e90d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions) in Unknown on line 0

    This points towards a problem the user above had. I will try to find my php.ini file and wait to hear back

  21. Does it work if you deactivate the favicon plugin?

    It sounds like the sessions are not fully enabled on your host. If you are able to locate your php.ini file, I can help you figure out what to add.

  22. royhutton
    Member
    Posted 1 year ago #

    Okay. I did try it deactivated and no joy. Will totally reinstall WordPress first (bit annoying but only had some custom artwork on my template so nothing uploaded yet not too much hassle.

    I will get back to you asap if this is not a solution after i find the php.ini file.

    thanks a lot for your support, i am adamant on using this plugin.

    Oh one thing - How is it that i will be able to feature .m4r files as downloadable products? This did seem to work before but not now?

  23. Ok let me know.

    I've added support for m4r files to the next version, which should be released within a few days.

  24. donnette
    Member
    Posted 1 year ago #

    Hi Pippin

    I have checked the Paypal settings, and Ajax, disabled and enabled, and nothing changes.

    I was keen to try and add the "session save" into my wp-config.php like you'd suggested to RoyHutton, but clearly I'm in the shallow end lol.. I read his posts and none of this makes any sense to me at all... Any event, for the life of my I don't know where to find the wp-config.php, or if I actually do find it how to edit it. So I am none the wiser :(

    Thanks
    Donnette
    http://staidenshomeschool.com/blogs/digital-downloads/

    Oh on that note, I might have a look at my webhosting control panel.. it might be there...

  25. Donnette,

    You will almost definitely have to contact your hosting company to get sessions enabled. If you contact them and simply ask to get "PHP Sessions" enabled, they should be able to do it.

  26. royhutton
    Member
    Posted 1 year ago #

    sorry to say it but this is a lot of hassle when there are quite a few download plugins. I really like pippins plug in but i have had to go with another option.

    Thanks and good luck with the new release.

  27. Sorry to hear that.

    We're working on removing the requirements for sessions, but it's not quite ready yet.

  28. lunalilo
    Member
    Posted 1 year ago #

    My issue was the shortcode was in the checkout. I had the same problem when I moved from WP-ecommerce, to Pippin, shortcode was wrong and now working! Pippin's the man.

    I know this was kinda covered but always great to triple check.

  29. Glad to hear it!

  30. nonstop99
    Member
    Posted 1 year ago #

    Same issue here too. Damn please fix that php session thing.

    When I am logged into as an admin and I "ADD TO CART' an item as a test. The checkout page shows the item correctly. When I log out as an admin and try and add the item. It says Item added then I CHECKOUT and the checkout page is empty showing NOTHING IN CART.

    I enabled php.ini in my hostgator account. But tons of settings came up. I dont know what to change. I dont even know if im doing it right

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic