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

Dave:  line 68 of websiteMembership.php has the following code:

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

So, that's not it!

R

--
northernpenguin
Northern Penguin Technologies

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