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.

Home Forums Marko

About: Marko

Software Engineer


Topics I'm Subscribed To

Viewing 6 topics - 1 through 6 (of 6 total)
Topic Count Last Reply
success attribute not working

By:  Marko in: Community Forum

voices: 2
replies: 4

4 years ago  Cristián Lávaque

PayPal Pro Form email confirmation

By:  Marko in: Community Forum

voices: 2
replies: 4

4 years, 2 months ago  Cristián Lávaque

MailChimp Integration Issue

By:  Marko in: Community Forum

voices: 2
replies: 4

4 years, 2 months ago  Cristián Lávaque

PayPal Pro Free Registration Form issue

By:  Marko in: Community Forum

voices: 2
replies: 3

4 years, 2 months ago  Eduan

PayPal completed browser message

By:  Marko in: Community Forum

voices: 3
replies: 9

4 years, 7 months ago  Cristián Lávaque

Viewing 6 topics - 1 through 6 (of 6 total)

Topics I've Started

Viewing 6 topics - 1 through 6 (of 6 total)
Topic Count Last Reply
success attribute not working

By:  Marko in: Community Forum

voices: 2
replies: 4

4 years ago  Cristián Lávaque

PayPal Pro Form email confirmation

By:  Marko in: Community Forum

voices: 2
replies: 4

4 years, 2 months ago  Cristián Lávaque

MailChimp Integration Issue

By:  Marko in: Community Forum

voices: 2
replies: 4

4 years, 2 months ago  Cristián Lávaque

PayPal Pro Free Registration Form issue

By:  Marko in: Community Forum

voices: 2
replies: 3

4 years, 2 months ago  Eduan

PayPal completed browser message

By:  Marko in: Community Forum

voices: 3
replies: 9

4 years, 7 months ago  Cristián Lávaque

Viewing 6 topics - 1 through 6 (of 6 total)

My Latest Replies (From Various Topics)

Viewing 13 replies - 1 through 13 (of 13 total)
Author Replies
Author Replies
Posted: Monday Dec 17th, 2012 at 7:08 am #34829
Marko
Username: mtomic

And thanks Cristián for pointing me in the right direction :-)

Posted: Monday Dec 17th, 2012 at 7:07 am #34828
Marko
Username: mtomic

I figured it out.

It wasn’t a plugin conflict, it wasn’t a theme conflict, it wasn’t mu-plugins. It was the APC on the server. I tried adjusting apc.mmap_file_mask, apc.shm_size values in apc.ini, but nothing worked.

I always knew that APC was throwing so many warnings on my server by looking at error logs from time to time. The most frequent warning I see in my logs is:

PHP Warning:  require_once(): Unable to allocate memory for pool....

Even after disabling W3TC plugin, the warnings were still getting generated in bulk. I though, if i could only get rid of that APC all together….

That’s exactly what I did and that FIXED THE PROBLEM!

SO I disabled APC completely by placing the following line in .htaccess file:

php_flag apc.cache_by_default Off

Although I don’t like this solution, it’ll do for now. I do want to have some sort of caching in place. I can’t believe that APC is the “go to caching” for PHP, I’ve had nothing but headaches with it.

Can you guys recommend any other caching mechanism that works well with s2member?

Marko

Posted: Thursday Nov 8th, 2012 at 9:25 am #31028
Marko
Username: mtomic

Thanks!
That’ll do just fine :)

Posted: Thursday Nov 8th, 2012 at 7:27 am #31007
Marko
Username: mtomic

I should use the word “verification” instead of “confirmation”.
To clarify, I would like users to verify their email address by clicking on a link in their inbox, which activates their account.

Is this feature supported? If not, is there a way to prevent users from entering random email addresses in a Pro Form and logging in immediately after they register?

Posted: Friday Nov 2nd, 2012 at 8:52 pm #30522
Marko
Username: mtomic

I figured it out!
MailChimp sends the user subscription confirmation, which is out of my control. If the user never confirms it, he/she will never make it on the list.

Posted: Friday Nov 2nd, 2012 at 10:17 am #30466
Marko
Username: mtomic

The logs say everything is fine. Pasting the output below. I’ve replaced sensitive information with generic stuff, i.e. first_name, last_name, api_key etc…

array (
  'function' => 'process_list_servers',
  'func_get_args' => 
  array (
    0 => 's2member_level1',
    1 => '1',
    2 => 'username',
    3 => 'friendly_name',
    4 => 'email',
    5 => 'first_name',
    6 => 'last_name',
    7 => 'ipaddress',
    8 => true,
    9 => true,
    10 => 74,
  ),
  'api_method' => 'listSubscribe',
  'list' => '108cc65ee3',
  'list_id' => '108cc65ee3',
  'merge_array' => 
  array (
    'MERGE1' => 'first_name',
    'MERGE2' => 'last_name',
    'OPTIN_IP' => 'ip_address',
    'OPTIN_TIME' => '2012-11-02 02:24:10',
  ),
  'api_merge_array' => 
  array (
    'MERGE1' => 'first_name',
    'MERGE2' => 'last_name',
    'OPTIN_IP' => 'ip_address',
    'OPTIN_TIME' => '2012-11-02 02:24:10',
  ),
  'api_email_type' => 'html',
  'api_double_optin' => true,
  'api_update_existing' => false,
  'api_replace_interests' => true,
  'api_send_welcome' => false,
  'api_response' => true,
  'api_success' => true,
  'api_properties' => 
  NC_MCAPI::__set_state(array(
     'version' => '1.3',
     'errorMessage' => '',
     'errorCode' => '',
     'apiUrl' => 
    array (
      'scheme' => 'http',
      'host' => 'api.mailchimp.com',
      'path' => '/1.3/',
      'query' => 'output=php',
      'prefix' => 'us5',
    ),
     'timeout' => 300,
     'chunkSize' => 8192,
     'api_key' => 'api_key_here',
     'secure' => true,
  )),
)

:-/

Posted: Thursday Oct 25th, 2012 at 11:49 am #29651
Marko
Username: mtomic

Fixed it. I took a look at all my hooks and one of them was handling 404 redirects by hooking into ‘template_redirect’ function. Lesson learnt – don’t hook into core functions without testing them from every angle :-)

Posted: Thursday Oct 25th, 2012 at 9:44 am #29637
Marko
Username: mtomic

Actually I just tested level 2 registrations as well. They also assign users with a Subscriber level 0. Am I doing something obviously wrong? This worked perfectly before.

I do have heavy wp-super-cache in place and I’m wondering if that has something to do with this.

  • This reply was modified 4 years, 2 months ago by  Marko.
Posted: Tuesday Oct 2nd, 2012 at 9:18 pm #27285
Marko
Username: mtomic

I found a solution here:
http://www.wpinsite.com/code-snippets/how-to-redirect-wordpress-failed-logins/#lightboxauto_group1/2/

You basically use a filter to prevent the default redirect.

Posted: Tuesday Oct 2nd, 2012 at 8:20 pm #27282
Marko
Username: mtomic

Please do :-)
It would be great to be able to prevent the redirection!

Posted: Sunday May 27th, 2012 at 11:34 pm #14798
Marko
Username: mtomic

You can store PayPal order info in the DB by using s2member hooks and filters. I’d say you’d probably want to hook one of PayPal IPN scripts (depending on your PayPal transaction type) and capture some of that info.

Then you should be able to retrieve and pre-populate your form with data.

Obviously, the key is to hook into the right method – i.e. before, during or after the payment is complete.

Posted: Sunday May 27th, 2012 at 6:26 pm #14776
Marko
Username: mtomic

Awesome. Thanks for the tip!

Posted: Sunday May 27th, 2012 at 6:51 am #14762
Marko
Username: mtomic

Thanks for your reply Cristian,

Ideally, I’d like to be able to only change the default message and let s2member do the rest under the hood. If that’s not possible, I’ll go with your option.

Marko

Viewing 13 replies - 1 through 13 (of 13 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.