Author Topic: 405 error : Method Not Allowed  (Read 17865 times)

mbacke

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #15 on: January 05, 2009, 06:14:30 am »
Sorry, I'm on a hosting and dont have access to apache log. The only error log I have acces to is the error log in cpanel, and that only reported one file;
[Mon Jan  5 03:36:32 2009] [error] [client 97.226.2xx.xx] File does not exist: /home/USER/public_html/OpenGoo/public/assets/themes/default/stylesheets/custom.css

I took a copy of website.css, and renamed it to custom.css, so that error is now gone..

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #16 on: January 05, 2009, 04:09:42 pm »
That error is nothing to worry about. But I would recommend you that you make custom.css an empty file. Because website.css includes custom.css, and if you copied website.css into custom.css it will include itself. That migh cause trouble to some browser.

werner.wuerfel

  • Sr. Member
  • ****
  • Posts: 319
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #17 on: January 08, 2009, 03:33:56 am »
Is there a timeline to fix the error 405 or an workaround to turn off this error

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #18 on: January 09, 2009, 09:58:18 am »
We don't know yet what causes it. It seems that it only occurs in Apache 1.3, not on Apache 2+ (the recommended webserver for OpenGoo). Try if this removes the error:

Change line 5 of file 'public/assets/javascript/og/HelpPanel.js' to:
Code: [Select]
data: 'dummy.php'

werner.wuerfel

  • Sr. Member
  • ****
  • Posts: 319
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #19 on: January 10, 2009, 11:09:01 am »
Change line 5 of file 'public/assets/javascript/og/HelpPanel.js' to:

Code: [Select]
data: 'public/help/dummy.php'
and put an emty file dummy.php into public/help/ turned off error 405.

So thanks very much for your help.

Now we will talk with our provider to change Apache 1.3 to 2.0 - if it is possible

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #20 on: January 22, 2009, 05:42:53 pm »
Hi,

Please, try if this fixes the problem (and if it doesn't produce another one ;):
Edit file 'public/assets/javascript/og/og.js', line 430 (line 399 on OG 1.1), change from:
Code: [Select]
method: 'POST',to:
Code: [Select]
method: options.post == " " ? 'GET' : 'POST',

stubenhacker

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: 405 error : Method Not Allowed
« Reply #21 on: January 22, 2009, 07:34:11 pm »
Change line 5 of file 'public/assets/javascript/og/HelpPanel.js' to:
Code: [Select]
data: 'dummy.php'

this fixed my problem, no more 405, thanks a lot!

werner.wuerfel

  • Sr. Member
  • ****
  • Posts: 319
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #22 on: January 24, 2009, 06:42:50 pm »
Hi ignacio,

with your change in file 'public/assets/javascript/og/og.js', line 430 (line 399 on OG 1.1) we have no more Error 405 under Apache 1.3 and now we see the help file.

Thanks very much for your support. This will help us, because our provider will not change Apache 1.3 to 2.0.


Arthur Mullard

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #23 on: February 05, 2009, 11:19:33 am »
I've done all suggested on this thread but still no joy - 405 still part of my day! 
Can't change host use of Apache 1.3.41 (Unix) :(

using open goo 1.1


ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #24 on: February 06, 2009, 09:37:17 am »
I'm pretty sure this was fixed on 1.2. Try deleting from file 'public/assets/javascript/og/og.js':
line 392:
Code: [Select]
if (!options.post) options.post = " ";
line 399:
Code: [Select]
method: 'POST',
line 401-403:
Code: [Select]
headers: {
'Content-Length': '' + options.post.length
},

Note that if you are using minified JS (by default you're not) you need to minify again after modifying javascript files like this one.

Arthur Mullard

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: 405 error : Method Not Allowed
« Reply #25 on: March 02, 2009, 06:18:28 pm »
All solved for us: no 405 Errors since 1.2.01. Thanks!