We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Undefined variable: CAN_OPERATE_MEMBER when editing a comment

Development and Programming

Daem0n's avatar
Daem0n
79 posts
3 years ago
Daem0n's avatar Daem0n

Hi,

I have a comment form that allows guests to leave comments on my blog posts. Everything works fine and comments are being submitted by guests and registered users. However when I go in the admin panel and try to edit a comment that was submitted by a “guest” then I get the following notice…

Notice
UNDEFINED VARIABLE: CAN_OPERATE_MEMBER

ee/ExpressionEngine/View/publish/comments/partials/author_information.php, line 14
Severity: E_NOTICE

…followed by the guest’s name, email and IP address. While it doesn’t seem like something isn’t working, that notice is a bit weird. Any ideas why this is happening?

       
Andy McCormick's avatar
Andy McCormick
322 posts
3 years ago
Andy McCormick's avatar Andy McCormick

Thanks for reporting this. I was able to confirm this and have opened an issue on GitHub. You can follow the issue there if you’d like to see when there’s a resolution.

https://github.com/ExpressionEngine/ExpressionEngine/issues/1858

? 1
       
orabellemia's avatar
orabellemia
1 posts
2 years ago
orabellemia's avatar orabellemia

The notice you’re encountering regarding the “UNDEFINED VARIABLE: CAN_OPERATE_MEMBER” is typically caused by an outdated or incompatible add-on or custom code modification. The issue arises when the code attempts to access the CAN_OPERATE_MEMBER variable, which isn’t defined or available in the current context.

To troubleshoot and resolve this issue, you can try the following steps:

Update Add-ons: Make sure all your add-ons, especially those related to comments or member management, are up to date. Check the developer’s website or the ExpressionEngine Add-on Store for any available updates.

Disable Add-ons: Temporarily disable each add-on one by one and check if the notice still occurs after disabling each one. This will help identify if a specific add-on is causing the issue.

       
timothyferriss's avatar
timothyferriss
7 posts
2 years ago
timothyferriss's avatar timothyferriss

The notice you’re seeing, “UNDEFINED VARIABLE: CAN_OPERATE_MEMBER,” is likely a result of a variable or condition in your ExpressionEngine (EE) template that is not properly defined or initialized

       
internaljaialai's avatar
internaljaialai
2 posts
one year ago
internaljaialai's avatar internaljaialai

@coreball: The updates have fixed it nicely. Thanks for bringing this up. Can easily be used to give appropriate opinions.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.