Hello,
I am working with the latest version of Display Suit and my Website is running on a apache server.
The problem is that if I want to change the position of a field (custom and core) I receiving an Error message:
An AJAX HTTP error occurred.
HTTP Result Code: 404
Debugging information follows.
Path: /system/ajax
StatusText: Not Found
ResponseText:
Also there is a watchdog report:
Type ajax
Date Friday, September 6, 2013 - 10:09
User Timo Vogt
Location http://beta.firstgmbh.de/system/ajax
Referrer http://beta.firstgmbh.de/admin/structure/types/manage/blog/display
Message Invalid form POST data.
Severity warning
Hostname 80.153.204.223
Operations I have no clue why this is happening please help :)
Comments
Comment #1
BlackyWhoElse commentedStill no clue what going on :D
Comment #2
swentel commented404 sounds like a case where clean urls is not working ok. Please check if that is working correctly.
If not, could also check the patch in #1519916: Field templates, field refresh and cogwheel problems ?
Also, in case it doesn't work wit DS disabled, then you have a complete different problem.
Comment #3
swentel commentedComment #4
caspervoogt commentedI am also experiencing the second issue ("Invalid form POST data.") - also with 7.x-2.6 as well as 7.x-2.x-dev.
I have clean URLs enabled and they are working fine. I tested with Google Chrome to see if perhaps /system/ajax (or /en/system/ajax in my case, since I am running i18n) caused 404 errors when trying to move a field around, but they did not. I have no way to test this without i18n - it is an absolute must in my case and I just have this one dev server for this project. However, I was running i18n before with Display Suite 7.x-1.9 without any problems for the past two years on a production site. For what it's worth the production server was running Ubuntu while this new dev copy is running CentOs, so it could well be down to Apache config differences. I did also try this:
(from https://www.drupal.org/node/1944464#comment-7221412)
I did also apply the patch from https://www.drupal.org/node/1519916 manually ... no effect.
Edit: I looked into ajax_get_form() which is where that error message originates... it calls this:
I double-checked that $form_build_id is populated correctly (it is). $form_state is populated with an array which looks correct to me as well. I do not have any caching enabled on this site right now, not the native caching nor Varnish.
Edit: upon further testing I now see this issue only happens on some content types, perhaps due to certain field types.
Comment #5
kenorb commentedThis is usually the problem when you don't have mod_rewrite extension for Apache enabled. Run
a2enmod rewriteto enable it.Comment #6
Sushil Kumar Sharma commentedThanks
Yes the problem with a2enmod rewrite. I enable it and restart apache.