2012-05-10 13 views
0

Magento Extensionを設計したときに問題が発生しました。私は構成セクションの「一般」セクションの下に構成セクションページを持つsystem.xmlファイルを作成しました。Magentoパッケージ/拡張機能 - 完全に読み込まない

WebMatrix/MySqlの設定でWindowsのMagento Community 1.6.2で拡張機能を開発しました。

私は、unbuntu仮想ボックスを作成し、php/apache2とMagento Community 1.7で完全に設定したと思います。エクステンションパッケージを私のUbuntu Virtual BoxのMagento 1.7にインストールしました。 Magento Advancedセクションでは、自分の内線が使用されます。ただし、拡張機能の設定ページは、設定の「一般」セクションには表示されません。設定ページを読み込むことができません。

エクステンションの作成に使用した1.6.2と同じように、Magento 1.7の別のサイトをWindowsのボックスに作成しました。私はサイトに私のパッケージのインストールをダウンロードし、すべてがキャッシュをクリアした後に見つかった。

ubuntuのMagento 1.7のキャッシュはすべてクリアされていますが、まだ何もありません。私はUbuntu Magento Professionalバージョン1.10.1.0 Enviornmentにインストールするために私のパッケージをクライアントに渡しました。彼は私のMagentoと同じ問題を抱えています。

誰かが何故手がかりを持っていますか?以下は私のSystem.xmlですが、そこに問題があるのか​​疑問です。私のUbuntu環境では、私は777のすべての権限を与えています。

<config> 
    <sections> 
    <Communicator translate="label"> 
     <label>nChannel Communicator</label> 
     <tab>general</tab> 
     <sort_order>5000</sort_order> 
     <frontend_type>text</frontend_type> 
     <show_in_default>1</show_in_default> 
     <show_in_website>1</show_in_website> 
     <show_in_store>1</show_in_store> 
     <groups> 
     <Credentials translate="label"> 
      <label>Credentials</label> 
      <frontend_type>text</frontend_type> 
      <sort_order>100</sort_order> 
      <show_in_default>1</show_in_default> 
      <show_in_website>1</show_in_website> 
      <show_in_store>1</show_in_store> 
      <fields> 
      <ENABLED translate="label"> 
       <label>Enabled</label> 
       <comment> 
       <![CDATA[If disabled no nChannel functionality will operate.]]> 
       </comment> 
       <frontend_type>select</frontend_type> 
       <source_model>adminhtml/system_config_source_yesno</source_model> 
       <sort_order>10</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 
      </ENABLED> 
      <TOKEN translate="label"> 
       <label>Token</label> 
       <comment> 
       <![CDATA[nChannel Token for communication to API.<br /> 
       <span class="notice">This is unqiue to a Location Device</span>]]> 
       </comment> 
       <frontend_type>text</frontend_type> 
       <sort_order>20</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 
      </TOKEN> 
      <LOCATION translate="label"> 
       <label>LocationID</label> 
       <comment> 
       <![CDATA[nChannel LocationID to send the order to.]]> 
       </comment> 
       <frontend_type>text</frontend_type> 
       <sort_order>30</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 
      </LOCATION> 
      <URL translate="label"> 
       <label>Environment</label> 
       <comment> 
       <![CDATA[nChannel api URL to send the order to.]]> 
       </comment> 
       <frontend_type>select</frontend_type> 
       <source_model>nChannel_Communicator/Source_nChannelEnvironment</source_model> 
       <sort_order>40</sort_order> 
       <show_in_default>1</show_in_default> 
       <show_in_website>1</show_in_website> 
       <show_in_store>1</show_in_store> 
      </URL> 
      </fields> 
     </Credentials> 
     </groups> 
    </Communicator> 
    </sections> 
</config> 

答えて

0

私はこの質問を提出しませんでした。私は問題が大文字と小文字の区別の原因であることを発見しました。拡張のチュートリアルでこれをあまり参考にしていませんでした。

Linuxでは大文字と小文字が区別されますが、Windowsでは大文字と小文字が区別されます。私は使用していた:

/app/code/community/nChannel/Communicator. 

nChannelは私の会社のIDです。 Magentoはデフォルトでモジュール名の最初の文字を大文字にします。これはWindowsでは問題ではありませんでしたが、Linuxではそれが問題です。だから、私は自分のフォルダ構造を次のように変更します:

すべてがうまくいきました。私はこれが他の問題だったと思って何時間も過ごしました!

関連する問題