Jump to content

Ban Members From Topics


Recommended Posts

Hey hey @Adriano Faria

Have you got any idea about this type of error?

I have the latest version of plugin in 4.6.9.

Thanks

TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given in 
/var/www/vhosts/*****/httpdocs/system/Theme/Cache/Template.php:90 Stack trace: #0 
/var/www/vhosts/*****/httpdocs/system/Theme/Cache/Template.php(90): flock() #1 
/var/www/vhosts/*****/httpdocs/system/Theme/Theme.php(777): IPS\Theme\Cache\_Template->exists() #2 
/var/www/vhosts/*****/httpdocs/system/Theme/Theme.php(860) : eval()'d code(3633): IPS\_Theme->getTemplate() #3 
/var/www/vhosts/*****/httpdocs/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic() #4 
/var/www/vhosts/*****/httpdocs/applications/forums/modules/front/forums/topic.php(553): IPS\Theme\_SandboxedTemplate->__call() #5 
/var/www/vhosts/*****/httpdocs/init.php(903) : eval()'d code(24): IPS\forums\modules\front\forums\_topic->manage() #6 
/var/www/vhosts/*****/httpdocs/system/Dispatcher/Controller.php(101): IPS\forums\modules\front\forums\banfromtopics_hook_bftTopicController->manage() #7 
/var/www/vhosts/*****/httpdocs/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #8 
/var/www/vhosts/*****/httpdocs/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #9 
/var/www/vhosts/*****/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #10 
/var/www/vhosts/*****/httpdocs/index.php(13): IPS\_Dispatcher->run() #11 {main}
Link to comment
On 2/1/2022 at 3:42 PM, Jirinex said:

Hey hey @Adriano Faria

Have you got any idea about this type of error?

I have the latest version of plugin in 4.6.9.

Thanks

TypeError: flock(): Argument #1 ($stream) must be of type resource, bool given in 
/var/www/vhosts/*****/httpdocs/system/Theme/Cache/Template.php:90 Stack trace: #0 
/var/www/vhosts/*****/httpdocs/system/Theme/Cache/Template.php(90): flock() #1 
/var/www/vhosts/*****/httpdocs/system/Theme/Theme.php(777): IPS\Theme\Cache\_Template->exists() #2 
/var/www/vhosts/*****/httpdocs/system/Theme/Theme.php(860) : eval()'d code(3633): IPS\_Theme->getTemplate() #3 
/var/www/vhosts/*****/httpdocs/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic() #4 
/var/www/vhosts/*****/httpdocs/applications/forums/modules/front/forums/topic.php(553): IPS\Theme\_SandboxedTemplate->__call() #5 
/var/www/vhosts/*****/httpdocs/init.php(903) : eval()'d code(24): IPS\forums\modules\front\forums\_topic->manage() #6 
/var/www/vhosts/*****/httpdocs/system/Dispatcher/Controller.php(101): IPS\forums\modules\front\forums\banfromtopics_hook_bftTopicController->manage() #7 
/var/www/vhosts/*****/httpdocs/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #8 
/var/www/vhosts/*****/httpdocs/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #9 
/var/www/vhosts/*****/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #10 
/var/www/vhosts/*****/httpdocs/index.php(13): IPS\_Dispatcher->run() #11 {main}

You seem to had a theme cache issue. The error doesn’t point to my resource. Dis you try to clean cache? Still happening?

Link to comment
/var/www/vhosts/*****/httpdocs/system/Dispatcher/Controller.php(101): IPS\forums\modules\front\forums\banfromtopics_hook_bftTopicController->manage() #7

Not even the above line ??

With the previous version of your plugin the errors were more and decreased with the latest.

When the plugin is inactive the errors dissapear.

I haven`t located any cache issue and the all the tasks runs normally in cron.

Link to comment
  • 8 months later...
39 minutes ago, Adriano Faria said:

This resource bans only people that posted in the topic. Are all members already banned? Are members who posted and they’re not banned? Are their groups properly chosen in the app settings?

Ahhh, the settings must have reset when I updated because the Members group was not selected. I selected that box and it's working now 🙂 

Thanks for getting back to me - I really appreciate it!

For anyone in the future who may be experiencing something similar:

Screen-Shot-2022-11-02-at-1-34-25-PM.png

Thanks again!

Link to comment
  • 2 months later...
  • 2 weeks later...

We recently found out that banned member does not receive notification or email.

Below are our settings

Could contain: Page, Text

 

Αlso in the user's notification settings the menu does not appear.

Could contain: Page, Text, File

 

For admins and mods everything works fine.

We are on the latest version forum and app.

Thanks in advance

Edited by Jirinex
Link to comment
26 minutes ago, Jirinex said:

For admins and mods everything works fine

Yes, basically because this is a moderation tool and notifications are sent to moderators only, not to the member who was banned. It’s enough to read the notifications titles: … when another moderator does something… and not …when a moderator add ME in a ban list.

Notifications appears and are sent only to moderators who can manage ban in topics. That’s how it was designed. 

Link to comment
  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...