blopa / Magento-Chatbot

Magento Chatbot Integration with Telegram, Messenger, Whatsapp, WeChat, Skype and wit.ai.
MIT License
176 stars 62 forks source link

Include Path Issue #61

Closed woelig closed 7 years ago

woelig commented 7 years ago

Hello,

I also have setup your extension for Facebook Chat Bot. I have filled all the information. Now I am facing problem in accessing the url with the custom key.

After making a call to http://www.website.com/chatbot/chatdata/facebook/key/69398037409 I get the following PHP error Fatal error: require_once(): Failed opening required 'Api/witAI/witAI.php' (include_path='/var/www/htdocs/lib/minify:/var/www/htdocs/includes/src:.:/usr/local/lib/php') in /var/www/htdocs/includes/src/Werules_Chatbot_Model_Chatdata.php on line 7

If I view my var/log/system.log it's basically the same problem 2017-06-20T16:33:41+00:00 ERR (3): Warning: require_once(Api/witAI/witAI.php): failed to open stream: No such file or directory in /var/www/htdocs/includes/src/Werules_Chatbot_Model_Chatdata.php on line 7 2017-06-20T16:33:54+00:00 ERR (3): Warning: require_once(Api/witAI/witAI.php): failed to open stream: No such file or directory in /var/www/htdocs/includes/src/Werules_Chatbot_Model_Chatdata.php on line 7

Any idea on how to fix this? Oh and great work on this :)

woelig commented 7 years ago

This error occurs after running shell/compiler.php compile

blopa commented 7 years ago

Hello. Thank you for submitting this issue. Have you tried using the extensions without running shell/compiler?

woelig commented 7 years ago

Hello Blopa,

I managed to get it working with the bot responding :) when clearing the compiled data. But after the files is compiled it starts giving issues.

blopa commented 7 years ago

Could you clarify exactly what you did? It might help others in the future.

blopa commented 7 years ago

I'm gonna close this for now. Feel free to open a new issue if you need help.