InMotion Hosting Support Center

Blocking Rest PUT Call - 501 (Method Not Implemented)

Category: Drupal 7

InMotionFans
n/a Points
Asked:
2015-01-09 10:56 am EST

Hits: 1,220
I am doing a REST services call and I keep getting a 501 (Method Not Implemented). Is it possible that my server is blocking this call? Please help me? the site I am working on is one of my reseller accounts. My website is whateslseit.com. Below is the error i am getting when I make the call from within the app. I can walk someone through this if that helps.

HERE IS THE ERROR:

PUT http://whatelseit.com/?q=drupalgap/user/5.json 501 (Method Not Implemented)
jdrupal-7.x-1.0.min.js:31 PUT: http://whatelseit.com/?q=drupalgap/user/5.json - 501 -
jdrupal-7.x-1.0.min.js:32 <!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="http://whatelseit.com/misc/favicon.ico" type="image/vnd.microsoft.icon" />
<meta name="generator" content="Drupal 7 (http://drupal.org)" />
<link rel="canonical" href="http://whatelseit.com/" />
<link rel="shortlink" href="http://whatelseit.com/" />
<meta property="og:site_name" content="WhatElseIt.com" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://whatelseit.com/" />
<meta property="og:title" content="WhatElseIt.com" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1" />
<title>WhatElseIt.com</title>
<style type="text/css" media="all">
@import url("http://whatelseit.com/modules/system/system.base.css?nhvni8");
</style>
<style type="text/css" media="all">
@import url("http://whatelseit.com/sites/all/modules/date/date_api/date.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/date/date_popup/themes/datepicker.1.7.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/date/date_repeat_field/date_repeat_field.css?nhvni8");
@import url("http://whatelseit.com/modules/field/theme/field.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/logintoboggan/logintoboggan.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/office_hours/office_hours.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/views/css/views.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/jquerymobile/jquerymobile.css?nhvni8");
</style>
<style type="text/css" media="all">
@import url("http://whatelseit.com/sites/all/modules/ctools/css/ctools.css?nhvni8");
</style>
<style type="text/css" media="all">
@import url("http://whatelseit.com/sites/all/themes/mobile_jquery/styles/mobile_jquery.css?nhvni8");
</style>
<style type="text/css" media="all">
@import url("http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile.structure-1.0.1.min.css?nhvni8");
@import url("http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css?nhvni8");
</style>
<meta name="apple-itunes-app" content="app-id=885223415">
<link rel="apple-touch-icon" href="/sites/all/themes/bioclinica_mobile/images/apple-touch-icon.png"/>
<link rel="stylesheet" href="/sites/all/themes/bioclinica_mobile/styles/mydiafun.min.css" />
<link rel="stylesheet" href="/sites/all/themes/bioclinica_mobile/styles/bioclinica_mobile.css" />




<script type="text/javascript" src="http://whatelseit.com/misc/jquery.js?v=1.4.4"></script>
<script type="text/javascript" src="http://whatelseit.com/misc/jquery.once.js?v=1.2"></script>
<script type="text/javascript" src="http://whatelseit.com/misc/drupal.js?nhvni8"></script>
<script type="text/javascript" src="http://whatelseit.com/sites/all/libraries/jquery-1.6.4/jquery-1.6.4.min.js?v=1.6.4"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
var jqm = jQuery.noConflict();
jqm(document).bind("mobileinit", function() {

jqm.mobile.ns = "";
jqm.mobile.autoInitializePage = ;
jqm.mobile.subPageUrlKey = "";
jqm.mobile.activePageClass = "";
jqm.mobile.activeBtnClass = "";
jqm.mobile.ajaxEnabled = ;
jqm.mobile.hashListeningEnabled = ;
jqm.mobile.defaultPageTransition = "";
jqm.mobile.defaultDialogTransition = "";
jqm.mobile.minScrollBack = "";
jqm.mobile.loadingMessage = "";
jqm.mobile.pageLoadErrorMessage = "";
jqm.mobile.linkBindingEnabled = ;
jqm.mobile.pushStateEnabled = ;
jqm.mobile.touchOverflowEnabled = ;
});
//--><!]]>
</script>
<script type="text/javascript" src="http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.js?v=1.0.1"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"bioclinica_mobile","theme_token":"1GIvhdwTwTeP8spKkRpwfSVeMHwxFmjBecIETzlmVHw","css":{"modules\/system\/system.base.css":1,"sites\/all\/modules\/date\/date_api\/date.css":1,"sites\/all\/modules\/date\/date_popup\/themes\/datepicker.1.7.css":1,"sites\/all\/modules\/date\/date_repeat_field\/date_repeat_field.css":1,"modules\/field\/theme\/field.css":1,"sites\/all\/modules\/logintoboggan\/logintoboggan.css":1,"sites\/all\/modules\/office_hours\/office_hours.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/jquerymobile\/jquerymobile.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"sites\/all\/themes\/mobile_jquery\/styles\/mobile_jquery.css":1,"sites\/all\/themes\/mobile_jquery\/styles\/test.min.css":1,"sites\/all\/libraries\/jquery.mobile-1.0.1\/jquery.mobile.structure-1.0.1.min.css":1,"sites\/all\/libraries\/jquery.mobile-1.0.1\/jquery.mobile-1.0.1.min.css":1},"js":{"misc\/jquery.js":1,"misc\/
jquery.once.js":1,"misc\/drupal.js":1,"sites\/all\/libraries\/jquery-1.6.4\/jquery-1.6.4.min.js":1,"0":1,"sites\/all\/libraries\/jquery.mobile-1.0.1\/jquery.mobile-1.0.1.min.js":1}}});
//--><!]]>
</script>
<script type="text/javascript" src="/sites/all/themes/bioclinica_mobile/scripts/bioclinica_mobile.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-58150376-1', 'auto');
ga('send', 'pageview');

</script>
</head>
<body class="html front logged-in one-sidebar sidebar-first page-node" >

<div data-theme="a" data-role="page" class="page type-home">
<div class="header" data-theme="a" data-position="inline" data-role="header">
<h1 class="site-name"><a href="/">WhatElseIt.com</a></h1>






</div> <!-- /#header -->


<div class="main-content" data-theme="a" data-role="content">

<div class="content-primary">


<h2 class="title" class="page-title">Welcome to WhatElseIt.com</h2> <div class="region region-content">
<div id="block-system-main" class="block block-system">


<div class="content">
<div id="first-time"><p>No front page content has been created yet.</p></div> </div>
</div>
</div>
</div> <!-- /.content-primary -->

<div class="content-secondary">

<div class="navigation">
<ul id="main-menu" class="links inline clearfix" data-role="listview" data-inset="true" data-theme="a" data-divider-theme="a" data-count-theme="a" data-split-theme="a" data-split-icon="arrow-r"><li data-icon="arrow-r" class="menu-218 first last active"><a href="/" class="active">Home</a></li>
</ul> </div> <!-- /#navigation -->

<div class="sidebar-first" class="column sidebar">
<div class="region region-sidebar-first">
<div id="block-search-form" class="block block-search">


<div class="content">
<form action="/?q=drupalgap/user/5.json" method="post" id="search-block-form" accept-charset="UTF-8"><div><div>
<h2 class="element-invisible">Search form</h2>
<label for="edit-search-block-form--2">&nbsp; </label>
<input title="Enter the terms you wish to search for." data-type="search" type="text" id="edit-search-block-form--2" name="search_block_form" value="" size="15" maxlength="128" class="form-text" />
<input type="hidden" name="form_build_id" value="form-J3muutkdjjFwsjHoLIo6koPJXK66gfZQFzS6R1X_tGY" />
<input type="hidden" name="form_token" value="AmAuSlKBOOytQ9O0pxB2L0LK2g46-9V8R85dhGgyowE" />
<input type="hidden" name="form_id" value="search_block_form" />
</div>
</div></form> </div>
</div>
</div>
</div> <!-- /#sidebar-first -->

</div><!-- /.content-secondary -->

</div>

<div class="footer ui-state-persist" data-theme="a" data-position="inline" data-role="footer">
<div class="region region-footer">
<div id="block-system-powered-by" class="block block-system">


<div class="content">
<span>Powered by <a href="http://drupal.org">Drupal</a></span> </div>
</div>
</div>
</div> <!-- /#footer -->


</div> <!-- /#page -->


<script type="text/javascript">
(function ($) {
$('[data-role=page]').live('pageshow', function (event, ui) {
try {
_gaq.push(['_setAccount', 'UA-40756456-1']);

hash = location.hash;

if (hash) {
_gaq.push(['_trackPageview', hash.substr(1)]);
} else {
_gaq.push(['_trackPageview']);
}
} catch(err) {

}

});
}(jQuery));
</script>
</body>
</html>

jdrupal-7.x-1.0.min.js:32 Date: Thu, 08 Jan 2015 21:48:23 GMT
Last-Modified: Thu, 08 Jan 2015 21:48:23 GMT
Server: Apache
X-Powered-By: PHP/5.4.36
ETag: "1420753703"
Content-Language: en
X-Generator: Drupal 7 (http://drupal.org)
Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0
Connection: close
Content-Type: text/html; charset=utf-8
Link: <http://whatelseit.com/>; rel="canonical",<http://whatelseit.com/>; rel="shortlink"
Expires: Sun, 19 Nov 1978 05:00:00 GMT

jdrupal-7.x-1.0.min.js:32 <!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="http://whatelseit.com/misc/favicon.ico" type="image/vnd.microsoft.icon" />
<meta name="generator" content="Drupal 7 (http://drupal.org)" />
<link rel="canonical" href="http://whatelseit.com/" />
<link rel="shortlink" href="http://whatelseit.com/" />
<meta property="og:site_name" content="WhatElseIt.com" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://whatelseit.com/" />
<meta property="og:title" content="WhatElseIt.com" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1" />
<title>WhatElseIt.com</title>
<style type="text/css" media="all">
@import url("http://whatelseit.com/modules/system/system.base.css?nhvni8");
</style>
<style type="text/css" media="all">
@import url("http://whatelseit.com/sites/all/modules/date/date_api/date.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/date/date_popup/themes/datepicker.1.7.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/date/date_repeat_field/date_repeat_field.css?nhvni8");
@import url("http://whatelseit.com/modules/field/theme/field.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/logintoboggan/logintoboggan.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/office_hours/office_hours.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/views/css/views.css?nhvni8");
@import url("http://whatelseit.com/sites/all/modules/jquerymobile/jquerymobile.css?nhvni8");
</style>
<style type="text/css" media="all">
@import url("http://whatelseit.com/sites/all/modules/ctools/css/ctools.css?nhvni8");
</style>
<style type="text/css" media="all">
@import url("http://whatelseit.com/sites/all/themes/mobile_jquery/styles/mobile_jquery.css?nhvni8");
</style>
<style type="text/css" media="all">
@import url("http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile.structure-1.0.1.min.css?nhvni8");
@import url("http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css?nhvni8");
</style>
<meta name="apple-itunes-app" content="app-id=885223415">
<link rel="apple-touch-icon" href="/sites/all/themes/bioclinica_mobile/images/apple-touch-icon.png"/>
<link rel="stylesheet" href="/sites/all/themes/bioclinica_mobile/styles/mydiafun.min.css" />
<link rel="stylesheet" href="/sites/all/themes/bioclinica_mobile/styles/bioclinica_mobile.css" />




<script type="text/javascript" src="http://whatelseit.com/misc/jquery.js?v=1.4.4"></script>
<script type="text/javascript" src="http://whatelseit.com/misc/jquery.once.js?v=1.2"></script>
<script type="text/javascript" src="http://whatelseit.com/misc/drupal.js?nhvni8"></script>
<script type="text/javascript" src="http://whatelseit.com/sites/all/libraries/jquery-1.6.4/jquery-1.6.4.min.js?v=1.6.4"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
var jqm = jQuery.noConflict();
jqm(document).bind("mobileinit", function() {

jqm.mobile.ns = "";
jqm.mobile.autoInitializePage = ;
jqm.mobile.subPageUrlKey = "";
jqm.mobile.activePageClass = "";
jqm.mobile.activeBtnClass = "";
jqm.mobile.ajaxEnabled = ;
jqm.mobile.hashListeningEnabled = ;
jqm.mobile.defaultPageTransition = "";
jqm.mobile.defaultDialogTransition = "";
jqm.mobile.minScrollBack = "";
jqm.mobile.loadingMessage = "";
jqm.mobile.pageLoadErrorMessage = "";
jqm.mobile.linkBindingEnabled = ;
jqm.mobile.pushStateEnabled = ;
jqm.mobile.touchOverflowEnabled = ;
});
//--><!]]>
</script>
<script type="text/javascript" src="http://whatelseit.com/sites/all/libraries/jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.js?v=1.0.1"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"bioclinica_mobile","theme_token":"1GIvhdwTwTeP8spKkRpwfSVeMHwxFmjBecIETzlmVHw","css":{"modules\/system\/system.base.css":1,"sites\/all\/modules\/date\/date_api\/date.css":1,"sites\/all\/modules\/date\/date_popup\/themes\/datepicker.1.7.css":1,"sites\/all\/modules\/date\/date_repeat_field\/date_repeat_field.css":1,"modules\/field\/theme\/field.css":1,"sites\/all\/modules\/logintoboggan\/logintoboggan.css":1,"sites\/all\/modules\/office_hours\/office_hours.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/jquerymobile\/jquerymobile.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"sites\/all\/themes\/mobile_jquery\/styles\/mobile_jquery.css":1,"sites\/all\/themes\/mobile_jquery\/styles\/test.min.css":1,"sites\/all\/libraries\/jquery.mobile-1.0.1\/jquery.mobile.structure-1.0.1.min.css":1,"sites\/all\/libraries\/jquery.mobile-1.0.1\/jquery.mobile-1.0.1.min.css":1},"js":{"misc\/jquery.js":1,"misc\/
jquery.once.js":1,"misc\/drupal.js":1,"sites\/all\/libraries\/jquery-1.6.4\/jquery-1.6.4.min.js":1,"0":1,"sites\/all\/libraries\/jquery.mobile-1.0.1\/jquery.mobile-1.0.1.min.js":1}}});
//--><!]]>
</script>
<script type="text/javascript" src="/sites/all/themes/bioclinica_mobile/scripts/bioclinica_mobile.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-58150376-1', 'auto');
ga('send', 'pageview');

</script>
</head>
<body class="html front logged-in one-sidebar sidebar-first page-node" >

<div data-theme="a" data-role="page" class="page type-home">
<div class="header" data-theme="a" data-position="inline" data-role="header">
<h1 class="site-name"><a href="/">WhatElseIt.com</a></h1>






</div> <!-- /#header -->


<div class="main-content" data-theme="a" data-role="content">

<div class="content-primary">


<h2 class="title" class="page-title">Welcome to WhatElseIt.com</h2> <div class="region region-content">
<div id="block-system-main" class="block block-system">


<div class="content">
<div id="first-time"><p>No front page content has been created yet.</p></div> </div>
</div>
</div>
</div> <!-- /.content-primary -->

<div class="content-secondary">

<div class="navigation">
<ul id="main-menu" class="links inline clearfix" data-role="listview" data-inset="true" data-theme="a" data-divider-theme="a" data-count-theme="a" data-split-theme="a" data-split-icon="arrow-r"><li data-icon="arrow-r" class="menu-218 first last active"><a href="/" class="active">Home</a></li>
</ul> </div> <!-- /#navigation -->

<div class="sidebar-first" class="column sidebar">
<div class="region region-sidebar-first">
<div id="block-search-form" class="block block-search">


<div class="content">
<form action="/?q=drupalgap/user/5.json" method="post" id="search-block-form" accept-charset="UTF-8"><div><div>
<h2 class="element-invisible">Search form</h2>
<label for="edit-search-block-form--2">&nbsp; </label>
<input title="Enter the terms you wish to search for." data-type="search" type="text" id="edit-search-block-form--2" name="search_block_form" value="" size="15" maxlength="128" class="form-text" />
<input type="hidden" name="form_build_id" value="form-J3muutkdjjFwsjHoLIo6koPJXK66gfZQFzS6R1X_tGY" />
<input type="hidden" name="form_token" value="AmAuSlKBOOytQ9O0pxB2L0LK2g46-9V8R85dhGgyowE" />
<input type="hidden" name="form_id" value="search_block_form" />
</div>
</div></form> </div>
</div>
</div>
</div> <!-- /#sidebar-first -->

</div><!-- /.content-secondary -->

</div>

<div class="footer ui-state-persist" data-theme="a" data-position="inline" data-role="footer">
<div class="region region-footer">
<div id="block-system-powered-by" class="block block-system">


<div class="content">
<span>Powered by <a href="http://drupal.org">Drupal</a></span> </div>
</div>
</div>
</div> <!-- /#footer -->


</div> <!-- /#page -->


<script type="text/javascript">
(function ($) {
$('[data-role=page]').live('pageshow', function (event, ui) {
try {
_gaq.push(['_setAccount', 'UA-40756456-1']);

hash = location.hash;

if (hash) {
_gaq.push(['_trackPageview', hash.substr(1)]);
} else {
_gaq.push(['_trackPageview']);
}
} catch(err) {

}

});
}(jQuery));
</script>
</body>
</html>

drupalgap.min.js:109 _drupalgap_form_submit_response_errors - SyntaxError: Unexpected token <

You must login before you can ask a follow up question.

You must login before you can submit an answer.

I tried going into cpanel Modsec Manager and unchecking the whatelseit.com and then hit updated. And that doesn't do anything. I am still getting the 501 error.
JoeRobertsPhotography
12 Points
2015-01-09 03:55 pm EST

OTHER ANSWERS

0

John-Paul
Staff
30,246 Points
2015-01-09 11:35 am EST
Hello,

Thank you for contacting us about a 501 error in Drupal. I reviewed the apache error logs, and noticed that you are triggering a Mod_Security rule, causing it to be blocked.

We are happy to help, but will need some additional information to help narrow down the cause.

What are steps are you taking to get the error? This will help us replicate the problem.

What are you trying to accomplish within Drupal? Is there possibly another way to do it, such as with a Module?

If you have any further questions, feel free to post them below.

Thank you,
John-Paul

You must login before you can post a comment about this answer.

Can you put this into lamens terms. I am so sorry. I am using an app to access the website through REST Services. I am using drupalgap as my module that supports REST services calls and integrates phonegap. If you have google chrome and download the extension Ripple Emulator. Go to whateleseit.com/mobile-application you can access the mobile. You will need to login to see the issue. I will gladly send you that info you contact me through email.
JoeRobertsPhotography
12 Points
2015-01-09 12:42 pm EST
Can I disable it or Just diable the Specific one that is causeing the issue? Can you send me which one is causing the issue?
JoeRobertsPhotography
12 Points
2015-01-09 2:37 pm EST
I tried going into cpanel Modsec Manager and unchecking the whatelseit.com and then hit updated. And that doesn't do anything. I am still getting the 501 error.
JoeRobertsPhotography
12 Points
2015-01-09 3:55 pm EST
I am on a shared reseller account just FYI.
JoeRobertsPhotography
12 Points
2015-01-09 4:13 pm EST
Hello JoeRobertsPhotography,

Sorry for the problem with the modsec rule. I reviewed the issue and also looked at your account. In order to do what you're doing, you would need to upgrade the account to either a VPS or dedicated server account. You would be able to disable the interfering modsec rules with those types of accounts.

Apologies that we can't provide a direct fix for the issue. Please let us know if you have any further questions or comments.

Regards,
Arnel C.
Arn
40,219 Points
Staff
2015-01-09 4:15 pm EST
Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

   
Social Login Joomla

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!