メインコンテンツに移動

メインナビゲーション

  • ホーム
  • サイトマップ
  • ビデオ
  • ご連絡

パンくず

  • ホーム
  • Notice: Trying to get property of non-object in ldap_authentication_init()

Notice: Trying to get property of non-object in ldap_authentication_init()

drupal
drupal
LDAP

前提:

  • LDAPのインストールが完了
  • LDAP Serversが有効化完了

モジュール「LDAP Authentication」を有効化しようとするときに、以下のエラーが発生:
「Notice: Trying to get property of non-object in ldap_authentication_init() (line 223 of C:\develop\dev_sources\php\drupal\sites\all\modules\ldap\ldap_authentication\ldap_authentication.module).」

調べてみたら、この問題のバッチがある:

diff --git a/ldap_authentication/ldap_authentication.module b/ldap_authentication/ldap_authentication.module
index 965a4d9..3e797a4 100644
--- a/ldap_authentication/ldap_authentication.module
+++ b/ldap_authentication/ldap_authentication.module
@@ -220,7 +220,7 @@ function _ldap_authentication_verify_user_profile() {
  */
 function ldap_authentication_init() {
   $auth_conf = ldap_authentication_get_valid_conf();
-  if ($auth_conf->templateUsagePromptUser) {
+  if ($auth_conf) {
     ldap_authentication_check_for_email_template();
   }
 }

このバッチでエラーを修正した

ホーム

古松

検索

Article Category

  • apache(7)
  • css(19)
  • drupal(295)
  • Electron(4)
  • html(34)
  • javascript(27)
  • laravel(4)
  • linux(5)
  • macOS(2)
  • mysql(13)
  • php(19)
  • python(4)
  • SEO(12)
  • video(72)
  • Visual Studio Code(4)
  • windows(13)
  • wordpress(32)