【问题标题】:MODx. Empty partition / managerMODx。空分区/管理器
【发布时间】:2013-03-21 08:20:34
【问题描述】:

/manager 下的资源树丢失。 MODX 革命 2.2.5-pl(高级)。 登录到admin面板,但是admin只是最上面的工具栏。

在core/cache/logs/error.log中:

[2013-03-21 11:18:22] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()

也就是说,PHP /manager/index.php 没有错误。

登录后的萤火虫显示:

ReferenceError: _ is not defined
...rer:this.renderNoteCell.createDelegate(this)]});this.grid_panel=new Ext.grid.Gri...
modx.t...tory.js (строка 806)

ReferenceError: _ is not defined
params[this.paramNames.topic] = '/ys/user-' + MODx.user.id + '/';
modx.js (строка 820)

TypeError: MODx.user is undefined
params[this.paramNames.topic] = '/ys/user-' + MODx.user.id + '/';
modx.js (строка 820)

Chrome 显示:

    Failed to load resource: the server responded with a status of 401 (Not Authorized)  
http://example.com/connectors/lang.js.php?    
ctx=mgr&topic=topmenu,file,resource,setting,gallery:default&action=70
Uncaught ReferenceError: _ is not defined modx.tree.directory.js:806
Uncaught ReferenceError: _ is not defined modx.localization.js:5
Uncaught TypeError: Cannot read property 'id' of undefined modx.js:820

在这个材料上发现错误,所有写的东西都是compress_js和compress_css。 我将值从 1 调整为 0(表 modx_system_settings)。已删除缓存。我去管理面板 - 没有任何改变。现在在缓存中: 核心/缓存/system_settings/config.cache.php

 'compress_css' => '0',
 'compress_js' => '0',

为什么 Chrome 负责 Not Authorized 不清楚,好像我登录了,但是 MODx 不明白。 我不明白问题是什么。

【问题讨论】:

  • 同时关闭 'concat_js'。
  • 这个选项在哪里关闭?找不到它在哪里
  • 在系统设置中或在core/cache/system_settings/config.cache.php 如果在管理面板中无法访问系统设置。
  • 在 core/cache/system_settings/config.cache.php 中没有 concat_js 选项。我添加了它),没有任何改变。还是不行。怎么办?

标签: syntax-error modx


【解决方案1】:

您已完成高级安装并移动了一个或两个 manager 和 core 目录?

首先,仔细检查 core/config 中的所有路径,即站点根目录和管理器目录中的 2 个 config.core.php,查看所有这些:http://rtfm.modx.com/display/revolution20/Hardening+MODX+Revolution

如果您已将核心移出 web 根目录,请检查您的 php 设置并确保 php 可以读取/写入这些目录我必须在我的 php 配置中隐式添加核心父目录的路径。 [我遇到了和你一样的错误]

另外,js & css 压缩已经有一段时间没有问题了。 2.2.1 我认为。

【讨论】:

    【解决方案2】:

    我几乎遇到了同样的问题。请仔细检查所有配置文件,尤其是配置路径。我的任务是将域从 web 转移到 localhost。有两种重要的情况 - 首先,检查路径(特别注意斜线,在 Windows 下你有不同的,顺便说一句,你可以 / 和 \ 同时,这取决于)。其次,suhosin 扩展存在一些问题,但这不是我的情况。希望对您有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多