Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12479

Reply To: Subscribe2 plugin blocks BPS Pro upgrade notification

$
0
0

Ok I had some spare time to revisit this and actually I had already originally found the problem within 20 minutes.  Unfortunately, W3 Total Cache was installed on that testing website and I forgot to clear the W3TC page cache so in other words, the very first thing I found and tested did not do anything because W3TC was caching old plugin data.  Or in other words, W3TC negated all my troubleshooting and testing so I was going around in circles without any clue that everything I tried was having absolutely no effect.  Yes, very irritating.

Cause and Description of the Subscribe2 plugin code problem:

The problem file: /subscribe2/readygraph-extension.php
The problem code: $plugin_slug = basename(dirname(__FILE__));

At the very top of the readygraph-extension.php file the $plugin_slug variable is sitting in no man’s land. This variable value literally replaces ALL plugins $plugin_slug value and not only the BPS Pro plugin’s $plugin_slug value because this variable is not valid in this file or is being used incorrectly. I believe the only valid place this variable should be used is in this plugin’s actual base plugin file, which would be the subscribe2.php file (makes logical sense anyway). The value returned is subscribe2 and not readygraph-extension, but that subscribe2 value is being applied to every single installed plugin’s $plugin_slug variable value.  Or in other words, instead of BPS Pro’s $plugin_slug variable value being bulletproof-security it is subscribe2 so the code usage is obviously invalid and broken.

Solution:
For now you will need to manually comment out the problem code in this Subscribe2 plugin file: /subscribe2/readygraph-extension.php by using 2 forward slashes as shown below. I will post a link to this forum topic in the Subscribe2 plugin’s support forum on wordpress.org so that they can fix this permanently in a future version release of the Subscribe2 plugin.

//$plugin_slug = basename(dirname(__FILE__));
  • This reply was modified 1 hour, 15 minutes ago by  AITpro Admin.
  • This reply was modified 41 minutes ago by  AITpro Admin.
  • This reply was modified 40 minutes ago by  AITpro Admin.
  • This reply was modified 38 minutes ago by  AITpro Admin.

Viewing all articles
Browse latest Browse all 12479

Trending Articles