When “Make Payment” Does Not Work


We periodically get people reporting that when they press the “make payment” button on the checkout page, nothing happens. This is a very serious error but unfortunately it has been very difficult for us to fix because it was just impossible to replicate on our end i.e. some of our dear users were coming across this error but however hard we tried, we could not cause the same error on our test servers.

The good news is that recently we have made progress towards figuring out why this particular problem may occur. So far, the main causes could be:

  1. The PDF invoice feature. As it turns out some web hosts out there do not by default support the way that DukaPress creates the PDF invoice and so this causes the “make payment” button not to work. Previously, this was very hard to solve as you typically had to talk to your web host. However, starting in DukaPress 2.1, you can simply turn off the PDF invoice feature to fix things. Nice, eh?
  2. Javascript errors. If there is a javascript error somewhere on your site, it may affect the functioning of the “make payment” button. The first place to look is your theme – try and run DukaPress using the default WordPress theme to confirm if it is your theme that is failing you. If that fails to nail the problem, try to deactivate all of your plugins except DukaPress and see if you get any positive results.

I hope someone, somewhere can find this helpful. 🙂

47 Responses

  1. sonofara says:

    Hi, i’ve setup the plugin over inquiry mode and the only error i get is

    Warning: Invalid argument supplied for foreach() in /plugins/dukapress/php/dp-cart.php on line 1095

    where as the line number 1095 has

    foreach ($products as $product)

    and i don’t even receive an email aswell
    so, i guess its related to email send but unable to fix it. please help!

  2. I had this problem, and I tried deactivating some plugins, among those one that mangles my CSS and Javascript to make them load faster.
    I think disabling those make it work.

  3. sonofara says:

    thanks for your suggestion, tried deactivating all the plugins but still have the same issue.

  4. sonofara says:

    as there is no fix for this issue “Warning: Invalid argument supplied for foreach() in wp-content/plugins/dukapress/php/dp-cart.php on line 1097” now i would like to switch to some other plugin but my question is how do i move the products to posts as i have uploaded hundreds of products in dukapress and cant use them after i uninstall the plugin. please help.

    • wham says:

      ‘m sorry that you are leaving.

      We’re honestly working on a fix. Also, I believe DukaPress 2.0 works okay? I know we have disappointed you, but if you wait a while we’ll have fixed all this. And 2.0 can serve you in the meantime, right?

      When you uninstall DukaPress, the products do not get deleted – they are still there but since the custom post type becomes unregistered, you do not see it anymore. This plugin can help you convert the DukaPress products to normal posts then they wll still be visible even when DukaPress is not active: http://wordpress.org/extend/plugins/convert-post-types/

      I am sorry to see you go and hope you stay.

      • sonofara says:

        thanks for your help over converting post type, it really worked. just want to inform you that the issue that i was facing with the plugin is something related to email which cause problem over godaddy hosting…anyways like i said im running out of time or else i would’ve waited for the fix, but i would still say “Dukapress Rocks!”

  5. craig says:

    HI have Dukapress on 2 sites. http://www.helenbauzon.com.au + http://www.globalgastricbandsolutions.com.au and I cannot get ‘make payment’ to work. I’ve checked with Hostgator hosting and are saying no errors there. Please help urgent!!!

  6. A says:

    I have had the same problem and now my check out page does not work either!

  7. Damien Rufus says:

    Ok, I have followed all links and read all post on fixing the issue of “make payment” button not working. I have disabled all plugins – still did not work. I called hostgator, everything is enabled (timthumbs, and the other fo thing) still does not work. Any suggestions or is there another plugin that supports alertpay?

  8. Damien Rufus says:

    Ok, so are there themes that you recommend for people to use? Maybe I will have to set up a wordperss install in another folder to accomplish this.

    • Kelvin says:

      Ideally it works with any theme and it is very rare to come across a case like this – it usually means there is a tiny javascript error somewhere on the theme that does not work.

      I would say that this is an isolated case and you can use any theme.

      You may also look at: http://www.madoido.com

  9. TTT says:

    I have the same kind of problem only mine is in the dukapress.php file on line 511. I have tried all of the solutions listed above but nothing works. I get the email and everything but when i visit the order log i get this error (Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/dukapress/dukapress.php on line 511) and the ordered products arent displayed. And it is not because of the theme i have tried it on four other themes that you recommend. Please help.

    • Kelvin says:

      Maybe that file is corrupted. Could you re-upload it (or, much better, use the WordPress plugin editor to copy all the code in your local copy of dukapress.php into the version on your site)

  10. i am having this same error, i can fix it by disabling the PDF. The only thing i dont understand is it was working but now it wont.

  11. Andrew says:

    Hey mate,
    Im currently using the theme TwentyTen and whenever i go onto a product page i am left with the following warning code at the bottom of the page.

    Warning: Missing argument 1 for dpsc_pnj_display_product_name(), called in …/twentyten/single.php on line 104 and defined in …dukapress/php/dp-products.php on
    line 278

    Now im not sure if this is the issue but my Make payment button is not working even when i change the theme.

  12. Andrew says:

    Hey mate,

    Found the issue, its was on my part, the error was caused from an extra line of code in single.php and the make payment issue was because the button was being rendered disabled due to freight not being calculated correctly/ item weight == 0 🙂


    • Steve Rush says:

      Awesome find, awesome find. This is my second install of DP. It’s solid as a rock in my opinion but it can be a bear to ‘dial in’.

      This one is on a godaddy account and it’s my first time on those hosts. My client hasn’t determined shipping and I had it checked anyway. Still testing in PP sandbox and I was worried. Your post saved my day.

  13. Andrew says:


    This is absolutely rediculous it still didnt work all scripts were returned to their original state, in case of any alterations plugins removed and yet it is still not working correctly the make payment button will not submit the form anywhere.

    Needing your assistance quickly,


    • Kelvin says:

      Hey Andrew. Sorry for the delayed response. Could you please share your URL with me and/or temp admin access to duka(at)dukapress.org? I can only do so much until i actually see it.

  14. Andrew says:

    Hey Kelvin not an issue, thankyou for your much appreciated assistance, i have accesed the db related to the dukapress system and have sucessfully implemented it into my custom calculator


    • Steve Rush says:

      Andrew, if you care to share what you may have done to the shipping in the DB I would be very interested. I am having difficulty figuring a method for our shipping.

  15. Declan says:

    We are having issues with the make a payment button also, it doesn’t do anything when you click on it, even if you leave the fields blank it wont tell us to input contact details etc.

    We have used it on other sites and it’s worked well, we are using wordpress rt12 theme and its been fighting us the whole way.

    We love the plugin and would really like to get it working on the site as we’ve invested a fair amount of time styling the product pages

    Im happy to send the login details so you can look at.

  16. Declan says:

    I really need a response or solution asap – Client is in need of a resolution tomorrow

    • Declan says:

      Found this error

      dukapress.js:88Uncaught TypeError: Object # has no method ‘livequery’
      jQuery(this).submit(function() {
      form_values = “ajax=true&”;
      form_values += jQuery(this).serialize();
      jQuery.post( dpsc_js.dpsc_url+’/index.php’, form_values, function(returned_data) {
      return false;

  17. PABben says:

    I’m also having the same problems. Deactivated pdf-invoice and cannot find any errors on page. I even tried with a fresh install 🙁

  18. Rob says:

    I seem to have the same issue, however choosing the default theme worked for me. Now I have to find out where things go wrong as there are no errors displayed…

    • Rob says:

      Oh forgot to mention the checkout looks very messy. Fields are not nicely lined up, even with the default wp theme!

      • Rob says:

        Spent a lot of time trying to find out what the problem is. I cannot understand that a button not works because of a theme. It seems like it only works with the twenty ten/eleven based themes. What is the reason of this? I don’t want to use these themes, because I don’t think they look good.

        Hope someone can help out, otherwise I should switch to a different shopping cart, which I don’t really want, because I spent enough time to get to know how this one works…

        • Kelvin says:

          I can confirm that it works in most themes and for those that it does not work with there is usually a javascript error/conflict. Unfortunately it is pretty much impossible for us to go through each and every WordPress theme to fix for them individually. We can only use standard WordPress development methodology and hope that theme authors do the same to avoid conflicts.

      • Kelvin says:

        But you can change this easily with a little bit of CSS, right? That’s how it is supposed to work by default. We want to have as little CSS as possible in the core plugin so that users have max. flexibility.

Leave a Reply

© 2018 DukaPress. All rights reserved.
Design By Madoido.