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.

Shortcode Conditional Throws Callback Error

Home Forums Community Forum Shortcode Conditional Throws Callback Error

This topic contains 6 replies, has 4 voices. Last updated by  Jason (Lead Developer) 4 years, 9 months ago.

Topic Author Topic
Posted: Tuesday Mar 20th, 2012 at 5:09 pm #8647
Randy King
Username: RandyKing

I have the following conditional on a page (taken directly from the codex):

[s2If curent_user_is(s2member_level4)]
You ARE a Member at Level #4.
[/s2If]

It generates the following error:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘curent_user_is’ was given in […]/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php on line 138

What am I doing wrong with this? Is the s2member_level4 constant valid as it is shown?

List Of Topic Replies

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Tuesday Mar 20th, 2012 at 5:41 pm #8650
Randy King
Username: RandyKing

NEVER MIND! I just discovered the typo in the codex! Note the spelling of “current_user_is” – it’s missing an “R”. I found another section in the plugin help using this same function call and it worked. It wasn’t until I put the two next to each other that the misspelling popped out at me.

Posted: Tuesday Mar 20th, 2012 at 6:25 pm #8654
Eduan
Username: Eduan
Moderator

Excellent Randy!

Good job on finding that! ;)

Posted: Wednesday Mar 21st, 2012 at 5:47 am #8710

Good catch, Randy. :)

Could you please point me to the page that has that typo so we fix it? Thanks!

Posted: Wednesday Mar 21st, 2012 at 8:14 am #8718
Randy King
Username: RandyKing
Posted: Thursday Mar 22nd, 2012 at 8:11 pm #8869

Thanks a lot! I forwarded this to Jason. :)

Posted: Friday Mar 23rd, 2012 at 4:48 am #8879
Staff Member

Thank you. This will be fixed in the next update.

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.