Warning: Undefined array key "total_vue" in /home/africancreation/public_html/views/post/view.php on line 44

Fatal error: Uncaught MongoDB\Driver\Exception\CommandException: Modifiers operate on fields but we found type array instead. For example: {$mod: {<field>: ...}} not {$set: []} in /home/africancreation/public_html/vendor/mongodb/mongodb/src/Operation/FindAndModify.php:258 Stack trace: #0 /home/africancreation/public_html/vendor/mongodb/mongodb/src/Operation/FindAndModify.php(258): MongoDB\Driver\Server->executeWriteCommand() #1 /home/africancreation/public_html/vendor/mongodb/mongodb/src/Operation/FindOneAndUpdate.php(166): MongoDB\Operation\FindAndModify->execute() #2 /home/africancreation/public_html/vendor/mongodb/mongodb/src/Collection.php(753): MongoDB\Operation\FindOneAndUpdate->execute() #3 /home/africancreation/public_html/App/Model/VueTable.php(70): MongoDB\Collection->findOneAndUpdate() #4 /home/africancreation/public_html/views/post/view.php(44): Kisko\Model\VueTable->saveVue() #5 /home/africancreation/public_html/App/Router.php(50): require_once('/home/africancr...') #6 /home/africancreation/public_html/Public/index.php(92): Kisko\Router->run() #7 {main} thrown in /home/africancreation/public_html/vendor/mongodb/mongodb/src/Operation/FindAndModify.php on line 258