Возникла ajax http ошибка полученный код http 200

  1. Главная
  2. Форумы
  3. Техподдержка Drupal
  4. Решение проблем

Главные вкладки

  • Просмотр(активная вкладка)
  • Реакции

Аватар пользователя wiom


12 января 2014 в 4:09


Всем привет. Помогите с решением. Перенес сайт на хостинг и возникла проблема при настройке отображения полей. Поле отображения картинки, к примеру, слева есть кнопка по нажатию на которую показывается меню настройки отображения картинки, ее размеры и на что она ссылается при клике. Так вот при нажатии на эту кнопку вылетает всплывающее окно следующего содержания:

Возникла AJAX HTTP ошибка.
Полученный код HTTP: 200
Следует отладочная информация.
Путь: /system/ajax
Текст Состояния: OK
Текст Ответа: [{«command»:«settings»,«settings»:{«basePath»:«\/«,«pathPrefix»:«»,«ajaxPageState»:
{«theme»:«seven»,«theme_token»:«2J3KowjLFRBatAqM6DA5Gftwh4MXFLJszqC2MgEY5Zk»},«quote_nest»:«2»,«ajax»:{«edit-fields-field-img-
settings-edit-form-actions-save-settings»
:{«callback»:«field_ui_display_overview_multistep_js»,«wrapper»:«field-display-overview-
wrapper»
,«effect»:«fade»,«event»:«mousedown»,«keypress»:true,«prevent»:«click»,«url»:«\/system\/ajax»,«submit»:
{«_triggering_element_name»:«field_img_formatter_settings_update»,«_triggering_element_value»:«\u041e\u0431\u043d\u043e\u0432\u0438
\u0442\u044c»
}},«edit-fields-field-img-settings-edit-form-actions-cancel-settings»:
{«callback»:«field_ui_display_overview_multistep_js»,«wrapper»:«field-display-overview-
wrapper»
,«effect»:«fade»,«event»:«mousedown»,«keypress»:true,«prevent»:«click»,«url»:«\/system\/ajax»,«submit»:
{«_triggering_element_name»:«field_img_formatter_settings_cancel»,«_triggering_element_value»:«\u041e\u0442\u043c\u0435\u043d\u0438
\u0442\u044c»
}}},«fieldUIRowsData»:{«body»:
{«rowHandler»:«field»,«defaultFormatter»:«text_default»,«name»:«body»,«region»:«visible»},«field-img»:
{«rowHandler»:«field»,«defaultFormatter»:«image»,«name»:«field_img»,«region»:«visible»},«subscriptions-ui»:
{«rowHandler»:«field»,«name»:«subscriptions_ui»,«region»:«visible»},«-add-new-group»:
{«rowHandler»:«group»,«name»:«_add_new_group»,«region»:«add_new»}}},«merge»:true},
{«command»:«insert»,«method»:null,«selector»:null,«data»:«\u003Cdiv id=\u0022field-display-overview-wrapper\u0022\u003E\u003Ctable
class=\u0022field-ui-overview sticky-enabled\u0022 id=\u0022field-display-overview\u0022\u003E\n
\u003Cthead\u003E\u003Ctr\u003E\u003Cth\u003E\u041f\u043e\u043b\u0435\u003C\/th\u003E\u003Cth\u003E\u0412\u0435\u0441\u003C\/th\u00
3E\u003Cth\u003E\u0420\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u003C\/th\u003E\u003Cth\u003E\u041c\u0435\u0442\u043a\u0430\u003C\
/th\u003E\u003Cth colspan=\u00223\u0022\u003E\u0424\u043e\u0440\u043c\u0430\u0442\u003C\/th\u003E
\u003C\/tr\u003E\u003C\/thead\u003E\n\u003Ctbody\u003E\n \u003Ctr class=\u0022region-message region-visible-message region-
populated\u0022\u003E\u003Ctd colspan=\u00227\u0022\u003E\u041f\u043e\u043b\u0435\u0439 \u043d\u0435\u0442.\u003C\/td\u003E
\u003C\/tr\u003E\n \u003Ctr class=\u0022draggable tabledrag-leaf field-formatter-settings-editing odd\u0022 id=\u0022field-
img\u0022\u003E\u003Ctd\u003E\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u003C\/td\u003E\u003Ctd\u003E\u003Cdiv
class=\u0022form-item form-type-textfield form-item-fields-field-img-weight\u0022\u003E\n  \u003Clabel class=\u0022element-
invisible\u0022 for=\u0022edit-fields-field-img-weight—2\u0022\u003E\u0412\u0435\u0441
\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u003C\/label\u003E\n \u003Cinput class=\u0022field-weight form-text\u0022
type=\u0022text\u0022 id=\u0022edit-fields-field-img-weight—2\u0022 name=\u0022fields[field_img][weight]\u0022 value=\u00220\u0022
size=\u00223\u0022 maxlength=\u0022128\u0022 \/\u003E\n\u003C\/div\u003E\n\u003C\/td\u003E\u003Ctd\u003E\u003Cdiv class=\u0022form-
item form-type-select form-item-fields-field-img-parent\u0022\u003E\n  \u003Clabel class=\u0022element-invisible\u0022
for=\u0022edit-fields-field-img-parent—2\u0022\u003E\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u0430\u044f
\u043c\u0435\u0442\u043a\u0430 \u0434\u043b\u044f \u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u003C\/label\u003E\n
\u003Cselect class=\u0022field-parent form-select\u0022 id=\u0022edit-fields-field-img-parent—2\u0022 name=\u0022fields[field_img]
[parent]\u0022\u003E\u003Coption value=\u0022\u0022 selected=\u0022selected\u0022\u003E- \u041d\u0435
\u0443\u043a\u0430\u0437\u0430\u043d\u043e —\u003C\/option\u003E\u003Coption
value=\u0022_add_new_group\u0022\u003E\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e
\u0433\u0440\u0443\u043f\u043f\u0443\u003C\/option\u003E\u003C\/select\u003E\n\u003C\/div\u003E\n\u003Cinput class=\u0022field-
name\u0022 type=\u0022hidden\u0022 name=\u0022fields[field_img][parent_wrapper][hidden_name]\u0022 value=\u0022field_img\u0022
\/\u003E\n\u003C\/td\u003E\u003Ctd\u003E\u003Cdiv class=\u0022form-item form-type-select form-item-fields-field-img-
label\u0022\u003E\n  \u003Clabel class=\u0022element-invisible\u0022 for=\u0022edit-fields-field-img-label-
-2\u0022\u003E\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u0430\u044f \u043c\u0435\u0442\u043a\u0430
\u0434\u043b\u044f \u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u003C\/label\u003E\n \u003Cselect id=\u0022edit-fields-field-
img-label—2\u0022 name=\u0022fields[field_img][label]\u0022 class=\u0022form-select\u0022\u003E\u003Coption
value=\u0022above\u0022\u003E\u0421\u0432\u0435\u0440\u0445\u0443\u003C\/option\u003E\u003Coption
value=\u0022inline\u0022\u003E\u0412 \u043b\u0438\u043d\u0438\u044e\u003C\/option\u003E\u003Coption value=\u0022hidden\u0022
selected=\u0022selected\u0022\u003E\u0026lt;\u0421\u043a\u0440\u044b\u0442\u043e\u0026gt;\u003C\/option\u003E\u003C\/select\u003E\n
\u003C\/div\u003E\n\u003C\/td\u003E\u003Ctd colspan=\u00223\u0022\u003E\u003Cdiv class=\u0022ajax-new-content\u0022\u003E\u003Cdiv
class=\u0022form-item form-type-select form-item-fields-field-img-type\u0022\u003E\n  \u003Clabel class=\u0022element-
invisible\u0022 for=\u0022edit-fields-field-img-type—2\u0022\u003E\u0417\u0430\u0434\u0430\u043d\u0438\u0435
\u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0434\u043b\u044f \u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430
\u003C\/label\u003E\n \u003Cselect class=\u0022field-formatter-type form-select\u0022 id=\u0022edit-fields-field-img-type—2\u0022
name=\u0022fields[field_img][type]\u0022\u003E\u003Coption value=\u0022image\u0022
selected=\u0022selected\u0022\u003E\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u003C\/option\u003E\u003Copti
on
value=\u0022hidden\u0022\u003E\u0026lt;\u0421\u043a\u0440\u044b\u0442\u043e\u0026gt;\u003C\/option\u003E\u003C\/select\u003E\n\u003
C\/div\u003E\n\u003Cdiv class=\u0022field-formatter-settings-edit-form form-wrapper\u0022 id=\u0022edit-fields-field-img-settings-
edit-form\u0022\u003E\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430: \u003Cspan
class=\u0022formatter-name\u0022\u003E\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u003C\/span\u003E\u003Cdiv
class=\u0022form-item form-type-select form-item-fields-field-img-settings-edit-form-settings-image-style\u0022\u003E\n  
\u003Clabel for=\u0022edit-fields-field-img-settings-edit-form-settings-image-style\u0022\u003E\u0421\u0442\u0438\u043b\u044c
\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u003C\/label\u003E\n \u003Cselect id=\u0022edit-fields-field-
img-settings-edit-form-settings-image-style\u0022 name=\u0022fields[field_img][settings_edit_form][settings][image_style]\u0022
class=\u0022form-select\u0022\u003E\u003Coption value=\u0022\u0022 selected=\u0022selected\u0022\u003E\u041d\u0435\u0442
(\u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435
\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435)\u003C\/option\u003E\u003Coption
value=\u0022avatar\u0022\u003Eavatar\u003C\/option\u003E\u003Coption value=\u0022thumbnail\u0022\u003EThumbnail
(100×100)\u003C\/option\u003E\u003Coption value=\u0022medium\u0022\u003EMedium (220×220)\u003C\/option\u003E\u003Coption
value=\u0022large\u0022\u003ELarge (480×480)\u003C\/option\u003E\u003C\/select\u003E\n\u003C\/div\u003E\n\u003Cdiv
class=\u0022form-item form-type-select form-item-fields-field-img-settings-edit-form-settings-image-link\u0022\u003E\n  \u003Clabel
for=\u0022edit-fields-field-img-settings-edit-form-settings-image-
link\u0022\u003E\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u043a
\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u003C\/label\u003E\n \u003Cselect id=\u0022edit-fields-field-img-settings-edit-
form-settings-image-link\u0022 name=\u0022fields[field_img][settings_edit_form][settings][image_link]\u0022 class=\u0022form-
select\u0022\u003E\u003Coption value=\u0022\u0022
selected=\u0022selected\u0022\u003E\u041d\u0438\u0447\u0435\u0433\u043e\u003C\/option\u003E\u003Coption
value=\u0022content\u0022\u003E\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435\u003C\/option\u003E\u003Coption
value=\u0022file\u0022\u003E\u0424\u0430\u0439\u043b\u003C\/option\u003E\u003C\/select\u003E\n\u003C\/div\u003E\n\u003Cdiv
class=\u0022form-actions form-wrapper\u0022 id=\u0022edit-fields-field-img-settings-edit-form-actions\u0022\u003E\u003Cinput
type=\u0022submit\u0022 id=\u0022edit-fields-field-img-settings-edit-form-actions-save-settings\u0022
name=\u0022field_img_formatter_settings_update\u0022 value=\u0022\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0022
class=\u0022form-submit\u0022 \/\u003E\u003Cinput type=\u0022submit\u0022 id=\u0022edit-fields-field-img-settings-edit-form-
actions-cancel-settings\u0022 name=\u0022field_img_formatter_settings_cancel\u0022
value=\u0022\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c\u0022 class=\u0022form-submit\u0022
\/\u003E\u003C\/div\u003E\u003C\/div\u003E\u003C\/div\u003E\u003C\/td\u003E \u003C\/tr\u003E\n \u003Ctr class=\u0022draggable
tabledrag-leaf even\u0022
id=\u0022body\u0022\u003E\u003Ctd\u003E\u0422\u0435\u043a\u0441\u0442\u003C\/td\u003E\u003Ctd\u003E\u003Cdiv class=\u0022form-item
form-type-textfield form-item-fields-body-weight\u0022\u003E\n  \u003Clabel class=\u0022element-invisible\u0022 for=\u0022edit-
fields-body-weight—2\u0022\u003E\u0412\u0435\u0441 \u0422\u0435\u043a\u0441\u0442 \u003C\/label\u003E\n \u003Cinput
class=\u0022field-weight form-text\u0022 type=\u0022text\u0022 id=\u0022edit-fields-body-weight—2\u0022 name=\u0022fields[body]
[weight]\u0022 value=\u00221\u0022 size=\u0022

Не могу понять в чем дело, в гугле искал решение, много что нашел, и что F5 нужно просто нажать, увеличить memory, которая у меня и так 128MB от хостера, и что в файле local.inc нужно увеличить время ответа скриптов, но ничего не помогло. Подскажите что нибудь, пожалуйста.

  • Drupal7
  • Есть вопрос
  • Решение проблем

By droshani on

My website was smehow messed up and I could not access the admin or edit any post, as I kept getting a blank page "The website encountered an unexpected error. Please try again later.", So I updated my core from 8.3 to the lastest 8.7.6. Now when I try to update the data base I get this error.

The update process was aborted prematurely while running update #8001 in feeds.module. All errors have been logged. You may need to check the watchdog database table manually.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /update.php/start?id=474&op=do_nojs&op=do
StatusText: OK
ResponseText: 

I have increased the input time based on the instruction in one post related to this from a couple of years ago, but that did not help and I keep getting this. Is there any way out this, please? My log error does not show anything. I also did

1. Use phpmyadmin to truncate all files beginning with «cache».
2. Edit settings.php to change $settings[‘update_free_access’] = FALSE to TRUE.
3. Run [siteurl]/update.php.
4. Switch $settings[‘update_free_access’] back to FALSE.

But did not help

site mhe-krg.org

I had Drupal 7 and when I want to delete user, an error occurs:

AJAX HTTP error occurred.
HTTP status code: 200 Debug information below.
Path : /batch?id=1594&op=do 
StatusText: OK
ResponseText : #Screenshot

#Screenshot

  • ajax
  • drupal-7

ArK's user avatar

ArK

20.7k67 gold badges109 silver badges136 bronze badges

asked Sep 8, 2016 at 11:56

G. Mansour's user avatar

G. MansourG. Mansour

6966 silver badges15 bronze badges

2

  • How is that an error? 200 indicates an OK response.

    Sep 8, 2016 at 12:59

  • what is your code, what is the callback. please provide info.

    Sep 8, 2016 at 13:39

2 Answers

It was a server error so Drupal send many request at once but the server have a miximum execution time. I suggested for my client to change it and it works fine now.

answered Nov 1, 2016 at 14:23

G. Mansour's user avatar

G. MansourG. Mansour

6966 silver badges15 bronze badges

You have ‘exit’ or die() or «echo» placed somewhere in your template files. I had this issue multiple times and all times i had come across this problem. That’s the only reason due to which ajax breaks because error is not displaying 200 code. That means that things are correct. Only issue is echo/die/exit placed at some unexpected place.

answered Sep 8, 2016 at 17:11

Shiks's user avatar

ShiksShiks

6735 silver badges6 bronze badges

**I tried to install drupal 7.10, and when the installation has done 28/29 modules, an error occured:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://example.com/drupal/install.php?profile=standard&locale=en&id=1&op=do
StatusText: OK ResponseText: ( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\drupal\includes\database\mysql\database.inc on line 153 Call Stack #TimeMemoryFunctionLocation 10.0004371192{main}( )..\install.php:0 20.0043834504install_drupal( )..\install.php:26 30.95958976424install_run_tasks( )..\install.core.inc:79 41.929419997120install_run_task( )..\install.core.inc:342 51.930720117440_batch_page( )..\install.core.inc:452 61.931520124560_batch_do( )..\batch.inc:80 71.931520124560_batch_process( )..\batch.inc:161 81.933320214776call_user_func_array ( )..\batch.inc:284 91.933320214800_install_module_batch( )..\batch.inc:284 101.933320215000module_enable( )..\install.core.inc:1538 112.990422114008module_invoke( )..\module.inc:448 122.990422114224call_user_func_array ( )..\module.inc:794 132.990422114360standard_install( )..\module.inc:794 1420.519725138960user_role_grant_permissions( )..\standard.install:400 1529.936125151208MergeQuery->execute( )..\user.module:3030 1629.938825159880DatabaseTransaction->__destruct( )..\user.module:3030 1729.938825159880DatabaseConnection->popTransaction( )..\database.inc:1872 1829.938825159912DatabaseConnection_mysql->popCommittableTransactions( )..\database.inc:1105

Can any one help me to fix it?
Thanks


Ok, I fixed it. For people get the same problem: note that the error «Fatal error: Maximum execution time of 30 seconds exceeded»

The solution is:
1. go to php.ini file and file the following code snippet

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30

2.change max_execution_time into 100 or more. Because there are maybe some scripts need more than 30 seconds to execute.

Good luck

TheodorosPloumis's user avatar

asked Jan 14, 2012 at 18:28

Leo Lerdorf's user avatar

1

I was also getting the similar kind of error, during drupal installation, with response text «Drupal already installed». I fixed it by making below changes in php.ini,

max_execution_time = 180

max_input_time = 180

max_input_nesting_level = 300

memory_limit = 512M

Community's user avatar

answered Feb 10, 2014 at 7:59

amitgoyal's user avatar

amitgoyalamitgoyal

1,21912 silver badges11 bronze badges

1

Just in case: You can not always set max_execution_time via php.ini. For example if you have a shared server, or a free server. In this case, if php ini set does not work, you can set it via .htaccess.

php_value max_execution_time 100

write line above to your .htaccess file, it will change the php settings well.

You can read more to solve this problem HERE

hgwhittle's user avatar

hgwhittle

9,3166 gold badges48 silver badges60 bronze badges

answered Dec 12, 2013 at 13:27

p.tamas's user avatar

p.tamasp.tamas

611 silver badge4 bronze badges

Are you struggling to find a solution for drupal ajax error 200? We can help you in fixing it.

Here at Bobcares, we have seen several such Drupal errors as part of our Server Management Services for web hosts, Drupal users, and online service providers.

Today we’ll take a look at the cause for this error and see how to fix it.

What causes Drupal Ajax Error 200 to occur

Before we get into the solution part of the error, let’s first discuss more on this error message.

Many Drupal users have encountered this error in a modal window when using Panels. “An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows.”

In general, the Ajax error occurs when jQuery fails into its error callback handler, which will occur when the server responds with a 2xx HTTP status code.

The status code 200 indicates an OK response

This Drupal error normally occurs because of a Javascript conflict with some other module or theme.

For instance, the error appears as below.

Drupal Ajax Error 200

How we fix Drupal Ajax Error 200

Till now we have discussed the error and its causes. Now let’s see the solution part of this error.

Here are the different solutions that our Support Engineers provide to our customers to get rid of this error.

1. Try to remove the Drupal for Firebug addon.
2. Try to disable the Firebug.
3. Flush the theme’s cache.
4. Uninstall Jquery UI and Jquery Update modules.
5. Try to disable the Theme Developer module.
6. Try to remove the Twitter Profile module.

These above ways helped our customers in fixing the Drupal Ajax 200 error.

[Need any further assistance in fixing Drupal errors? – We’re available to help you]

Conclusion

In short, this drupal error occurs due to a Javascript conflict with some other module or theme. Today, we saw how our Support Engineers assist our customers In fixing this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

Понравилась статья? Поделить с друзьями:
  • Возможные ошибки rufus
  • Возникает ошибка при обновлении виндовс
  • Возможные ошибки возникающие при нарушениях режима полимеризации
  • Возникает ошибка при копировании
  • Возникает ошибка виндовс 10 и перезагружается компьютер