【问题标题】:impresspages html widget not savingimpresspages html小部件不保存
【发布时间】:2015-01-12 07:08:34
【问题描述】:

我在 html 小部件中保存内容时遇到问题。我正在使用 impresspages 4.4.2(尽管我刚刚升级的 4.4.0 上存在问题)。 CMS 安装在共享主机上,因此我只能访问 cPanel。

我发现这个问题没有答案 Impress Pages - HTML widget not saving/publishing

评论说问题出在主题上,包括 jquery。

我使用在 impresspages 市场上购买的 RevolvePro 主题。纵观资产,它似乎确实包括 jquery。删除它看起来并不容易。因此,我尝试使用其他主题(CMS 提供的私人免费、Air 和快速启动)执行相同的 html 小部件编辑操作,结果相同 - 没有保存任何内容。据我所知,这些主题都没有包含 jquery。

我在浏览器控制台中看到的是以下错误:

POST http://domain.com/403      (Forbidden) 
k.cors.a.crossDomain.send       ipCore.min.js?3:124
n.extend.ajax                   ipCore.min.js?3:122
updateWidget                    management.min.js?3:10
processSaveQueue                management.min.js?3:67
n.isFunction.f                  ipCore.min.js?3:2
(anonymousfunction)             management.min.js?3:64
n.extend.each                   ipCore.min.js?3:2
n.fn.n.each                     ipCore.min.js?3:2
methods.save                    management.min.js?3:63
$.fn.ipWidget                   management.min.js?3:68
$this.save                      management.min.js?3:61
save                            management.min.js?3:115
n.isFunction.f                  ipCore.min.js?3:2
n.event.dispatch                ipCore.min.js?3:66
r.handle                        ipCore.min.js?3:65

或者如果我切换到调试模式:

POST http://domain.com/403      (Forbidden) 
k.cors.a.crossDomain.send       jquery.js?4:1953
n.extend.ajax                   jquery.js?4:1843
updateWidget                    content.js?4:340
processSaveQueue                jquery.ip.widget.js?4:159
n.isFunction.f                  jquery.js?4:95
(anonymousfunction)             jquery.ip.widget.js?4:86
n.extend.each                   jquery.js?4:72
n.fn.n.each                     jquery.js?4:21
methods.save                    jquery.ip.widget.js?4:72
$.fn.ipWidget                   jquery.ip.widget.js?4:203
$this.save                      jquery.ip.widget.js?4:21
save                            Html.js?4:85
n.isFunction.f                  jquery.js?4:95
n.event.dispatch                jquery.js?4:1043
r.handle                        jquery.js?4:1010

基于位置的 jquery.js 是从 CMS 核心代码 (Ip/Internal/Core/assets/ipCore/) 中引用的,而不是从主题中引用的。

我尝试使用 phpMyAdmin 手动编辑小部件表,结果工作正常,所以编辑是唯一的问题。问题似乎还在于托管或主机设置,因为在其他共享主机上我可以毫无问题地编辑 html 小部件。

【问题讨论】:

  • ImpressPages 默认包含 jQuery。主题不应该担心这一点。下次如果您想测试另一个主题,最好使用默认主题 - Air。
  • 主题使用jQuery v1.7.2,但CMS不包含v2.2.1
  • 最重要的是,如果包含在主题中 jQuery 被删除,则主题由于异常而无法正常工作:在包含“不必要的”jquery 之后,它已经

标签: javascript widget impresspages


【解决方案1】:

这是您主机的问题。查看 Apache 日志。您在 Apache 上有某种安全模块,它可以防止带有 HTML 输入的 POST 数据。

【讨论】:

  • 这是主机 apache 上的 ModSecirity 规则(###server log### messages:Jan 12 18:58:45 dprhcp159 lfd[626908]: (mod_security) mod_security (id:212280) 由....:过去 300 秒内有 5 次 - 在 csf 中阻塞 3600 秒 [LF_MODSEC] ###)
猜你喜欢
  • 1970-01-01
  • 2021-04-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多