Author Topic: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0  (Read 20459 times)

0 Members and 1 Guest are viewing this topic.

enkiduwd

  • Full Member
  • ***
  • Posts: 19
    • Polish translation
Installation went ok. Button code generation: ok.
and then: Bang!
Quote
Not Acceptable

An appropriate representation of the requested resource /webim/client.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any suggestion would be appreciated.

EDIT 1) Webim button was placed on the website on other domain (include domain name in the button code checked).
EDIT 2) I can use webim button from local disc but not if website is on the server. Probably referrer issue.


[partly solved]:
modified button code:
Code: [Select]
<!-- webim button --><a href="http://www.mydomain.com/webim/client.php?locale=en" target="_blank" onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 &amp;&amp; window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('http://www.mydomain.com/webim/client.php?locale=en', 'webim', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img src="http://www.mydomain.com/webim/button.php?image=webim&amp;lang=en" border="0" width="163" height="61" alt=""/></a><!-- / webim button -->

For now  - it's ok.
Still - I am not very happy with this solution.

Browser: Firefox and Opera

Server:
cPanel Version   11.24.4-RELEASE
cPanel Build   35075
Apache version   2.2.10 (Unix)
PHP version   5.2.6
MySQL version   5.0.67-community
Architecture   x86_64
Operating system    Linux
« Last Edit: June 11, 2009, 12:12:52 PM by enkiduwd »

Eddybaur

  • Native
  • *****
  • Posts: 237
  • Mibew Member
    • Mibew
Re: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0
« Reply #1 on: May 11, 2009, 10:33:54 PM »
Chromo the files 644...hope that helps :)

enkiduwd

  • Full Member
  • ***
  • Posts: 19
    • Polish translation
Re: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0
« Reply #2 on: May 11, 2009, 10:41:35 PM »
already did it. every file is 644 and every folder - 755

I will solve it this way or another... so no worries. Anyway - this is interesting. I removed some code from button html and now it's working perfectly. What was the purpose of this commands? And do I really need it?
That's my friend is a complicated question...

Anyway:  I don't believe  I am the only one with this problem. Any ideas welcome!

Cheers!

Inspirer

  • Mibew Project founder
  • Native
  • *****
  • Posts: 262
    • Mibew Messenger
Re: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0
« Reply #3 on: June 03, 2009, 11:58:20 PM »
Some add-ons on your server can block requests. For example, anti-sql-injection filter forbids word "createtable" in the url and produces 404 error.

enkiduwd

  • Full Member
  • ***
  • Posts: 19
    • Polish translation
Re: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0
« Reply #4 on: June 06, 2009, 01:07:24 PM »
Some add-ons on your server can block requests. For example, anti-sql-injection filter forbids word "createtable" in the url and produces 404 error.

I think, you didn't read carefully. I haven't got problem with installation or Mysql.
The only problem I've got is a button html code. My server for some reason not like "referrer"  part of it.
Modification of button code solving this problem.
Cheers!

Eddybaur

  • Native
  • *****
  • Posts: 237
  • Mibew Member
    • Mibew
Re: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0
« Reply #5 on: June 06, 2009, 02:13:58 PM »
I'll fix the button code soon.

Eddybaur

  • Native
  • *****
  • Posts: 237
  • Mibew Member
    • Mibew
Re: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0
« Reply #6 on: June 09, 2009, 10:19:36 PM »
Ok guys, inspirer and i finally figured out the fix.  Here's what you do.
Add the following line to your .htaccess file.

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

source:http://www.reaper-x.com/2007/03/22/hostgator-tips-temporarily-disable-modsecurity/

I'm betting it'd work more then just HostGator users.

enkiduwd

  • Full Member
  • ***
  • Posts: 19
    • Polish translation
Re: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0
« Reply #7 on: June 10, 2009, 01:15:32 PM »
ThX!

I will try it and report.
EDIT: Nope.... That's not working. Anyway - thank you guys for trying!

I wonder if there are some other people with the same problem?  For now it seems - it only me. If this is true - that means it is not a problem with mibew but probably something wrong with my server settings.

From my point of view - after button html code modification webim is fully functional so the problem is rather minor one.

Thanks again!
« Last Edit: June 11, 2009, 12:11:20 PM by enkiduwd »

spd23

  • Jr. Member
  • **
  • Posts: 1
Re: 406 (not acceptable) + 404 (not found) errors webim v. 1.6.0
« Reply #8 on: October 26, 2012, 04:49:19 PM »
hey guys, i'm having this issue was there ever a solution to this? been sat looking at the button code for a hour or so and can not figure it out. For some reason it works if i right click and open new tab, but just clicking on the button on my homepage it errors?

any help would be appriciated  :) thanks in advance

Button Code:
<!-- webim button --><a href="http://www.mydomain.com/chat/client.php?locale=en&amp;style=default " target="_blank" onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 &amp;&amp; window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('http://www.mydomain.com/chat/client.php?locale=en&amp;style=default&amp;url='+escape(document.location.href)+'&amp;referrer='+escape(document.referrer ), 'chat', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img src="http://www.mydomain.com/chat/b.php?i=webim&amp;lang=en " border="0" width="163" height="61" alt=""/></a><!-- / webim button -->
« Last Edit: October 26, 2012, 04:52:13 PM by spd23 »