DashPayments for WooCommerce Released

nmarley

Active Member
Jun 28, 2014
366
424
133
This is officially released now, and the Github repo is here:

https://github.com/nmarley/dashpayments-for-woocommerce

For non-developers (the majority of plugin users), the pre-packaged zip file can be found here (please make sure your site meets the technical requirements):

https://github.com/nmarley/dashpayments-for-woocommerce/releases/latest

As with all software, there will be bugs. Please file any/all bugs and/or feature requests at the Github URL above. I'll expect that some things may not work as planned, and try and respond as quickly as possible to any support requests.

This plugin is pretty straightforward to setup if you've read the documentation or watched any of the setup videos (I will link to them in the README). Please let me know if you have any questions/concerns.

There are probably things I've left out also -- just reply here (preferable) or send me a note (less preferable) and I'll get back ASAP.

I appreciate the community support in this effort. Thank you for the opportunity to serve the Dash community.

And lastly, to all the current and would-be online merchants: Please get out there and start earning some Dash. :)

(edit: Updated ZIP file link to always point to the latest release.)
 
Last edited by a moderator:

med4u

New Member
Feb 9, 2016
7
8
3
France, Paris
Thank you for this huge contribution!

I had an issue on my ubuntu server :
After installing woocommerce and the DASH plugin and both activated on wordpress,
I was not able to open the "settings" in woocommerce. It didn't show nothing, not even an error... White screen.:sad:

When I did desactivate the DASH plugin i was able to navigate in woocommerce's settings, but no dash payment for sure.
To solve this I had to install this dependency on my server : php5-gmp
Code:
 apt-get install php5-gmp
Restart Apache2, and it works well!!! Thank you!:)

Maybe adding this (and other dependency issues) to the install instruction's might be good for those who run an ubuntu-based web server?
Waiting for the InstantX integration ;)
All this will be determinant for DASH adoption.

Thank you mister Marley, good work!
 

Solarminer

Well-known Member
Apr 4, 2015
762
921
163
nmarley Got a question in Dash Chat Slack from Creativeflow.

Says website crashed after installing plugin. Error was on line 243 unexpected "{".

I suggested running apt-get install php5-gmp above. Maybe you can jump on #help and provide advice?
 
  • Like
Reactions: TheDashGuy

nmarley

Active Member
Jun 28, 2014
366
424
133
Thank you for this huge contribution!

I had an issue on my ubuntu server :
After installing woocommerce and the DASH plugin and both activated on wordpress,
I was not able to open the "settings" in woocommerce. It didn't show nothing, not even an error... White screen.:sad:

When I did desactivate the DASH plugin i was able to navigate in woocommerce's settings, but no dash payment for sure.
To solve this I had to install this dependency on my server : php5-gmp
Code:
 apt-get install php5-gmp
Restart Apache2, and it works well!!! Thank you!:)

Maybe adding this (and other dependency issues) to the install instruction's might be good for those who run an ubuntu-based web server?
Waiting for the InstantX integration ;)
All this will be determinant for DASH adoption.

Thank you mister Marley, good work!
Thanks! I actually thought I'd taken care of that (show a warning for non-installed dependencies without breaking) , but I'll see why this is happening and get a fix out ASAP.
 

nmarley

Active Member
Jun 28, 2014
366
424
133
nmarley Got a question in Dash Chat Slack from Creativeflow.

Says website crashed after installing plugin. Error was on line 243 unexpected "{".

I suggested running apt-get install php5-gmp above. Maybe you can jump on #help and provide advice?
Yep, thanks, will do.
 
  • Like
Reactions: Solarminer
B

buster

Guest
I'm happy that you got funded nmarley you deserve it! Ill be testing the plugin this weekend (hopefully). Will report back any issues I encounter, hopefully it all goes smooth though.
 
  • Like
Reactions: nmarley and studioz

Miner237

Well-known Member
Foundation Member
May 28, 2014
509
223
213
got this loaded up in just a few minutes no crashes WP 4.4, i'm looking forward to voting for the next budget request for maintenance and improvements on this. Thanks nmarley
 

nmarley

Active Member
Jun 28, 2014
366
424
133
Thanks! I actually thought I'd taken care of that (show a warning for non-installed dependencies without breaking) , but I'll see why this is happening and get a fix out ASAP.
Ok, fix bugfix release. Already at v0.0.2! This will actually warn instead of breaking if the GMP extension is not installed. It's actually in the documentation, but who reads that stuff, right? ;)

This link should go to the latest release:

https://github.com/nmarley/dashpayments-for-woocommerce/releases/latest
 
B

buster

Guest
hey nmarley Im doing some testing on a fake website. I am trying to do all this through a cpanel because a lot of people use shared hosting and don't have full access to servers (with terminal commands, etc). So I feel most errors are going to come from people using a host like hostgator, fatcow, etc. I could probably have this up and running in no time on a real server.

Anyways I've got an open ticket with fatcow at the moment. I'm getting this error message right now.
DashPayments for WooCommerce: Required extension(s) not loaded/enabled. Please enable 'gmp' PHP extension(s) on your WordPress server.

Which is weird because I've enabled the gmp PHP extension and all other required extensions.
* PHP 5.5+ with valid extensions:
- gmp
- bcmath
- gd
- mcrypt
- openssl
- curl
- json

Anyways if there is someone who is privy to cpanel php.ini files and how they work exactly that would like to help me please let me know.
 

nmarley

Active Member
Jun 28, 2014
366
424
133
hey nmarley Im doing some testing on a fake website. I am trying to do all this through a cpanel because a lot of people use shared hosting and don't have full access to servers (with terminal commands, etc). So I feel most errors are going to come from people using a host like hostgator, fatcow, etc. I could probably have this up and running in no time on a real server.

Anyways I've got an open ticket with fatcow at the moment. I'm getting this error message right now.
DashPayments for WooCommerce: Required extension(s) not loaded/enabled. Please enable 'gmp' PHP extension(s) on your WordPress server.

Which is weird because I've enabled the gmp PHP extension and all other required extensions.
* PHP 5.5+ with valid extensions:
- gmp
- bcmath
- gd
- mcrypt
- openssl
- curl
- json

Anyways if there is someone who is privy to cpanel php.ini files and how they work exactly that would like to help me please let me know.
Yeah, I tried to make it as straightforward as possible for the general public to use. You might see about re-starting PHP after you've enabled the GMP extension.

I really don't have any idea about cpanel, sorry. I last used it 7-8 years ago.
 
B

buster

Guest
Yeah, I tried to make it as straightforward as possible for the general public to use. You might see about re-starting PHP after you've enabled the GMP extension.

I really don't have any idea about cpanel, sorry. I last used it 7-8 years ago.
Hey no problem I'll figure it out didn't really put too much time into it was busy with other things. I've got an open ticket with my Hosting account I'll see what they say. I was also able to help creative flow update is PHP version over in Slack. So his store should be running your plug-in, he asked me not to share though as its still under construction.
 

nmarley

Active Member
Jun 28, 2014
366
424
133
Hey no problem I'll figure it out didn't really put too much time into it was busy with other things. I've got an open ticket with my Hosting account I'll see what they say. I was also able to help creative flow update is PHP version over in Slack. So his store should be running your plug-in, he asked me not to share though as its still under construction.
That's awesome! Thanks for helping him out.
 
  • Like
Reactions: buster
B

buster

Guest
Hey nmarley

I spoke with host party they say that the GMP php extension is enabled to contact the plugin vendor.

In cpanel there is the php.ini file, this is where you enable/disable scripts. I have confirmed that gmp is enabled. For some reason I'm still getting the error message?

"DashPayments for WooCommerce: Required extension(s) not loaded/enabled. Please enable 'gmp' PHP extension(s) on your WordPress server."

Could the error message be an error?
 

Balych

Active Member
Sep 12, 2015
365
211
113
Dash Address
Xba1ychX7CjgbRrCKE1LjHjT3jLUhcexs5
Upload something.php to server:
PHP:
<?php
print_r(extension_loaded("gmp"));
?>
and go to http://yourserver/something.php, if it return 1 - extension is loader, if not - ask support to check their settings again.
 

nmarley

Active Member
Jun 28, 2014
366
424
133
Hey nmarley

I spoke with host party they say that the GMP php extension is enabled to contact the plugin vendor.

In cpanel there is the php.ini file, this is where you enable/disable scripts. I have confirmed that gmp is enabled. For some reason I'm still getting the error message?

"DashPayments for WooCommerce: Required extension(s) not loaded/enabled. Please enable 'gmp' PHP extension(s) on your WordPress server."

Could the error message be an error?
Hey Bill, no problem, let's take a look.

Can you upload a file in your WordPress root with only these contents and then visit it with your browser?

Code:
<?php phpinfo(); ?>
That should help debug things. The code actually uses PHP's own checks, this line here is actually straight outta the plugin:

Code:
if (!extension_loaded( $ext )) {
It basically says "if NOT extension_loaded" and then passes in all the required extensions, in this case "gmp". That's the PHP code itself saying that it's not loaded. Anyway, that's beside the point, if you can upload the file above into your WordPress root (call it "info.php" or whatever), then try and visit that URL and we can see the info and if it's really loaded or not, also the versions of everything. Very useful for debugging any PHP server issues actually.

Let me know and we'll see what it says.
 
  • Like
Reactions: buster
B

buster

Guest
Hey Bill, no problem, let's take a look.

Can you upload a file in your WordPress root with only these contents and then visit it with your browser?

Code:
<?php phpinfo(); ?>
That should help debug things. The code actually uses PHP's own checks, this line here is actually straight outta the plugin:

Code:
if (!extension_loaded( $ext )) {
It basically says "if NOT extension_loaded" and then passes in all the required extensions, in this case "gmp". That's the PHP code itself saying that it's not loaded. Anyway, that's beside the point, if you can upload the file above into your WordPress root (call it "info.php" or whatever), then try and visit that URL and we can see the info and if it's really loaded or not, also the versions of everything. Very useful for debugging any PHP server issues actually.

Let me know and we'll see what it says.
So I just got this message from support:
I'm wondering, if a host does not support gmp extension then this woocommerce plugin will not work on that host?

Anyways Ill try another host I have an account with to see if they support gmp. A lot of people use a hosting company and not a VPS, so hopefully the other companies out there support gmp.

Hello,

I apologize for providing you the incorrect information earlier. Unfortunately, we don't have gmp extension enabled on our web servers and it won't be enabled.

However, the gmp extension is enabled on our VPS servers. If you are interested in VPS you could use one of our sister companies dedicated to VPS - IPOWER. You can refer the following URL http://www.ipower.com/

If you have any further questions, please update the Support Console.

Sincerely,

Priyashree S
Technical Specialist

I did what you asked, went ahead and sent you a personal message with link. Just fyi, the reason I am doing this is so I can help others in the future who are looking to set this thing up. This will save you time in the long run because I will be able to help people instead of you helping people all the time. It's a win win for both of us, so I would like to figure this out even if it is something so simple and easy.
 
Last edited:

nmarley

Active Member
Jun 28, 2014
366
424
133
This is what it looks like if gmp support is enabled:

http://imgur.com/EH35Sb6

I would think most hosts would have things like the gmp extension enabled. I'm actually really surprised they don't, and don't have plans to do so. This is required for the math used in the ECC (elliptic curve cryptography) library.
 
  • Like
Reactions: buster

bluebit

Active Member
Jun 4, 2015
191
194
103
I get an error when I try to activate the plugin.

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home3/~~~~~~this part is private :) ~~~~~~~~~~~~~~~~/wp-content/plugins/dashpay-woocommerce/includes/class-dp-address-factory.php on line 9