0

每次我更改样式中的某些内容时(例如,在less/variables.less 中),我都会在前端得到一个已知错误:

Undefined variable: css in /ImpressPages/Ip/Internal/Design/LessCompiler.php:69

我在文件或链接中找不到任何错误,也没有权限设置错误。

我的 theme.less 看起来像这样:

    //
    // ImpressPages theme: One Pager Crystal
    //
    // Main theme's LESS file. Contains only imports of required components.
    // Integrated with fluid and responsive grid system
    //
    // @package ImpressPages
    //

    @import "ipContent.less";// import system ipContent.less file (widget styles)
    @import "less/variables.less";
    @import "less/layout.less";
    @import "widgetOverride.css";

less/variables.less 看起来像这样:

    // Variables Grayscale Theme

    @primary: #0033ff;
    @dark: #000;
    @light: #fff;

可能是什么问题呢?不是可以在主题中添加自己的less文件吗?PHPStorm 在我的 layout.less 中显示了正确的颜色,因此 variables.less 中的值匹配正确。

我本地系统上的所有组的用户权限都设置为 775/775,所以这不是我的问题。

我正在使用今天从 github 构建的版本。

有人有想法吗?

4

1 回答 1

0

这是一个已知问题,已修复但尚未发布。

这是修复的链接 - https://github.com/impresspages/ImpressPages/commit/c91d20d9bbf35702145bf18be028ab4882cbb2c6

随意更改此更改的核心文件或等待官方更新。

于 2014-09-08T19:51:19.063 回答