出现过几次,但是没有找到问题出在哪。

刷新缓存之后就好了。

现在用的memcache做缓存。但是之前没用memcache的时候也出现过一次。

出现问题是怎么收集信息呢?

CommentFileSizeAuthor
#4 csna_provider.patch875 bytesleetom

Comments

leetom created an issue. See original summary.

leetom’s picture

Status: Active » Closed (fixed)

找到问题了,是csna_form_alter在调用theme函数时,参数形式错了。改为如下解决问题:($provider 修改为 array('providers' => $providers))

/**
 * Implements hook_form_alter().
 */
function csna_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'user_login' || $form_id == 'user_login_block' || $form_id == 'user_register_form') {
    $providers = csna_providers();
    if (isset($form['submitted']['user_login_block']['#suffix']) && !empty($form['submitted']['user_login_block']['#suffix'])) {
      $form['submitted']['user_login_block']['#suffix'] .= theme('csna_providers', array('providers' => $providers));
    }
    else {
      $form['submitted']['user_login_block']['#suffix'] = theme('csna_providers', array('providers' => $providers));
    }
  }
}
rogical’s picture

Status: Closed (fixed) » Needs work

谢谢,如果可以请做个patch,我来commit进去

leetom’s picture

StatusFileSize
new875 bytes

您好,patch见附件,很小的改动。
多谢!

rogical’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 4: csna_provider.patch, failed testing.

  • leetom authored a055930 on 7.x-1.x
    Issue #2550575 by leetom: 登录页面的登录图标经常会消失
    
rogical’s picture

Status: Needs work » Fixed

commited.

rogical’s picture

Version: 7.x-1.2 » 7.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.