2016-07-23 8 views
1
Hello at the installation I want to change the modules directory on drupal 7 so i want to know if it possible or impossible.i want to change ../modules to ../mods/init and site/all/modules to ../mods/global 

私はinstall.core.incの行を変更しようとしました require_once DRUPAL_ROOT。 「/モジュール/ しかし、私はこのメッセージを手に入れた: 致命的なエラーは:(未定義の関数field_attach_loadに呼び出し)F中に:\ XAMP \ htdocsに\ CMS \ PHP \ dp7_1 \ \ entity.incラインに含まれる354drupalモジュールのディレクトリを変更してください

答えて

2

でDrupal 7では、/ */modulesディレクトリにモジュールを保存することをお勧めします。

そして、次のようなDrupalのコア内の任意の行を編集することが非常に悪い習慣を考えられている

参照のDrupalのを「決してハックコア」のドキュメントhttps://www.drupal.org/best-practices/do-not-hack-coreとその主な理由

install.core.inc:

  • You will make it complicated, difficult, or nearly impossible to apply site updates such as Security and bug fixes.
  • You will make it difficult for those that come after to maintain the site.
  • You could possibly leave your site vulnerable to exploits.

それは不可能ではありませんが、それはコアの非常に悪いハックとみなされ、すべてのアップグレードで経験される技術的な負債とオーバーヘッドを多く作り出し、他のモジュールや機能をハックしないで役に立たないようにします。

関連する問題