General > Support
Chat button not displaying on page
shockwaveenigma:
Hi, People.
I have successfully done my installation on my test server.
Two things happens
1. The chat button with image doesnt display on my website after copying and pasting the html generated code, only the button with the plain text displays
2. Clicking on the "Click to Chat" button displays some jibrish i dont understand.
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"); } ?>
Please how can i resolve this?
Dmitriy Simushev:
Unfortunately I have no crystal ball in the room.
If you want help you should provide details about the problem:
1. What version of Mibew do you use, on which OS?
2. Which browser you've tried to use?
3. What exactly you do to get the error? How one can reproduce the problem?
and so on...
shockwaveenigma:
About the challenge i posted earlier let me shed more light on the issue
1st i use mibew 1.6.12 and i ran the installation using Wamp server running on windows 7.
My browser is firefox.
I copied the html code for the image button to my institutional repository, but the button doesnt appear
but when i copied the html code for the text button it appears
on clicking on the button to chat, it brings up the chat window but with errors
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"); } ?>
The above error is what shows up when you click to chat.
I hope this info will help in assisting me resolve this issue.
if more information is needed please let me know i have gone too far with this.
kindly assist
Dmitriy Simushev:
It seems that you have a problem with apache. It should not output PHP code to a browser but it does. Is there anything in apache's error log?
Also the files of Mibew may be corrupted. Where did you get Mibew? Did you change any files of it?
shockwaveenigma:
Its true that i get apache displaying in my web browser, when i checked the error log
i saw some items like;
1. http internal server error
The server encountered an internal error and was
unable to complete your request. Either the server is
overloaded or there was an error in a CGI script.
2. http bad gateway
The proxy server received an invalid
response from an upstream server.
3. http preconditioned failed.
i downloaded the mibew from a different site other than mibew.org
are you suggesting i reinstall mibew?
the only file changed is the config.php file
thanks for your response
Navigation
[0] Message Index
[#] Next page
Go to full version