flashmessenger バージョン 2.1.0 でこのエラーに直面しています
Warning: Class __PHP_Incomplete_Class has no unserializer in /home/test/public_html/index.php on line 17 Fatal error: Zend\Mvc\Controller\Plugin\FlashMessenger::getMessages(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Zend\Stdlib\SplQueue" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/test/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php on line 288
In index.php : session is started in line 17.
コントローラーで:
$this->flashMessenger()->addMessage('Updated Successfully.');
$flashMessenger = $this->flashMessenger();
if($flashMessenger->hasMessages()) {
$return['messages'] = $flashMessenger->getMessages();
}
助けてください私は何か間違ったことをしましたか?