pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev_training2012-03-24 08:49 am
Entry tags:

Question thread #6

It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: DW Code on my server

[staff profile] denise 2012-04-30 06:17 pm (UTC)(link)
I've pointed [staff profile] mark in this direction in case he has the time to ask, but, hrm. I'm wondering if PayPal and GC support might've broken sometime in the last two years (since we were forced to move away from both of them and to a merchant account + payment gateway type setup). Are there any errors in the Apache logs?
squidgiepdx: (Default)

Re: DW Code on my server

[personal profile] squidgiepdx 2012-04-30 06:25 pm (UTC)(link)
Nope, that's the frustrating thing... No errors in my apache logs at all, which I'm totally used to with other packages. In the 18 years I've been webhosting, I'm used to doing at least some hacks to get things to work, but this is one of the only times I've been stumped!

If the code's been migrated away from PayPal and GCO, then that's cool - I can appreciate why it wouldn't work (I may just add a line in the "Install DW from Scratch on your own server" page that indicates this so people know! ::grin::).
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: DW Code on my server

[staff profile] denise 2012-04-30 06:30 pm (UTC)(link)
Hmmmm. There really should be something in the Apache logs at the very least!

*ponder* Are you sure you've got your own API key in the PayPal section of the configs? Are you sure you've got the Google Checkout modules installed? If you put some basic debug statements into the pages, do they print into the logs? *tries to think of what else might be useful debug steps*
squidgiepdx: (Default)

Re: DW Code on my server

[personal profile] squidgiepdx 2012-04-30 06:46 pm (UTC)(link)
Well, I *didn't* have my own API key (I've been doing this for so long for free, I didn't realize the PayPal config needed a custom username, password, etc associated with a PayPal API, not mine ::eep::), but I plugged everything in and still nothing on the PayPal.

Yep, on the Google Checkout; I doublechecked all of those, including all of the mods that had to be done.

I'll be adding debug to the pages - if you can point me in the right direction for that command set, etc. Sorry to be such a noobie, but like I said, I'm more of a hack than a real programmer. :)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: DW Code on my server

[staff profile] denise 2012-04-30 06:50 pm (UTC)(link)
I would start by putting stuff like "warn "Cart.pm, line 10";" or whatever into various files in htdocs/shop/* and cgi-bin/DW/Shop/* and see what appears in the logs. That might help you figure out more about where the errors are happening and where things are dying, which can help you narrow down the spot to look.
squidgiepdx: (Default)

Re: DW Code on my server

[personal profile] squidgiepdx 2012-04-30 06:51 pm (UTC)(link)
Awesome... Thank you for everything!
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: DW Code on my server

[staff profile] denise 2012-04-30 06:56 pm (UTC)(link)
OH. You know, I just had a thought.

Are you running the payments workers? I don't know if that would cause the problems you're seeing, but it would definitely cause an issue with payments not being properly applied. It would be bin/worker/paidstatus and bin/worker/shop-creditcard-charge (although that might only be for the newer version of things with the direct credit card charges instead of going through PayPal).
squidgiepdx: (Default)

Re: DW Code on my server

[personal profile] squidgiepdx 2012-04-30 07:27 pm (UTC)(link)
I'm running all the workers, yes. I just decided to put the workers in debug and see if it gives me any hints as well.
squidgiepdx: (Default)

Re: DW Code on my server

[personal profile] squidgiepdx 2012-05-01 02:33 am (UTC)(link)
I actually just commented out everything except the section for check/money orders, changed some wording around, and on the final "check out" page, added some "buy it now" buttons that I created on PayPal. I may still come back and try and figure this out later, though... Now my last hurtle seems to be virtual gifts. Setting up MogileFS. Wish me luck!

And thank you for everything!