ReinfyTeam / ProfanityFilter

A best profanity filter for pocketmine. Controls hate speech and blocks bad words in certain on the chat with plugin api for plugin developers!
https://poggit.pmmp.io/p/ProfanityFilter
GNU Lesser General Public License v2.1
9 stars 4 forks source link

foreach() argument must be of type array|object, null given #107

Closed xqwtxon closed 1 year ago

xqwtxon commented 1 year ago

Describe the bug foreach() argument must be of type array|object, null given

Reproduce Steps to reproduce the behavior:

  1. Start your server
  2. Wait to load the plugin.
  3. You will see an error

Expected behavior This should load fine correctly.

Screenshots image

Device Information:

Additional Information

ErrorException: "foreach() argument must be of type array|object, null given" (EXCEPTION) in "C:/Users/xqwtxon/Documents/ReinfyDevelopment/DevelopmentServer/plugins/ProfanityFilter/src/Tasks/UpdateTask" at line 49
--- Stack trace ---
  #0 C:/Users/xqwtxon/Documents/ReinfyDevelopment/DevelopmentServer/plugins/ProfanityFilter/src/Tasks/UpdateTask(49): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[59] foreach() argument must be of type array|object, null given, string[111] C:\Users\xqwtxon\Documents\ReinfyDevelopment\DevelopmentServer\plugins\Profanity, int 49)
  #1 pmsrc/src/scheduler/AsyncTask(90): ReinfyTeam\ProfanityFilter\Tasks\UpdateTask->onRun()
  #2 (): pocketmine\scheduler\AsyncTask->run()
--- End of exception information ---
xqwtxon commented 1 year ago

POGGIT IS DOWN 😞

Since the poggit is down, you may experiencing this error. You can kindly safe ignoring this error.