Plugin Errors

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

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 northernpenguin - June 17, 2015

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

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