Skip to main content

Ajax broken after php upgrade

Comments

8 comments

  • Infopro
    Are all the drupal sites up to date? Drupal specific version notes on PHP requirements - Drupal.org
    0
  • arvid3nel
    Yes, they are! I am talking about updated drupal 7 installations. I even tried a fresh one after the update. It started giving Ajax errors after enabling 1-2 additional modules (basic ones like ctools, views, admin_menu). Almost everything Ajax giving 406 but not everything. Some image display settings would work after disabling admin menu for example but it is not that this module was the culprit. The problem happened without this one too. Same sites work fine with php 5.5, 5.6 in local dev desktop.
    0
  • arvid3nel
    And these Ajax 406 errors were not visible in drupal's logs. Only indication I found was in the apache error-log. Not sure but I had a lot of entries like this one at that time: "[Mon Dec 07 06:18:57.233099 2015] [core:error] [pid 1240] [client xxxxxxxxxx] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace." And this one too: "[Mon Dec 07 01:46:24.641590 2015] [core:error] [pid 432] [client xxxxxxxxxx] AH00524: Handler for (null) returned invalid result code 70008, referer: hxxp://www.xxxx.gr/node/3373/edit"
    0
  • Infopro
    What are you using for ApacheHandler? WHM "Service Configuration "Configure PHP and suEXEC
    0
  • arvid3nel
    I am using suPHP Right now I am trying a new build (ap2.4 php5.5) without suhosin.
    0
  • arvid3nel
    Well I rebuilt Apache 2.4 with php 5.5 without suhosin and mod security and everything seems OK (and faster) now. No Ajax errors (or other errors) yet. The question is how big a security issue is not having suhosin and mod security? In previous working ap2.2/php5.3 configuration suhosin and mod security were enabled.
    0
  • tweaker
    there are ways to effectively run php based sites without suhosin with no issues with cms or custom php apps but without mod_security you would get hit by php exploits and other security issues for sure. as your current build works fine, try a config backup, then compile mod security and see if its able to run.
    0
  • arvid3nel
    Thank you tweaker. I rebuilt Apache today with mod_security on top of the now working 2.4/5.5.30 configuration. And it is working just fine. No Ajax 406 errors. So now I have to do one more trial with suhosin again in the mix to confirm whether suhosin is the culprit.
    0

Please sign in to leave a comment.