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?
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
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.