Moderator Essentials

Moderator Essentials [Paid] 1.14.5

No permission to buy ($45.00)
  • Thread starter Thread starter Syndol
  • Start date Start date
I believe there is a bug. I'm using 1.3.
I just updated the permissions for a usergroup and got this error on screen:
Server Error
Invalid argument supplied for foreach()

  1. XenForo_Application::handlePhpError() in ModEss/Model/Log.php at line 73
  2. ModEss_Model_Log->getModLogEntriesByDate() in ModEss/Model/Log.php at line 30
  3. ModEss_Model_Log->getViewableModLogEntries() in ModEss/Model/ModEss.php at line 629
  4. ModEss_Model_ModEss->getViewableModLogEntries() in ModEss/Model/ModEss.php at line 900
  5. ModEss_Model_ModEss->rebuildSessionModLogCountsCache() in ModEss/Model/Permission.php at line 44
  6. ModEss_Model_Permission->_updatePermissionsForUserCollection() in XenForo/Model/Permission.php at line 1029
  7. XenForo_Model_Permission->updateGlobalPermissionsForUserCollection() in XenForo/ControllerAdmin/Permission/UserGroup.php at line 70
  8. XenForo_ControllerAdmin_Permission_UserGroup->actionSave() in XenForo/FrontController.php at line 347
  9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  10. XenForo_FrontController->run() in /home/sites/avforums/public_html/admin.php at line 13
The server error in the log reads:
Error Info ErrorException: Invalid argument supplied for foreach() - library/ModEss/Model/Log.php:73
Generated By: Stuart Wright, 4 minutes ago

Stack Trace
#0 /home/sites/avforums/public_html/library/ModEss/Model/Log.php(73): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/home/sites/avf...', 73, Array)
#1 /home/sites/avforums/public_html/library/ModEss/Model/Log.php(30): ModEss_Model_Log->getModLogEntriesByDate(1393550472, Array)
#2 /home/sites/avforums/public_html/library/ModEss/Model/ModEss.php(629): ModEss_Model_Log->getViewableModLogEntries(1393550472, Array, '50')
#3 /home/sites/avforums/public_html/library/ModEss/Model/ModEss.php(900): ModEss_Model_ModEss->getViewableModLogEntries(Array, 1393550472)
#4 /home/sites/avforums/public_html/library/ModEss/Model/Permission.php(44): ModEss_Model_ModEss->rebuildSessionModLogCountsCache(NULL, true)
#5 /home/sites/avforums/public_html/library/XenForo/Model/Permission.php(1029): ModEss_Model_Permission->_updatePermissionsForUserCollection(Array, Array, 2, 0, 'XenForo_DataWri...', Array)
#6 /home/sites/avforums/public_html/library/XenForo/ControllerAdmin/Permission/UserGroup.php(70): XenForo_Model_Permission->updateGlobalPermissionsForUserCollection(Array, 2, 0)
#7 /home/sites/avforums/public_html/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Permission_UserGroup->actionSave()
#8 /home/sites/avforums/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/sites/avforums/public_html/admin.php(13): XenForo_FrontController->run()
#10 {main}
Adding the request state takes the post of 10,000 characters.
 
The request state reads first half reads:
Request State
array(3) {
["url"] => string(72) "http://www.avforums.com/admin.php?user-group-permissions/member-1.2/save"
["_GET"] => array(1) {
["user-group-permissions/member-1_2/save"] => string(0) ""
}
["_POST"] => array(2) {
["permissions"] => array(16) {
["general"] => array(23) {
["viewNode"] => string(5) "allow"
["view"] => string(5) "allow"
["viewProfile"] => string(5) "allow"
["search"] => string(5) "allow"
["maxTaggedUsers"] => string(1) "1"
["editProfile"] => string(5) "allow"
["editCustomTitle"] => string(5) "unset"
["followModerationRules"] => string(5) "allow"
["bypassFloodCheck"] => string(5) "unset"
["report"] => string(5) "allow"
["canUserNameChange"] => string(5) "unset"
["canUseBookmarks"] => string(5) "unset"
["viewIps"] => string(5) "unset"
["viewUserInfo"] => string(5) "unset"
["bypassUserPrivacy"] => string(5) "unset"
["cleanSpam"] => string(5) "unset"
["viewWarning"] => string(5) "unset"
["warn"] => string(5) "unset"
["manageWarning"] => string(5) "unset"
["editBasicProfile"] => string(5) "unset"
["canViewModLogCounts"] => string(5) "unset"
["manageUserNameChange"] => string(5) "unset"
["editSignature"] => string(5) "unset"
}
["FAQ_Manager_Permissions"] => array(5) {
["manageFAQ"] => string(5) "unset"
["manageFAQCategories"] => string(5) "unset"
["uploadFAQAttach"] => string(5) "unset"
["canLikeFAQ"] => string(5) "allow"
["canAskQuestions"] => string(5) "allow"
}
["forum"] => array(56) {
["viewOthers"] => string(5) "allow"
["viewContent"] => string(5) "allow"
["viewThreadPlaceholders"] => string(5) "unset"
["viewPostPlaceholders"] => string(5) "unset"
["like"] => string(5) "unset"
["postThread"] => string(5) "allow"
["postReply"] => string(5) "allow"
["deleteOwnPost"] => string(5) "allow"
["deleteOwnThread"] => string(5) "unset"
["editOwnPost"] => string(5) "allow"
["editOwnPostTimeLimit"] => string(2) "-1"
["editOwnThreadTitle"] => string(5) "unset"
["editOwnThreadTitleLimit"] => string(2) "-1"
["viewAttachment"] => string(5) "allow"
["uploadAttachment"] => string(5) "allow"
["createPoll"] => string(5) "allow"
["votePoll"] => string(5) "allow"
["addPollToOwnThread"] => string(5) "unset"
["addPollToOwnThreadLimit"] => string(2) "-1"
["archiveOwn"] => string(5) "unset"
["lockUnlockOwnThread"] => string(5) "unset"
["canBookmarkPost"] => string(5) "unset"
["listRatings"] => string(5) "allow"
["ratePost"] => string(5) "unset"
["deleteRating"] => string(5) "unset"
["manageAnyThread"] => string(5) "unset"
["stickUnstickThread"] => string(5) "unset"
["viewModerated"] => string(5) "unset"
["viewDeleted"] => string(5) "unset"
["hardDeleteAnyPost"] => string(5) "unset"
["hardDeleteAnyThread"] => string(5) "unset"
["lockUnlockThread"] => string(5) "unset"
["deleteAnyThread"] => string(5) "unset"
["deleteAnyPost"] => string(5) "unset"
["approveUnapprove"] => string(5) "unset"
["undelete"] => string(5) "unset"
["editAnyPost"] => string(5) "unset"
["warn"] => string(5) "unset"
["archiveAny"] => string(5) "unset"
["bypassLimit"] => string(5) "unset"
["canThreadBan"] => string(5) "unset"
["canThreadBanPermanent"] => string(5) "unset"
["checkPost"] => string(5) "unset"
["uncheckPost"] => string(5) "unset"
["uncheckPostAny"] => string(5) "unset"
["checkThread"] => string(5) "unset"
["uncheckThread"] => string(5) "unset"
["viewCheckpoint"] => string(5) "unset"
["viewCheckpointAny"] => string(5) "unset"
["viewCheckpointAll"] => string(5) "unset"
["ctaFtFeatureOwnThread"] => string(5) "unset"
["ctaFtUpdateOwnThread"] => string(5) "unset"
["ctaFtUnfeatureOwnThread"] => string(5) "unset"
["ctaFtFeatureAnyThread"] => string(5) "unset"
["ctaFtUpdateAnyThread"] => string(5) "unset"
["ctaFtUnfeatureAnyThread"] => string(5) "unset"
}
["avatar"] => array(2) {
["maxFileSize"] => string(5) "51200"
["allowed"] => string(5) "allow"
}
["conversation"] => array(15) {
["start"] => string(5) "allow"
["receive"] => string(5) "allow"
["uploadAttachment"] => string(5) "unset"
["editOwnPost"] => string(5) "allow"
["editOwnPostTimeLimit"] => string(1) "5"
["maxRecipients"] => string(1) "1"
["convessInboxSize"] => string(1) "5"
["convessParticipantGroups"] => string(5) "unset"
["convessAutoResponse"] => string(5) "unset"
["convessPrefixes"] => string(5) "unset"
["convessKickRecipients"] => string(5) "unset"
["convessLikeMessages"] => string(5) "unset"
["editAnyPost"] => string(5) "unset"
["alwaysInvite"] => string(5) "unset"
["viewAny"] => string(5) "unset"
}
["editorialPermissions"] => array(4) {
["isReviewer"] => string(5) "unset"
["viewCMS"] => string(5) "unset"
["isAdmin"] => string(5) "unset"
["isEditor"] => string(5) "unset"
}
["signature"] => array(14) {
["basicText"] => string(5) "unset"
["extendedText"] => string(5) "unset"
["align"] => string(5) "unset"
["list"] => string(5) "unset"
["link"] => string(5) "unset"
["image"] => string(5) "unset"
["media"] => string(5) "unset"
["block"] => string(5) "unset"
["maxPrintable"] => string(1) "0"
["maxLines"] => string(1) "0"
["maxLinks"] => string(1) "0"
["maxImages"] => string(1) "0"
["maxSmilies"] => string(1) "0"
["maxTextSize"] => string(1) "6"
}
["profilePost"] => array(16) {
["view"] => string(5) "allow"
["like"] => string(5) "unset"
["manageOwn"] => string(5) "unset"
["post"] => string(5) "unset"
["comment"] => string(5) "unset"
["deleteOwn"] => string(5) "unset"
["editOwn"] => string(5) "unset"
["canBookmarkProfilePost"] => string(5) "unset"
["viewModerated"] => string(5) "unset"
["editAny"] => string(5) "unset"
["viewDeleted"] => string(5) "unset"
["deleteAny"] => string(5) "unset"
["undelete"] => string(5) "unset"
["hardDeleteAny"] => string(5) "unset"
["approveUnapprove"] => string(5) "unset"
["warn"] => string(5) "unset"
}
 
and the second half reads
["xengallery"] => array(70) {
["view"] => string(5) "allow"
["followModerationRules"] => string(5) "unset"
["add"] => string(5) "unset"
["like"] => string(5) "unset"
["delete"] => string(5) "unset"
["edit"] => string(5) "unset"
["editUrl"] => string(5) "unset"
["editOwnMediaTimeLimit"] => string(1) "0"
["editTagsFields"] => string(5) "unset"
["viewRatings"] => string(5) "allow"
["rate"] => string(5) "unset"
["viewTag"] => string(5) "unset"
["tag"] => string(5) "unset"
["deleteTag"] => string(5) "unset"
["download"] => string(5) "unset"
["rotate"] => string(5) "unset"
["crop"] => string(5) "unset"
["flip"] => string(5) "unset"
["avatar"] => string(5) "unset"
["viewDeleted"] => string(5) "unset"
["viewDeletedComments"] => string(5) "unset"
["deleteAny"] => string(5) "unset"
["editAny"] => string(5) "unset"
["editUrlAny"] => string(5) "unset"
["viewOverride"] => string(5) "unset"
["editTagsFieldsAny"] => string(5) "unset"
["hardDeleteAny"] => string(5) "unset"
["approveUnapprove"] => string(5) "unset"
["tagAny"] => string(5) "unset"
["deleteTagAny"] => string(5) "unset"
["rotateAny"] => string(5) "unset"
["flipAny"] => string(5) "unset"
["cropAny"] => string(5) "unset"
["avatarAny"] => string(5) "unset"
["bypassWatermark"] => string(5) "unset"
["addWatermark"] => string(5) "unset"
["removeWatermark"] => string(5) "unset"
["addWatermarkAny"] => string(5) "unset"
["removeWatermarkAny"] => string(5) "unset"
["generalStorageQuota"] => string(1) "0"
["imageWidth"] => string(1) "0"
["imageHeight"] => string(1) "0"
["imageFileSize"] => string(1) "0"
["imageMaxItems"] => string(1) "0"
["videoFileSize"] => string(1) "0"
["videoMaxItems"] => string(1) "0"
["viewComments"] => string(5) "allow"
["addComment"] => string(5) "unset"
["likeComment"] => string(5) "unset"
["deleteComment"] => string(5) "unset"
["editComment"] => string(5) "unset"
["deleteCommentAny"] => string(5) "unset"
["editCommentAny"] => string(5) "unset"
["viewAlbums"] => string(5) "allow"
["createAlbum"] => string(5) "unset"
["uploadImage"] => string(5) "unset"
["uploadVideo"] => string(5) "unset"
["embedVideo"] => string(5) "unset"
["likeAlbum"] => string(5) "unset"
["deleteAlbum"] => string(5) "unset"
["editAlbum"] => string(5) "unset"
["rateAlbum"] => string(5) "unset"
["shareAlbum"] => string(5) "unset"
["changePrivacy"] => string(5) "unset"
["viewDeletedAlbums"] => string(5) "unset"
["deleteAlbumAny"] => string(5) "unset"
["editAlbumAny"] => string(5) "unset"
["hardDeleteAlbumAny"] => string(5) "unset"
["shareAlbumAny"] => string(5) "unset"
["changePrivacyAny"] => string(5) "unset"
}
["competitions"] => array(16) {
["view"] => string(5) "allow"
["enter"] => string(5) "allow"
["viewAll"] => string(5) "unset"
["viewArchive"] => string(5) "unset"
["create"] => string(5) "unset"
["publishOwnCompetition"] => string(5) "unset"
["publishAnyCompetition"] => string(5) "unset"
["openOwnCompetition"] => string(5) "unset"
["openAnyCompetition"] => string(5) "unset"
["editOwnCompetition"] => string(5) "unset"
["editAnyCompetition"] => string(5) "unset"
["deleteOwnCompetition"] => string(5) "unset"
["deleteAnyCompetition"] => string(5) "unset"
["downloadOptIns"] => string(5) "unset"
["downloadWinners"] => string(5) "unset"
["manageRules"] => string(5) "unset"
}
["waindigoHotspots"] => array(12) {
["viewHotspots"] => string(5) "unset"
["viewOwnHotspots"] => string(5) "unset"
["createHotspots"] => string(1) "0"
["editHotspot"] => string(5) "unset"
["editOwnHotspot"] => string(5) "allow"
["editHotspotThreadUrl"] => string(5) "allow"
["editHotspotImageUrl"] => string(5) "allow"
["editHotspotDescription"] => string(5) "allow"
["deleteHotspot"] => string(5) "unset"
["deleteOwnHotspot"] => string(5) "unset"
["commentHotspot"] => string(5) "unset"
["likeHotspot"] => string(5) "unset"
}
["ctaFt"] => array(1) {
["ctaFtViewFeaturedThreads"] => string(5) "allow"
}
["elusernotesusernote"] => array(9) {
["view"] => string(5) "unset"
["create"] => string(5) "unset"
["editOwn"] => string(5) "unset"
["deleteOwn"] => string(5) "unset"
["deleteAny"] => string(5) "unset"
["viewDeleted"] => string(5) "unset"
["undelete"] => string(5) "unset"
["hardDeleteAny"] => string(5) "unset"
["editAny"] => string(5) "unset"
}
["Notifications"] => array(8) {
["canViewAllNotifications"] => string(5) "unset"
["canViewOwnNotifications"] => string(5) "unset"
["canCreateNotifications"] => string(5) "unset"
["notificationLimit"] => string(1) "0"
["canEditNotifications"] => string(5) "unset"
["canEditOwnNotifications"] => string(5) "unset"
["canDeleteNotifications"] => string(5) "unset"
["canDeleteOwnNotifications"] => string(5) "unset"
}
["nfljsc"] => array(33) {
["viewShowcase"] => string(5) "allow"
["viewAttachment"] => string(5) "allow"
["viewReview"] => string(5) "allow"
["viewComment"] => string(5) "allow"
["canRateItem"] => string(5) "unset"
["canRateOwnItem"] => string(5) "unset"
["likeItem"] => string(5) "unset"
["likeItemReview"] => string(5) "unset"
["likeItemComment"] => string(5) "unset"
["postComment"] => string(5) "unset"
["editComment"] => string(5) "unset"
["editReview"] => string(5) "unset"
["deleteReviewHard"] => string(5) "unset"
["deleteCommentHard"] => string(5) "unset"
["createItem"] => string(5) "unset"
["createItemModerated"] => string(5) "unset"
["scAttachmentCountLimit"] => string(1) "0"
["scAttachmentMaxFileSize"] => string(1) "0"
["scAttachmentMaxWidth"] => string(1) "0"
["scAttachmentMaxHeight"] => string(1) "0"
["editItem"] => string(5) "unset"
["deleteItemSoft"] => string(5) "unset"
["canBookmarkShowcase"] => string(5) "unset"
["editAnyReview"] => string(5) "unset"
["deleteAnyReviewHard"] => string(5) "unset"
["editAnyComment"] => string(5) "unset"
["deleteAnyCommentHard"] => string(5) "unset"
["editAnyItem"] => string(5) "unset"
["deleteAnyItemSoft"] => string(5) "unset"
["deleteAnyItemHard"] => string(5) "unset"
["markItemFeatured"] => string(5) "unset"
["editThreadId"] => string(5) "unset"
["reassignItem"] => string(5) "unset"
}
["avforums_userreviews"] => array(13) {
["view"] => string(5) "allow"
["viewModerated"] => string(5) "allow"
["like"] => string(5) "unset"
["write"] => string(5) "allow"
["bypassModQueue"] => string(5) "unset"
["delete"] => string(5) "unset"
["edit"] => string(5) "allow"
["viewDeleted"] => string(5) "unset"
["viewModeratedAny"] => string(5) "unset"
["approveUnapprove"] => string(5) "unset"
["hardDeleteAny"] => string(5) "unset"
["deleteAny"] => string(5) "unset"
["editAny"] => string(5) "unset"
}
}
["_xfToken"] => string(8) "********"
}
}
 
Hi David,
I use XF 1.3.0 en your version 1.1.3
I get the following error when I am searching from the last 24 hours....
 

Attachments

  • me4.webp
    me4.webp
    17.8 KB · Views: 11
Last edited:
@a.tushkanov - in order to save on queries the moderators are not fetched until the link is followed.
If you must get rid of the link and you know which forums do not have mods then you could wrap it up in a conditional by modifying the template.
 
The order is set via the options page to either User Names or Last Activity.
If you wish to display the names in descending order you will have to edit the ModEss_Model_Moderator file and specifically add "DESC" to the order by clause.
 
You could, just not with this add-on ;)
This add-on allows moderators to choose which actions (from forums they moderate) they wish to be notified of.
They can then also search for all, or specific, moderation actions from forums they can view.
 
Can I suggest an option for moderators to ban users without using the ACP.
Pretty essential feature. I currently use the ancient EasyBan addon.
Can't this be easily achieved by creating a user Warning Action to ban a user either permanently or for a certain time period, then assigning the action to a new User Warning.
Set the action to kick in if threshold reaches say 1000 points. If you set it to be active only "While at or above points threshold", then the warning, and thus the ban, can be lifted by either lifting or expiring the warning.
Is this not just as good as using a separate banning page/overlay? This way the fact the user was banned will also remain in their warning list. But perhaps I'm wrong and I'm not seeing the full picture here. Not sure.
 
Can't this be easily achieved by creating a user Warning Action to ban a user either permanently or for a certain time period, then assigning the action to a new User Warning.
Set the action to kick in if threshold reaches say 1000 points. If you set it to be active only "While at or above points threshold", then the warning, and thus the ban, can be lifted by either lifting or expiring the warning.
Is this not just as good as using a separate banning page/overlay? This way the fact the user was banned will also remain in their warning list. But perhaps I'm wrong and I'm not seeing the full picture here. Not sure.
That's pretty convoluted.
 
Back
Top Bottom