REST Service + Android + Dinahosting = 406 Not Acceptable

Two fresh Drupal 7.71 installations on two diferent hostings: Dinahosting and OVH.

Both of the installations have Services 7.x-3.27, Ctools 7.x-1.15, Libraries 7.x-2.5 and not any other module.

I created the same REST service on both hostings.
Then, I am trying to call my REST service from Android code.
OVH hosting is working fine but Dinahosting is not.

POST /user/token endpoint for example:

  - OVH:

Syslog & Fail2Ban

Is anyone using Fail2Ban for Drupal? I am getting slammed by bots and even though honeypot and captcha are doing the job of stopping and logging, I would like to take the next step and automate banning.

Fail2Ban has worked wonders for me parsing bad actors found in postfix's mail.log and banning the offenders, so I want to apply the same tactic by parsing bad actors found in Drupal's Syslog and banning these offenders as well. 

If you are already using Fail2Ban for Drupal, please post your regular expressions. I just turned on Syslog so I am a little behind the curve.

How to transfer from default display pic to profile 2

I have had default display pic option enabled on my site but I have now decided to use profile 2 to manage users display pictures as it offers more features.

The only problem I have is that I don't know how to transfer the users pictures from the default field to the profile2 field.

Is there a way?

Thanks

How can I find the width of a page using javascript?

I am using javascript in a page and it works most of the time but I can't find an accurate width of the page. I can find the width of the browser window but that isn't what I want.

Any suggestions?

Slick Carousel/Link error.....?

So, i'm getting this error upon clicking an image in the carousel (slider) which USED to be functional.

the way it used to work was that it took the user to a content item with more info on the logo/graphic

Error: [] operator not supported for strings in l() (line 2530 of V:\vHost\esc2.main\drupal7\includes\common.inc).

Any idea whats going on?

I's listed as a PHP error with a red stop sign in the Recent log messages listing in Reports. 

Decoded Values for Dynamic Meta Tags setup via theme html_head_alter

Hey all,

I am creating dynamic meta tags using a theme html_head_alter function. This works fine except that the strings passed in #value are being encoded. I assume there is a check_plain function somewhere that is encoding these strings. Does anyone know where that check_plain function is?

Here is an example of one of my custom meta tags with a static string to demonstrate the issue...

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x