FreiChat related discussions
Installing on custom CMS/SITE

I installed FCX on my website. My users login with email and password.
The userID is stored in a cookie. When i set up FCH for showing -GUESTS- it seems to work.

The next step was to connect FCX to my userbase. I added a line to store the userid also in a session.

>> Question: is it necessary to store the userid in a session?

I also made a change to the arp.php on lines 182 -> 185 i changed the names to the field values of mij own user database. A few lines above i see the correct acces settings for my database.

>>Question: In the FEILOG.LOG there are the next reports i cant -place-:
March 14, 2012, 12:31 am: Wrong method defined!
March 14, 2012, 12:31 am: connected to database successfully
March 14, 2012, 12:31 am: Unable to store in session

The connection is ok, but what's the meaning of line 1 and 3 of this ?

When i change the administrator setting to -users- the chat is not showing up at the location where the userid is stored in a session/cookie. On the location where no user is logged in, the box shows up and reports to log in.

Do you have suggestions for me ?

I installed FCX on my website. My users login with email and password. The userID is stored in a cookie. When i set up FCH for showing -GUESTS- it seems to work. The next step was to connect FCX to my userbase. I added a line to store the userid also in a session. >> Question: is it necessary to store the userid in a session? I also made a change to the arp.php on lines 182 -> 185 i changed the names to the field values of mij own user database. A few lines above i see the correct acces settings for my database. >>Question: In the FEILOG.LOG there are the next reports i cant -place-: March 14, 2012, 12:31 am: Wrong method defined! March 14, 2012, 12:31 am: connected to database successfully March 14, 2012, 12:31 am: Unable to store in session The connection is ok, but what's the meaning of line 1 and 3 of this ? When i change the administrator setting to -users- the chat is not showing up at the location where the userid is stored in a session/cookie. On the location where no user is logged in, the box shows up and reports to log in. Do you have suggestions for me ?
>> Question: is it necessary to store the userid in a session?

No , if you read the online documentation , its written , you can use SESSION or COOKIE .


The errors in freixlog.log shows that , you have passed the userid wrong/null .
<em>>> Question: is it necessary to store the userid in a session? </em> No , if you read the online documentation , its written , you can use SESSION or COOKIE . The errors in freixlog.log shows that , you have passed the userid wrong/null .
Necessity is the mother of all inventions!

i did a clean setup, i am getting this error

Fatal error: Call to a member function fetchAll() on a non-object in /path/to/freichat/server/drivers/Custom.php on line 33

i did a clean setup, i am getting this error <b>Fatal error</b>: Call to a member function fetchAll() on a non-object in <b>/path/to/freichat/server/drivers/Custom.php</b> on line <b>33</b><br />

.in freichat version 521 i dont get the error in custom.php

.in freichat version 521 i dont get the error in custom.php

The custom installation has changed a bit from 5.x versions.
Did you check out these?
http://evnix.com/drupal2/node/459 (video)
and
http://evnix.com/drupal2/node/328

The custom installation has changed a bit from 5.x versions. Did you check out these? http://evnix.com/drupal2/node/459 (video) and http://evnix.com/drupal2/node/328
Necessity is the mother of all inventions!

yes i read the instructions for 632. i installed it conform your information. i get an error on custom.php on line 33

yes i read the instructions for 632. i installed it conform your information. i get an error on custom.php on line 33

I am getting the same error, cant seem to figure out how to resolve it.

I am getting the same error, cant seem to figure out how to resolve it.

I actually got mine fixed, I was looking that the wrong arg.php file from a previous attempt. Once I fixed the Database values in there it worked fine.

I actually got mine fixed, I was looking that the wrong arg.php file from a previous attempt. Once I fixed the Database values in there it worked fine.

ik did again new clean install .. but the error stays! very strange

ik did again new clean install .. but the error stays! very strange

on new installed version i am getting again:

Fatal error: Call to a member function fetchAll() on a non-object in /home/domains/public_html/path/to/freichat/server/drivers/Custom.php on line 33

on new installed version i am getting again: <br /> <b>Fatal error</b>: Call to a member function fetchAll() on a non-object in <b>/home/domains/public_html/path/to/freichat/server/drivers/Custom.php</b> on line <b>33</b><br />

Make sure you have correctly edited the arg.php .

Make sure you have correctly edited the arg.php .
Necessity is the mother of all inventions!

I did a lot of testing .

First i made a sample registration form .
Then used both Cookie as well as Session to pass the users id to freichat .
And both worked without problems .

So you have made some mistake while editing arg.php .

After that i purposely entered wrong data in arg.php .
and it gave me the same error as you have mentioned .
Please verify whether you have provided the correct info about your user table to freichat .
Its the second step in cutom installation in below link
http://evnix.com/drupal2/node/328

I did a lot of testing . First i made a sample registration form . Then used both Cookie as well as Session to pass the users id to freichat . And both worked without problems . So you have made some mistake while editing arg.php . After that i purposely entered wrong data in arg.php . and it gave me the same error as you have mentioned . Please verify whether you have provided the correct info about your user table to freichat . Its the second step in cutom installation in below link http://evnix.com/drupal2/node/328
Necessity is the mother of all inventions!

the installer also says to put the next code in to my site:it reports versions 5x code.







<!--==========================FreiChatX====VERSIONS====5.X====START========================-->
<!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code
Then remove FreiChatX tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->

<?php $ses=null;


**here i put $ses=$_COOKIE[''] if is logged in on my site.


if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

if(is_file("/home/xx/domains/xx.nl/public_html/freichat/arg.php")){

require "/home/xx/domains/xx.nl/public_html/freichat/arg.php";

$temp_id = $ses . $uid;

return md5($temp_id);

}
else
{
echo "<script>alert('module freichatx says: arg.php file not found!');";
}

return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="http://www.xx.nl/freichat/client/main.php?id=&lt;?php%20echo%20%24ses;?&gt;&amp;xhash=&lt;?php%20echo%20freichatx_get_hash(%24ses);%20?&gt;"></script><script type="text/javascript" language="javascipt" src="http://evnix-dot-com.appspot.com/?time=&lt;?php%20echo%20time();%20?&gt;"></script><link rel="stylesheet" href="http://www.xx.nl/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"><!-- NOTE:: The copypaste code differs from 4.X to 5.X and may differ for further versions--><!-- So to be at a safer side always replace the entire FreiChatX code during installation--><!--===========================FreiChatX====VERSIONS====5.X====END=========================-->

the installer also says to put the next code in to my site:it reports versions 5x code. &amp;lt;!--==========================FreiChatX====VERSIONS====5.X====START========================--&amp;gt; &amp;lt;!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code Then remove FreiChatX tables frei_session &amp; frei_chat if necessary The best/recommended way is using the module for installation --&amp;gt; &amp;lt;?php $ses=null; **here i put $ses=$_COOKIE[&#039;&#039;] if is logged in on my site. if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(&quot;/home/xx/domains/xx.nl/public_html/freichat/arg.php&quot;)){ require &quot;/home/xx/domains/xx.nl/public_html/freichat/arg.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &quot;&amp;lt;script&amp;gt;alert(&#039;module freichatx says: arg.php file not found!&#039;);&amp;lt;/script&amp;gt;&quot;; } return 0; } } ?&amp;gt; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot;src=&quot;http://www.xx.nl/freichat/client/main.php?id=&amp;lt;?php echo $ses;?&amp;gt;&amp;xhash=&amp;lt;?php echo freichatx_get_hash($ses); ?&amp;gt;&quot;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://evnix-dot-com.appspot.com/?time=&amp;lt;?php echo time(); ?&amp;gt;&quot; &amp;gt;&amp;lt;/script&amp;gt; &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;http://www.xx.nl/freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt; &amp;lt;!-- NOTE:: The copypaste code differs from 4.X to 5.X and may differ for further versions--&amp;gt; &amp;lt;!-- So to be at a safer side always replace the entire FreiChatX code during installation--&amp;gt; &amp;lt;!--===========================FreiChatX====VERSIONS====5.X====END=========================--&amp;gt;

It reports 5x code but it remains the same for 6x too .

But This is only the first step of custom installation .

I want to know exactly what changes you did in the second step
i.e editing arg.php

It reports 5x code but it remains the same for 6x too . But This is only the first step of custom installation . I want to know exactly what changes you did in the second step i.e editing arg.php
Necessity is the mother of all inventions!

i did again a clean setup. and repeated al steps. Somehow it seems to work now.
I can connect to my users database. There was only 1 major change of my last setup:

- i placed the FREICHAT folder in the root dir of the site e.g. : www/freichat
before i placed it in www/scripts/freichat


i did again a clean setup. and repeated al steps. Somehow it seems to work now. I can connect to my users database. There was only 1 major change of my last setup: - i placed the FREICHAT folder in the root dir of the site e.g. : www/freichat before i placed it in www/scripts/freichat
175
16
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft