Spent whole day try to solve this. Only got more problems after one is fixed. Surprised there is no single tutorial of integrating freichat with codoforum which all from CODOLOGIC!
I am using Mac's built in Apache server
My codoforum is installed locally under /Library/WebServer/Documents/codoforum
My freitchat is under
/Library/WebServer/Documents/freichat
I am trying to install freiChat. Following is a step by step description what I have done and what problem I have solved.
INSTALL OF FREICHAT:
- Accept.
- Choose Integration Type as Customized
- All filed required writable, make them writable.
- Mysql set up
after submit, get this in response :
Well done! Successfully connected to your database
Then create table, meet with problems, and then I manually run
freichat/installation/install.sql in db.
- WebSite Integration
I got a block of code with such a instruction :
Copy-paste the following code after <head> tag in your index.php or your template/theme file
I spent at least one hour to search and figure out what the hell does this mean in codoforum. Finally, I find a place to paste which is :
I am not going to paste that long block of code here. But I use exactly what it provided me. I read posts saying only include <script> and <link> lines. but when I do it that way, feel like I am more wrong.
/Library/WebServer/Documents/codoforum/sites/default/themes/default/templates/layout.tpl
everything feels good till now, and then all things become unsolvable.
I enter my url : http://localhost/codoforum
submit and of course, didn't see FreiChat at all.
Then I click NO. It said, freichat code is not found...
first try got stuck here.
Checking the console from browser
the problem is sourcing main.php return error 500
there is get error when sourcing main.php
This takes me hours to figure it out.
I forgot how, it seems to be something about permission, but setting the whole client folder to 777 NOT solve this problem. I really can't remember what did I do, but magically I make this work.
Then when I decided to write this post, I delete Freichat and decided to install it again. Holy shit. I am stuck here again.
500 error when sourcing main.php
Other problems also never be able to fix include:
hardcode.php is NEVER found.
(this is a pretty common issue)
uncaught typeerro: cannot read property 'length' of undifined
(this is common issue, I read some post saying use latest jquery 1.9.1 would solve.)
The most close place I have ever reached is that having freicaht's json part found in my site but not showed because of probably json issues.
efforts made include change client side setting is freichat's backend.
chaning fields' values in hardcode.php
I have spent hours reading many posts. I am so surprised why there is so little helpful information regarding to install freichat in codoforum.
What could I say?