latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Nicolas

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To


My Latest Replies (From Various Topics)

Viewing 21 replies - 1 through 21 (of 21 total)
Author Replies
Author Replies
Posted: Monday Jan 21st, 2013 at 4:01 am #38571
Nicolas
Username: nicolassacre

Thank you for your reply.

I tested already the rename of s2-hacks before posting my first post and this solution doesn’t work. The add of “” doesn’t work too.

Any other idea?

Posted: Friday Jan 18th, 2013 at 3:37 am #38011
Nicolas
Username: nicolassacre

This is my s2-hacks.php.

<!--[if !IE]>
<style>
div.s2member-pro-paypal-form-description-div
   {
      font-size: 140% !important;
      font-family: "HelveticaNeue", "Helvetica Neue", Arial, sans-serif !important;
   }
.s2member-pro-paypal-form
	{
		line-height: 0.5em !important;
	}
.s2member-pro-paypal-form p
	{
		margin : 0 0 10px 0;
	}
.s2member-pro-paypal-form-response-div	
	{
		line-height: 1.5em !important;
	}	
.ws-plugin--s2member-pro-login-widget-form
	{
		margin: 0 0 0 0;
	}
.ws-plugin--s2member-pro-login-widget-form br
	{
		display: none;
	}	
</style>
<![endif]-->


<?php

add_action ("ws_plugin__s2member_after_loaded", "remove_s2_pro_css");
function remove_s2_pro_css ()
    {
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");
    }	
	
?>
Posted: Wednesday Jan 16th, 2013 at 10:41 am #37741
Nicolas
Username: nicolassacre

Following my test, it is the file s2-hacks.php in mu-plugin/ that block the access to wp-admin.

I found this link: http://www.s2member.com/forums/topic/remove-css-and-optimize-js/ but i don’t seem to be working for me.

In fact, I have my operational website on server A (provider A). I would like to install same site on server B (provider B) for testing. Website A (provider A) and wp-admin are working good, website B is ok (missing some menu) but wp-admin (provider B) isn’t working…If I remove s2-hacks, wp-admin is reacheable.

What’s the solution?

My s2members version is v120703.

Posted: Tuesday Nov 27th, 2012 at 3:34 am #32667
Nicolas
Username: nicolassacre

Hello,

Thank you for your help. I did it (using the tag [modify=”1″]) and the upgrade works well but I am unable to set a null period. The [ra] shortcode must be minimum 1, is it true ? So it is impossible for me to upgrade the customer subscriptions, maintaining their [end of time] unchanged ?

Sincerely,
Guillaume

  • This reply was modified 4 years, 1 month ago by  Nicolas.
Posted: Monday Nov 26th, 2012 at 5:32 am #32568
Nicolas
Username: nicolassacre

Hello,

Thank you for your answer.
Where can I find a good documentation to use the initial/trial functionality ?

Sincerely,
Guillaume

Posted: Wednesday Jul 4th, 2012 at 10:55 am #18300
Nicolas
Username: nicolassacre

Found ! in the file :

wp-includes/class-http.php 

line 1009 we added :

curl_setopt($handle, CURLOPT_SSLVERSION, 3);  

and it solved the problem.

Thank you for you help in this tricky situation.

Sincerely

Posted: Wednesday Jul 4th, 2012 at 10:01 am #18295
Nicolas
Username: nicolassacre

Our hosting company send us a message about a trouble with curl ssl version number on their side, telling us to add the php code line :

curl_setopt($ch, CURLOPT_SSLVERSION, 3);  

in the file

modules/paypal/validation.php  

(which doesn’t exists) while they try to solve the problem.

As the file doesn’t exists in wordpress nor in s2member, could you tell us where to add that line, or modify the wordpress or s2member configuration to take it into account ?

Sincerely

Posted: Wednesday Jul 4th, 2012 at 5:44 am #18254
Nicolas
Username: nicolassacre

Hi,

We ear that our s2member pro licence is working with only one domain. We installed an integration/test version of our website on a sub domain of our main domain, is it possible that s2member pro was then associated with the subdomain, preventing the main domain to work correctly (making transaction with paypal) ? Is there an automatic process on your side ? Could you check our domain was not “banned” ?

An other clue is that the form proceeded correctly four times when modifiying the paypal configuration, but never twice successively with the same configuration. We then thought it was a delay problem on the paypal website then waited for 5 minutes between each configuration change without any difference. Everything happens as if the change itself allowed to succeed, but only once. Very strange…

  • This reply was modified 4 years, 6 months ago by  Nicolas.
Posted: Wednesday Jul 4th, 2012 at 4:34 am #18250
Nicolas
Username: nicolassacre

Hi Jason,

Thank you for your answer. Unfortunately that still don’t solve our problem.

We checked everything:
– allow_url_fopen is enabled
– https url are taken into account
– SSL works

I also tried to include the php file for the test

<?php
ini_set("display_errors", true);
ini_set("error_reporting", E_ALL);
echo file_get_contents("https://www.paypal.com/");
?>

But nothing appears. Just a blank page. (Not the result expected I suppose)

I will continue my research. But it’s strange that your test work with simple http url and NOT https. There got to be something wrong here. But what?
If you have something new/any idea just let me know.

  • This reply was modified 4 years, 6 months ago by  Nicolas.
Posted: Tuesday Jul 3rd, 2012 at 7:53 am #18183
Nicolas
Username: nicolassacre

Hello,

Four weekdays without any s2member support !

We need the error returned by the paypal API, without that it’s very difficult to debug. We plan to leave s2member if we don’t receive help…

Sincerely

Posted: Tuesday Jul 3rd, 2012 at 5:39 am #18147
Nicolas
Username: nicolassacre

Hi,

I also felt on this post & this one

I tried both tools to debug:
– The Server Check Tool return no error. Everything was Ok.
– But for the test with the 3 php files to test cURL. None of them gave me results. Always a blank page.

Why?
Thanks in advance.

Posted: Monday Jul 2nd, 2012 at 7:51 am #18083
Nicolas
Username: nicolassacre

The flow works with paypal sandbox mode…

I forgot to mention the flow worked perfectly until june 20 and then the error appears without any modification on our side.

It’s quite difficult to understand the problem without the original paypal API error message.

Any idea of the problem or a way to get the original paypal error message ?

  • This reply was modified 4 years, 6 months ago by  Nicolas.
  • This reply was modified 4 years, 6 months ago by  Nicolas.
Posted: Monday Jul 2nd, 2012 at 7:28 am #18080
Nicolas
Username: nicolassacre

I found the line sending the error, it is in the method “paypal_api_response” of the file wp-content/plugins/s2member/includes/classes/paypal-utilities.inc.php (line 189).

It seems the paypal API doesn’t send back a success code NOR a known error code :

public static function paypal_api_response($post_vars = FALSE)
{
  [...]

if(!$response["ACK"] || !preg_match("/^(Success|SuccessWithWarning)$/i", $response["ACK"]))
{
	if(strlen($response["L_ERRORCODE0"]) || $response["L_SHORTMESSAGE0"] || $response["L_LONGMESSAGE0"])
		/* translators: Exclude `%2$s` and `%3$s`. These are English details returned by PayPal®. Replace `%2$s` and `%3$s` with: `Unable to process, please try again`, or something to that affect. Or, if you prefer, you could Filter ``$response["__error"]`` with `ws_plugin__s2member_paypal_api_response`. */
		$response["__error"] = sprintf(_x('Error #%1$s. %2$s. %3$s.', "s2member-front", "s2member"), $response["L_ERRORCODE0"], rtrim($response["L_SHORTMESSAGE0"], "."), rtrim($response["L_LONGMESSAGE0"], "."));
	/**/
	else /* Else, generate an error messsage - so something is reported back to the Customer. */
		$response["__error"] = _x("Error. Please contact Support for assistance.", "s2member-front", "s2member");
}

Any idea ?

  • This reply was modified 4 years, 6 months ago by  Nicolas.
Posted: Monday Jul 2nd, 2012 at 6:02 am #18070
Nicolas
Username: nicolassacre

Hi,

s2member and s2member pro have been manually updated to v120622 and the problem is still there (we downloaded the zip folder of s2member and s2member pro and replaced the original ones). We tried with USD currency but it doens’t change anything. In the log folder there is only one file modified (checking the date), which is paypal-api.log and the only related message is :

-------- Output string/vars: ( Mon Jul 2, 2012 9:09:01 am UTC ) --------

array (
  '__error' => 'Error. Please contact Support for assistance.',

Any idea ?

  • This reply was modified 4 years, 6 months ago by  Nicolas.
Posted: Tuesday Jun 26th, 2012 at 10:46 am #17547
Nicolas
Username: nicolassacre

Hi. It’s me again.

Unfortunately installing update didn’t solve the problem (-_-)
I also post a new topic on the s2member forum : here

I still got that error coming from I don’t know where…
Each time I click checkout: “Error. Please contact support for assistance”.

If somebody got an idea it is welcome.

Posted: Thursday Apr 26th, 2012 at 11:45 am #11952
Nicolas
Username: nicolassacre

Hi Raam,

Thank you for the answer, I’m happy to know I did well…

Do you plan to add the %%eot%% variable in the futur or is there an impossibility or a contradiction to give it by the API ? If you plan to add it I’ll be back in a few months…

Regards,
Guillaume

Posted: Wednesday Apr 25th, 2012 at 4:07 am #11808
Nicolas
Username: nicolassacre

Hello,

Thank you for your answer.

We don’t allow recurrent payment. Currently I get the EOT value directly from the database when the payment is done, adding personal code in the “paypal-checkout-in.inc.php” script. I use the table “wp_usermeta”, column “meta_key” with value “wp_s2member_auto_eot_time” for the current user_id and it works fine.

To be safe beside s2member future upgrades I would like to get this value without going directly to the database. I plan also to replace that code insertion (in “paypal-checkout-in.inc.php”) by an API Notification in the future, but I didn’t see any %%eot%% variable available in the documentation.

How to acquire the post-paid EOT time using the API Notification standard s2member mecanism ?

Sincerely,
Guillaume

Posted: Tuesday Apr 24th, 2012 at 2:49 am #11658
Nicolas
Username: nicolassacre

I think we are using the subscription method because the IPN configuration has been made and
the user is created in wordpress before going to paypal.

Then I guess I need a trigger when coming back from paypal, when the new EOT has been calculated ?

Posted: Monday Apr 23rd, 2012 at 11:33 am #11604
Nicolas
Username: nicolassacre

Hello,

Thank you for your answer.

I still get an empty value for $eot = get_user_field (“s2member_auto_eot_time”)
when I add a require to the “wp-load.php” file.

But I think I’m taking a too complex way for my purpose because I simply need to catch a post paid event and acquire the new automatically calculated End Of Term value. I guess I’m not the first needing that…

I think the API “Payment notifications” could be the best solution for me, but in the availables variables in the [s2Member > API / Notifications > Payment Notifications] section I don’t see any %%EOT%% variable.

How to get that value ?

Sincerely

Posted: Thursday Apr 19th, 2012 at 4:51 am #11207
Nicolas
Username: nicolassacre

Thank you for your answer.

When you say “to include WP to your script” do you think of an include() instruction ? How to use the wp api outside of wordpress scripts ?

Sincerely

Posted: Wednesday Apr 18th, 2012 at 9:00 am #11107
Nicolas
Username: nicolassacre

Thank you for your answer.

Yes the user is logged, he has a current subscription and he has a EOT time field filled with a date.

When I use the get_user_field (“s2member_auto_eot_time”) method in a wordpress page (using php tags) it works well but when I use it in a paypal module php script I’m not able to get the value (but no error)). Do I have to put a require() or include() to have access to the the get_user_field() method ?

I use the instruction below and the shown result is “No value for eot”:

if ($s2member_auto_eot_time = get_user_field (“s2member_auto_eot_time”) )
{
echo “EOT : “.date(“F j, Y”, $s2member_auto_eot_time).””;
}
else
{
echo “No value for eot”;
}

Viewing 21 replies - 1 through 21 (of 21 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.