General > Support

Chat button not displaying on page

<< < (2/2)

Dmitriy Simushev:
I'm sorry, but I cannot support any custom versions of Mibew. Try to ask the same questions in the place where you've got your version.

Or you can try to download and install the official version.

shockwaveenigma:
Hi, everyone
in response to your last response, i uninstalled the mibew i previously installed and downloaded mibew from the official website
ran the installation but still ended up with the same error.
You are right when u said that "It seems that you have a problem with apache" the local site where i copied the code for the button to, is Dspace and it uses Apache Tomcat.
The link below is what comes up when you click on the chat button with errors
http://localhost:8080/mibewim/client.php?locale=en&url=http%3A//localhost%3A8080/jspui/&referrer=http%3A//localhost%3A8080/jspui/mydspace

intval($postedid)), $link); } } notify_operators($thread, $firstmessage, $link); mysql_close($link); } $threadid = $thread['threadid']; $token = $thread['ltoken']; $level = get_remote_level($_SERVER['HTTP_USER_AGENT']); $chatstyle = verifyparam( "style", "/^\w+$/", ""); header("Location: $mibewroot/client.php?thread=$threadid&token=$token&level=$level".($chatstyle ? "&style=$chatstyle" : "")); exit; } $token = verifyparam( "token", "/^\d{1,10}$/"); $threadid = verifyparam( "thread", "/^\d{1,10}$/"); $level = verifyparam( "level", "/^(ajaxed|simple|old)$/"); $thread = thread_by_id($threadid); if( !$thread || !isset($thread['ltoken']) || $token != $thread['ltoken'] ) { die("wrong thread"); } setup_chatview_for_user($thread, $level); $pparam = verifyparam( "act", "/^(mailthread)$/", "default"); if( $pparam == "mailthread" ) { expand("styles", getchatstyle(), "mail.tpl"); } else if( $level == "ajaxed" ) { expand("styles", getchatstyle(), "chat.tpl"); } else if( $level == "simple" ) { expand("styles", getchatstyle(), "chatsimple.tpl"); } else if( $level == "old" ) { expand("styles", getchatstyle(), "nochat.tpl"); } ?>

If i copy this link and paste it in the address bar without the 8080 it comes up fine.
So i was wondering is it because Dspace and Mibew are running on the same local server or they are having problems with the apache ?

Please kindly assist.
Thank you

Dmitriy Simushev:
It seems that your mibew button contains relative URL instead of absolute one. All request to 8080 port are processed by Apache Tomcat which knows nothing about PHP. That is why you see the content of a Mibew script.

Try to tick the "Include host name into the code" checkbox when you generate mibew button code, then replace the button code on the target site.

shockwaveenigma:
Hi Dmitriy,
I checked the box when i generated the code for the button. When i copied the code to the target site every thing worked just fine. Thank you so much.

Navigation

[0] Message Index

[*] Previous page

Go to full version