Closed sumoydas closed 4 years ago
Hello Marcel,
As per https://github.com/botman/botman/issues/778 this link I modified my composer.json file and added Doctrine Cache code in my chat.php
Now, when user submit his/her first text "hello" no reply has been displayed in the chatbot but the following error is shown in the console:
Warning: var_export does not handle circular references in E:\xampp\htdocs\botman\vendor\doctrine\cache\lib\Doctrine\Common\Cache\PhpFileCache.php on line 96
{"status":200,"messages":[{"type":"text","text":"Hello! What is your firstname?","attachment":null,"additionalParameters":[]}]}
And if I'm submitting any text again then chatbot does not show anything but generates the following error in console:
Fatal error: Uncaught Error: Call to undefined method BotMan\BotMan\BotMan::__set_state() in E:\xampp\htdocs\botman\cache\1c\5b636f6e766572736174696f6e2d353966353132663464333136393666346630313032376261376438303834363933353464363663352d353966353132663464333136393666346630313032376261376438303834363933353464363663355d5b315d.doctrinecache.php:9 Stack trace:
Here I have attached my project code zip and the screenshot of the chatbot.
botman.zip
Please find the attachments and tell me how can i solve this issues.
Thank You
Hi, Probably the php execution fail. Check you web server log fro the error message.
Hi Marcel,
Today first time I have used Botman application. I have created a web-widget by using simple php file (without using any framework and without BotMan Studio). Initially I have implemented a basic example and it worked fine.
Then I try to implement the conversation logic by using the same files but its not working. when user submit a reply bot unable to read it and display it on the next phase.
In my project root there are only one folder "vendor" and 5 files composer.json. composer.lock, index.php, chat.php and chat.html
I'm using the PHP version: 7.1.11
Here I'm attaching my project folder
botman.zip
so you can check the issue and suggest me the actual solution for it.