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: Ian Tasker

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


Topics I've Started

Viewing 4 topics - 1 through 4 (of 4 total)
Topic Count Last Reply
Changing Page Level Restriction Labels

By:  Ian Tasker in: Community Forum

voices: 2
replies: 4

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

PHP Warnings

By:  Ian Tasker in: Community Forum

voices: 3
replies: 10

3 years, 7 months ago  Bruce

How to kill/delete a specific generated link

By:  Ian Tasker in: Community Forum

voices: 2
replies: 1

3 years, 7 months ago  Bruce

PHP Warnings and Some Fixes.

By:  Ian Tasker in: Community Forum

voices: 2
replies: 2

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

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

My Latest Replies (From Various Topics)

Viewing 12 replies - 1 through 12 (of 12 total)
Author Replies
Author Replies
Posted: Friday May 17th, 2013 at 9:46 am #50129
Ian Tasker
Username: clariner

Hi Bruce,

Thanks for the update, any ETA on when the rewrite will happen and be released?

Posted: Wednesday May 15th, 2013 at 4:48 pm #50030
Ian Tasker
Username: clariner

When i get a spare minute, i will test the code on our installation and will post something when its complete and working

Posted: Wednesday May 15th, 2013 at 8:11 am #50012
Ian Tasker
Username: clariner

@prolet

This is straightforward to remove, you will need to add the following to your functions.php in your theme.

function my_remove_meta_boxes() {
if( !current_user_can(‘manage_options’) ) {
remove_meta_box([XXXX], ‘portfilio’, ‘side’ );
}
}

add_action( ‘admin_menu’, ‘my_remove_meta_boxes’ );

where [XXXX] is replaced with the id of the div tag for the meta box, would be something like ‘s2memberdiv’.
this will remove it for non-administrators. (i dont have access to my version of s2member to get the correct tag)

if you need it for other post_type just change ‘portfilio’ to something else.

Posted: Wednesday May 15th, 2013 at 5:44 am #50008
Ian Tasker
Username: clariner

Hi Cristian,

I am fully aware that these warnings can be hidden by turning off WP_DEBUG but that is a work around and not a fix.

I expect all plugins on our site to work correctly and without any PHP errors or warnings enevn if WP_DEBUG is turned on.
This makes the processing of debugging any plugin issues at lot easier as I won’t need to trawl through a list of non related warnings.

Posted: Wednesday May 15th, 2013 at 5:38 am #50007
Ian Tasker
Username: clariner

Hi Cristian,

Yes it the latter, if jason could add a hook for the list that would be great.

Posted: Tuesday May 14th, 2013 at 7:53 pm #49975
Ian Tasker
Username: clariner

Has there been any progress on the ability to revoke links?

I am looking at the ‘buy specific pages’ process as a why to integrate cubepoints.

I can add custom code to the page to add points to a users when the visit the link but i want to be able to revoke the link so they can’t use it again to get points they haven’t paid for.

Posted: Tuesday May 14th, 2013 at 8:48 am #49945
Ian Tasker
Username: clariner

I have come across another warning

Notice: Undefined variable: req in s2member-pro\includes\classes\lock-icons-in.inc.php on line 155

Posted: Monday May 13th, 2013 at 8:47 pm #49896
Ian Tasker
Username: clariner

I hope that i have supplied enough information for the warnings to be removed in the next version.

Posted: Monday May 13th, 2013 at 8:46 pm #49895
Ian Tasker
Username: clariner

Here is another warning i have found

Undefined index: level-1_label in s2member\includes\classes\constants.inc.php on line 286.

I believe this relates to the level given to a site guest/not logged in user of -1 and it not having a label defined under the Membership Levels / Labels section of the general s2member settings.

Is would be useful to be able to define a label for site visitors.

Its looks like all looks that refer to $GLOBALS[“WS_PLUGIN__”][“s2member”][“o”][“level”.$n.”_label”] or $GLOBALS[“WS_PLUGIN__”][“s2member”][“c”][“levels”] start at 0 and dont take -1 into account.

I am not sure where $GLOBALS[“WS_PLUGIN__”][“s2member”][“o”][“level”.$n.”_label”] isdeclared but it could be hard coded that level -1 is ‘site visitor’.

Posted: Monday May 13th, 2013 at 8:17 pm #49893
Ian Tasker
Username: clariner

I have come across another warning

Undefined variable: since in s2member\includes\classes\utils-time.inc.php on line 53

It looks like $since is never declared as an empty string

Posted: Monday May 13th, 2013 at 6:00 pm #49885
Ian Tasker
Username: clariner

Further to my second post, i tracked down the cause of the error to not having the follwing pages defined in the settings

Download Limited Exceeded Page
Login Welcome Page
Membership page

Posted: Monday May 13th, 2013 at 5:36 pm #49883
Ian Tasker
Username: clariner

I have also come across a number of other warnings which cause a database read error.

When i enable s2member and save a page i get the following errors.

Trying to get property of non-object in wp-includes\link-template.php on line 274

I have tracked this down to the get_page_link function, it looks like s2member is not passing the post object when getting a page link.

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