【发布时间】:2012-01-13 01:00:07
【问题描述】:
最后一次/最新的更新
在一个快速的步骤中,我做了 toogle css-aggregation - 并将其关闭:在网站上查看此操作的结果:http://campus-24.com/
我已将 css 聚合切换为关闭 - 在性能部分:
查看第一个结果:http://imageshack.us/photo/my-images/842/viewactivitylogstreamdi.jpg/ 好吧,我必须做更多...
http://commons.acquia.com/discussion/no-theme-new-install
http://commons.acquia.com/discussion/no-theme-new-install#comment-15346
我也遇到了同样的问题,通过禁用 CSS 解决了 优化。检查了我所有的CSS /profiles/drupalcommons/themes,都是 UTF-8。你好试试这个 你可能会找到答案http://drupal.org/node/445462 似乎 表示我找到了解决方案。你只需要转换你所有的CSS unix/utf8 中的文件就完成了。希望对你有帮助
[对本主题的最新输入结束]
亲爱的用户您好 - 大家好!除了来自 drupalers 上传新主题的一些想法 [由于旧的基本主题可能存在一些问题,我发现了可以进行设置和配置的概述。
现在我发现了如何查看一些概览 - 并且向前迈出了一大步 - 现在我已经登陆 View activity_log_stream,显示类型为 Activity Log 的项目:see the image: 这里我可以改变很多!好吧,但我想我必须弄清楚如何......!?
可以使用此设置生成此视图 - 站点:http://campus-24.com/?q=admin/build/views/edit/activity_log_stream#views-tab-page_2 现在我很高兴在站点上看到一些概述,我可以在其中进行一些调整和配置:请参阅主页 » 管理 » 站点构建 » 视图:我似乎在这里能够编辑视图 activity_log_stream
http://campus-24.com/?q=admin/build/views/edit/activity_log_stream 查看 activity_log_stream, 显示活动日志类型的项目。
但我必须说,我需要一些建议来弄清楚如何在页面上添加一些样式。你有什么推荐吗,我很想听到你的很多问候
顺便说一句:您可以使用管理员登录 只要让我知道就联系我...
我尝试导出设置数据:注意:无法创建文件。
见http://campus-24.com/?q=admin/build/views/export/activity_log_stream
$view = new view;
$view->name = 'activity_log_stream';
$view->description = 'Displays activity streams.';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'activity_log_messages';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'message' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'exclude' => 0,
'id' => 'message',
'table' => 'activity_log_messages',
'field' => 'message',
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'last_updated' => array(
'order' => 'DESC',
'granularity' => 'second',
'id' => 'last_updated',
'table' => 'activity_log_messages',
'field' => 'last_updated',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'stream_owner_type' => array(
'default_action' => 'ignore',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'activity_log_default_stream_owner_type',
'default_argument' => '',
'validate_type' => 'activity_log_validate_stream_owner_type',
'validate_fail' => 'not found',
'glossary' => 0,
'limit' => '0',
'case' => 'none',
'path_case' => 'none',
'transform_dash' => 0,
'id' => 'stream_owner_type',
'table' => 'activity_log_messages',
'field' => 'stream_owner_type',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_fixed' => '',
'default_argument_user' => 0,
'default_argument_activity_log_stream_owner_type' => 'user',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'page' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'1' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'validate_argument_php' => '',
),
'stream_owner_id' => array(
'default_action' => 'ignore',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'current_user',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'break_phrase' => 0,
'not' => 0,
'include' => array(
'og' => 0,
'ur' => 0,
),
'id' => 'stream_owner_id',
'table' => 'activity_log_messages',
'field' => 'stream_owner_id',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_fixed' => '',
'default_argument_user' => 0,
'default_argument_activity_log_stream_owner_type' => 'user',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'page' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'1' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'validate_argument_php' => '',
),
));
$handler->override_option('filters', array(
'display_type' => array(
'operator' => '=',
'value' => 'web',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'display_type',
'table' => 'activity_log_templates',
'field' => 'display_type',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'perm',
'perm' => 'view all activity messages',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('empty', 'There are no visible status updates.');
$handler->override_option('empty_format', '1');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 20);
$handler->override_option('use_pager', '1');
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'activities');
$handler->override_option('menu', array(
'type' => 'normal',
'title' => 'Activity stream',
'description' => 'Displays activity streams.',
'weight' => '0',
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler = $view->new_display('page', 'Page', 'page_2');
$handler->override_option('path', '');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
如果您想查看管理区域 - 请让我知道!
顺便说一句 - 我注意到在新安装中没有创建以下表格..
og_access_post
og_notifications
content_group
content_group_fields
facebook_status_tags
fbss_comments
无论出于何种原因 - 我不知道..
乍一看,我认为以下两张表可能更令人感兴趣:你怎么看!?
content_group
content_group_fields
目前我仍在尝试找出缺少的内容 - 哪些问题导致严重缺乏风格。 一般而言:至于面对 网站仍然保持不变 - 在硬核更改之后[昨晚由于我的服务器管理员同时更改了整个网站的 chown 和 chmod],我我正在思考我上周所做的所有微小的事情和改变:我会尝试经历我所做的所有微小的改变
今晚我将检查所有 site-administration-adjustments:我上周进行了一些更正和测试,因此有一些提示:“这是由于安装在性能管理部分 (admin/设置/性能)你有带宽优化选项“OPTIMIZE CSS FILES”和“OPTIMIZE JAVASCRIPT FILES”启用。此设置通常对生产(实时)站点非常有用 - 我这样做是为了测试和自定义 Drupal Commons 安装因为我尽管最好禁用使用 Firefox 的“Firebug”等工具来支持 CSS 和 JS 开发。”
过去 24 小时内做了什么:根据
提出的所有建议和建议的更改Bon Espresso
Siwei Shen
Shaun Dychko
clive
我的服务器管理员对 /home/vhost/WWW/campus-24.com/ 进行了一些更改 对于所有文件/文件夹,permission-/ownership-settings 设置为
owner vhost:www
664 for files and 2775 for the folders)
还进行了以下更正/调整:
php_admin_value open_basedir
"/home/vhost/WWW/campus-24.com/:/usr/local/httpd/icons/"
php_admin_value max_execution_time 360
php_flag session.auto_start off
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_flag mbstring.encoding_translation off
php_admin_value memory_limit 128M
php_admin_value max_input_time 360
php_admin_value post_max_size 16M
php_admin_flag safe_mode_gid off
php_admin_flag safe_mode off
但该网站目前看起来并没有什么不同。 All 仍然是 stylefree: [注意:由于上周的一些建议,我已在管理设置中将 css 和 js 设置设置为特殊模式到 有点称为关闭模式]。猜猜我也可以在这里做一些更正]
嗯,外观和感觉没有变化。猜猜这并不奇怪,因为在安装过程中缺少正确的权限-所以我想我必须使用正确的权限进行安装-然后所有权一切都会好起来的!?
更新结束
这里是原始帖子,包含所有描述和想法
Drupal Commons 站点安装后没有样式:看起来像 www.campus-24.com
更新:感谢 Siwei Shen 在下面请求指定路径的权限 - 例如作为“www-data”用户。好吧,我想我无法读取 css 文件夹。 不 - 我不是,因为下面提到的所有 文件夹都归 wwwrun-user 拥有
我们有以下的
/home/vhost/WWW/campus-24.com/sites/default/files/js
/home/vhost/WWW/campus-24.com/sites/default/files/css
/home/vhost/WWW/campus-24.com/sites/default/files/imagecache
/home/vhost/WWW/campus-24.com/sites/default/files/ctools
/home/vhost/WWW/campus-24.com/sites/default/files/pictures
但文件夹包含文件 - 由虚拟主机用户拥有。 但请稍等: 我想我后来已经将文件复制到文件夹中(抱歉抱歉我不记得这个确切的故事了)我尝试了我能做的一切。猜测我也尝试将文件复制到文件夹中。 但对我来说最有趣的是 - 文件夹归 wwwrun-user 所有。 你怎么看!?
除了上面提到的文件夹之外,这两个文件归 wwwrun-user 拥有
- 默认用户.png
- default-group.png
在安装过程中,我注意到有关 - 打开的文件过多的警告。
我听说过“css_1acaad3d96ebad99fc9b6ef9d4ee4.css”文件:它被称为自动生成的文件,它压缩所有用于提高速度和帮助不重载渲染的 CSS 样式。如果此文件不在我的文件夹中怎么办 - 我的网站是否有 (!!!) 看起来像上面提到的网站?
注意我的服务器管理员更改了原始 htaccess。但我想我(
这意味着站点管理员 [我的朋友] 错过了(并且忘记了一个重要选项)查看我们实际使用的 htacess - 这是一个被黑的:在这里查看
pastebin.de/22149
查看链接http://campus-24.com/?q=stream
没有图片,没有 CSS。有没有权利或许可问题?
查看错误报告 http://campus-24.com/?q=admin/settings/error-reporting
错误报告
The configuration options have been saved.
warning: array_map() [function.array-map]: Argument #2 should be an array in /home/vhost/WWW/campus-24.com/modules/system/system.module on line 1020.
warning: array_keys() expects parameter 1 to be array, null given in /home/vhost/WWW/campus-24.com/includes/theme.inc on line 1832.
warning: Invalid argument supplied for foreach() in /home/vhost/WWW/campus-24.com/includes/theme.inc on line 1832.
查看更多错误报告:
查看更多错误日志: http://pastebin.de/22378
在网站上http://campus-24.com/?q=admin/help/dblog - 我有 dblog-log-info “cat /proc/sys/fs/file-nr”的输出是什么?
请参阅此处的 dblog 日志,它只是一个记录事件的列表,其中包含使用数据、性能数据、错误、警告和操作信息。
Type php
Date Monday, 16 January, 2012 - 21:47
User martin
Location http://campus-24.com/?q=admin/reports
Referrer http://campus-24.com/?q=stream
Message array_keys() expects parameter 1 to be array, null given in /home/vhost/WWW/campus-24.com/includes/theme.inc on line 1832.
Severity error
Hostname 188.99.183.60
Type php
Date Monday, 16 January, 2012 - 21:47
User martin
Location http://campus-24.com/?q=admin/reports
Referrer http://campus-24.com/?q=stream
Message array_keys() expects parameter 1 to be array, null given in /home/vhost/WWW/campus-24.com/includes/theme.inc on line 1832.
Severity error
Hostname 188.99.183.60
Operations
Type php
Date Monday, 16 January, 2012 - 21:47
User martin
Location http://campus-24.com/?q=admin/reports
Referrer http://campus-24.com/?q=stream
Message array_map() [<a href='function.array-map'>function.array-map</a>]: Argument #2 should be an array in /home/vhost/WWW/campus-24.com/modules/system/system.module on line 1020.
Severity error
Hostname 188.99.183.60
Operations
Type php
Date Monday, 16 January, 2012 - 21:47
User martin
Location http://campus-24.com/?q=stream
Referrer
Message Invalid argument supplied for foreach() in /home/vhost/WWW/campus-24.com/includes/theme.inc on line 1832.
Severity error
Hostname 188.99.183.60
Operations
猜想缺少一些小东西 - 如上所述:我回来报告所有发现。
【问题讨论】:
-
我正面临这个问题,目前不使用 OPTIMIZE 功能。
-
你好,亲爱的 Bon Espresso。很高兴听到你的消息!你有同样的问题吗?我对此感到非常高兴。因为我认为我是唯一面临这个问题的人。好吧 - 现在该怎么办!?你建议我不要(!!!!)使用优化功能!?好吧 - 剩下一个任务。在哪里调整这个......选项在哪里......在我手动编辑的设置文件中?!安装开始之前!?
-
Drupal 的设置有一些选项(当然,安装后你有管理员权限)。访问Drupal Performance setting 并取消选中“聚合和压缩 CSS 文件”两个选项。和“聚合 JavaScript 文件”。我会找到根本原因,如果发现问题我会告诉你。
-
你好 bon Espresso 很高兴收到你的来信!好吧,看看这里运行的drupal commons:taxigourmet.net 和boysday.org 和campus-24.com/?q=user/1 我试图理解你所写的一切 - 并将遵循你给我的任何和所有建议!如果您发现任何看起来像根本原因的东西,我会非常高兴!我每天都来这里 - 当然可以!祝你有美好的一天,一切顺利!!!问候零
标签: javascript css drupal drupal-6 firebug