当前文章: 首页 >> 网站 >> CMS >> Drupal发生一个AJAX HTTP错误
«   2019年4月   »
1234567
891011121314
15161718192021
22232425262728
2930
网站分类
控制面板
您好,欢迎到访网站!
  查看权限
标签列表
最近发表

Drupal发生一个AJAX HTTP错误

昨天使用Drupal建立了一个用于使用自己笔记的博客: http://note.jues.org.cn

今天不知道为什么,安装任何扩展都出现类型以下的错误。

Drupal发生一个AJAX HTTP错误1.bmp


详细错误信息:

jues笔记
正在安装simple_sitemap
发生错误。
请继续到 错误页面

发生一个AJAX HTTP错误。
HTTP返回代码:403
调试信息如下。
路径:/core/authorize.php/core/authorize.php?batch=1&id=13&op=do_nojs&op=do
状态文本: Forbidden
响应文本: 
拒绝访问 | jues笔记
@import url("/core/authorize.php/core/assets/vendor/normalize-css/normalize.css?0");
@import url("/core/authorize.php/core/misc/normalize-fixes.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/ajax-progress.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/align.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/autocomplete-loading.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/fieldgroup.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/container-inline.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/clearfix.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/details.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/hidden.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/item-list.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/js.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/nowrap.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/position-container.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/progress.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/reset-appearance.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/resize.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/sticky-header.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/tabledrag.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/tablesort.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/components/tree-child.module.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/system.admin.css?0");
@import url("/core/authorize.php/core/themes/stable/css/system/system.maintenance.css?0");
@import url("/core/authorize.php/core/themes/seven/css/base/elements.css?0");
@import url("/core/authorize.php/core/themes/seven/css/base/typography.css?0");
@import url("/core/authorize.php/core/themes/seven/css/base/print.css?0");
@import url("/core/authorize.php/core/themes/seven/css/layout/layout.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/action-links.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/breadcrumb.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/button.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/collapse-processed.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/container-inline.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/exposed-filters.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/field.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/form.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/icons.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/inline-form.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/item-list.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/link.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/links.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/menu.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/more-link.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/pager.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/tabledrag.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/tableselect.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/tablesort.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/tabs.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/textarea.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/ui-dialog.css?0");
@import url("/core/authorize.php/core/themes/classy/css/components/messages.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/admin-list.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/content-header.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/container-inline.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/container-inline.module.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/breadcrumb.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/buttons.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/details.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/messages.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/dropbutton.component.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/entity-meta.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/field-ui.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/form.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/help.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/menus-and-lists.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/modules-page.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/node.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/page-title.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/pager.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/panel.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/skip-link.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/tables.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/search-admin-settings.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/tablesort-indicator.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/system-status-report-general-info.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/system-status-report.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/tabs.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/system-status-report-counters.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/system-status-counter.css?0");
@import url("/core/authorize.php/core/themes/seven/css/components/views-ui.css?0");
@import url("/core/authorize.php/core/themes/seven/css/theme/colors.css?0");
@import url("/core/authorize.php/core/themes/seven/css/theme/maintenance-page.css?0");
跳转到主要内容
jues笔记
拒绝访问
您无权访问此页。


解决:

在官方找到解决方案: https://www.drupal.org/node/2583799

我使用的是nginx服务器,直接修改nginx配置,增加以下内容。

rewrite ^/core/authorize.php/core/authorize.php(.*)$ /core/authorize.php$1;

然后重启下服务,就可以了。


效果:

Drupal发生一个AJAX HTTP错误2.bmp



声明:本站原创文章,转载、复制、使用等请注明出处。
标题Drupal发生一个AJAX HTTP错误
作者jues
地址: http://blog.jues.org.cn/post/drupal-fa-sheng-yi-ge-ajax-http-cuo-wu.html

发表评论:

Powered By Z-BlogPHP 1.5.2 Zero Powered By Z-BlogPHP © 2018 jues博客 Copyright Your WebSite.Some Rights Reserved.联系站长 Themes by jues