Plugin Errors

4 posts by 2 authors in: Forums > CMS Builder
Last Post: June 18, 2015   (RSS)

I am getting the following error and I really don't know why. 

CMSB v2.65

Website Membership Plugin v1.10

E_NOTICE: Undefined index: action/home/sandbox/public_html/706sandbox/builder/plugins/websiteMembership/websiteMembership.php 
(line 69)http://706sandbox.northernpenguin.com/manage.php?o=1&m=1&n

I have attached the manage.php file.  Its weird as the manage.php file has nothing to do with the website management plugin.  It is only used by the Newsletter plugin.

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
Attachments:

manage.php 4K

By Dave - June 17, 2015

Hi Ragi, 

How it works is that any script that includes the CMSB libraries  "/lib/viewer_functions.php" or "/lib/init.php"; loads all the CMSB libraries and plugins.

So what's likely happening is manage.php is getting hit (could be by a search engine bot or something else), it's loading the websiteMembership plugin, which then runs a bit of code to see if it needs to do anything (it doesn't).

The lines causing the error would seem to be these ones:

// perform website login actions
if (@$_REQUEST['action'] == 'logoff') { _websiteLogin_logoff(); }
if (@$_REQUEST['action'] == 'login') { _websiteLogin_login(); }

Can you check that the @ character (error suppression operator) is in front of those two lines?  When it is you shouldn't get any errors reported.

Let me know what you find, thanks!

Dave Edis - Senior Developer
interactivetools.com

By Dave - June 18, 2015

Hi Ragi, 

Does the error occur every time you access this page: http://706sandbox.northernpenguin.com/manage.php?o=1&m=1&n

If so, what happens if you "temporarily" comment out those two lines in websiteMembership.php?

The error would seem to indicate that the error suppression operator (@) is somehow being ignored, but temporarily commenting out that line would confirm that.

Let me know what you find, if it is being ignored check if you have the extension in this post installed: 
http://stackoverflow.com/questions/15203168/php-error-suppression-is-being-ignored

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com