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.

s2member/includes/classes/cache.inc.php

Home Forums Community Forum s2member/includes/classes/cache.inc.php

This topic contains 2 replies, has 2 voices. Last updated by  Eduan 3 years, 9 months ago.

Topic Author Topic
Posted: Friday Mar 22nd, 2013 at 9:21 pm #45535

A Not so urgent fix to your code.

The Variable $cache_needs_updating is not defined.

Setting $cache_needs_updating = false;

public static function cached_page_links ()
{
  $cache_needs_updating = false; // Give it a known value instead of letting it flap in the breeze!
  do_action ("ws_plugin__s2member_before_cached_page_links", get_defined_vars ());

It’s required when the code hits…

if /* Cache is also reset dynamically during back-end option updates. */ ($cache_needs_updating)
{
update_option ("ws_plugin__s2member_cache", $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["cache"]);

and not having it defined is naughty ( as you know)!

I know WP is fully plagued by this – having error reporting set to full whinge mode floods your screen.
I had WP debug mode set and this came up.

Cheers
Tim

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Sunday Mar 24th, 2013 at 10:45 am #45589
Eduan
Username: Eduan
Moderator

Thanks for the report Tim! I’ll report it to Jason. :)

Posted: Monday Mar 25th, 2013 at 10:04 am #45657
Eduan
Username: Eduan
Moderator

Hello Tim,

Thanks for reporting this and providing a solution. He says that you can get rid of this error by simply disabling WP debug mode.

This is not going to be fixed in the maintenance versions, however the next major version of s2Member will fix all of these errors.

– Eduan

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