2017-05-07 10 views
1

をjoomla ..、 で実行してください。リンク部分に次のエラーを示すjoomlaが表示されており、メインエラーは参考になると思います。 modChrome_artblockにパラメータ2() Dに与えられた 参照、値であることが予想:A_2 \ \ xamppの\ htdocsに\サイト\テンプレート\私はそれを変更した場合 に、それはすべてのリンクウェブページで次のエラーが表示される場合は、

警告は表示されませんHTML \ modules.php ライン上の36

警告:modChrome_artblockのパラメータ3() 基準であることが期待、 Dに与えられる値:A_2 \ HTML \ modules.php \ \ XAMPP \ htdocsに\サイト\テンプレートon line 36

このエラーのPHPコードは

- <?php 
      defined('_JEXEC') or die; 

      if (!defined('_ARTX_FUNCTIONS')) 
      require_once dirname(__FILE__) . str_replace('/', DIRECTORY_SEPARATOR, '/../functions.php'); 

      function modChrome_artstyle($module, &$params, &$attribs) 
      { 
      $style = isset($attribs['artstyle']) ? $attribs['artstyle'] : 'art-nostyle'; 
      $styles = array(
       'art-nostyle' => 'modChrome_artnostyle', 
       'art-block' => 'modChrome_artblock', 
       'art-article' => 'modChrome_artarticle', 
       'art-vmenu' => 'modChrome_artvmenu' 
      ); 
      // moduleclass_sfx support: 
      // '' or 'suffix' - the default module style: custom suffix will not be added to the module tag 
      //      but will be added to the module elements. 
      // ' suffix'  - adds suffix to the module as well as to the module elements. 
      // 'art-...'  - overwrites the default module style. 
      // 'suffix art-...' - overwrites the default style and adds suffix to the module and 
      //      to its elements, does not add art-... to the module elements. 

      $classes = explode(' ', rtrim($params->get('moduleclass_sfx'))); 
      $keys = array_keys($styles); 
      $art = array(); 
      foreach ($classes as $key => $class) { 
       if (in_array($class, $keys)) { 
       $art[] = $class; 
       $classes[$key] = ' '; 
       } 
      } 
      $classes = str_replace(' ', ' ', rtrim(implode(' ', $classes))); 
      $style = count($art) ? array_pop($art) : $style; 
      $params->set('moduleclass_sfx', $classes); 


> call_user_func($styles[$style], $module, $params, $attribs); 

      } 

      function modChrome_artnostyle($module, &$params, &$attribs) 
      { 
      if (!empty ($module->content)) : ?> 
      <!-- begin nostyle --> 
      <div class="art-nostyle<?php echo $params->get('moduleclass_sfx'); ?>"> 
      <?php if ($module->showtitle != 0) : ?> 
      <h3><?php echo $module->title; ?></h3> 
      <?php endif; ?> 
      <!-- begin nostyle content --> 
      <?php echo $module->content; ?> 
      <!-- end nostyle content --> 
      </div> 
      <!-- end nostyle --> 
      <?php endif; 
      } 

      function modChrome_artblock($module, &$params, &$attribs) 
      { 
      if (!empty ($module->content)) 
       echo artxBlock(($module->showtitle != 0) ? $module->title : '', $module->content, 
       $params->get('moduleclass_sfx')); 
      } 

      function modChrome_artvmenu($module, &$params, &$attribs) 
      { 
      if (!empty ($module->content)) { 
       if (function_exists('artxVMenuBlock')) 
       echo artxVMenuBlock(($module->showtitle != 0) ? $module->title : '', $module->content, 
        $params->get('moduleclass_sfx')); 
       else 
       echo artxBlock(($module->showtitle != 0) ? $module->title : '', $module->content, 
        $params->get('moduleclass_sfx')); 
      } 
      } 

      function modChrome_artarticle($module, &$params, &$attribs) 
      { 
      if (!empty ($module->content)) { 
       $data = array('classes' => $params->get('moduleclass_sfx'), 'content' => $module->content); 
       if ($module->showtitle != 0) 
       $data['header-text'] = $module->title; 
       echo artxPost($data); 
      } 
      } 

それがエラーを

call_user_func($スタイル[$スタイル]、$モジュール、$ paramsは、$はattribs)を示す図です。

+2

[「参照されると期待されるエラー、値が表示されている」と表示されるのはなぜですか?](http://stackoverflow.com/questions/3637164/why-does-the-error-expected-to -be-a-reference-value-given-appear) – user4035

+0

それはありません。私は既にこのリンクを3回以上通りました –

+0

'call_user_func'を' call_user_func_array'に変更しようとしましたか? – user4035

答えて

2

以下、それはモジュールに問題

ゴーを解決しますしてみてください - >アドバンス - >モジュールスタイル - >変更は、対応する位置のスタイルに "継承しました"。 (例:選択芸術-nostyle、アート・ブロックら) その場合にはあなたはそれがJoomlaの管理者で開く必要がありますPHPのバージョン

*****を縮小する必要はありません、そしてやります上記の手順

+0

うわー!!!ありがとう、私の問題を解決する多くの:-) –

関連する問題