title: PHP code for a total newbie with just enough knowledge to debug
body: <p>I'm just logical, not a coder.
  I'm also not english, so i hope you will understand me.
  I have some troubles with some PHP scripts and i don't find out where's the problem.</p>
  
  <p>This code is working well as a standalone. When used with another module (joomla), it returns this error.</p>
  
  <p>Code : </p>
  
  <pre><code>        }
  
          // Used for styling the active article
          $item-&gt;active = $item-&gt;id == $active_article_id ? 'active' : '';
          $item-&gt;title = self::truncate($item-&gt;title, $title_limit);
          if ($show_introtext) {
              $item-&gt;introtext = JHtml::_('content.prepare', $item-&gt;introtext, '', 'mod_sj_carousel.content');
          self::getAImages($item, $params);
              $item-&gt;introtext = self::_cleanText($item-&gt;introtext);
          } else {
              $item-&gt;introtext = JHtml::_('content.prepare', $item-&gt;introtext, '', 'mod_sj_carousel.content');
          self::getAImages($item, $params);
          }
          $item-&gt;displayIntrotext = $show_introtext ? self::truncate($item-&gt;introtext, $introtext_limit) : '';
          $item-&gt;displayReadmore = $item-&gt;alternative_readmore;
      }
      return $items;
      }
  }
  </code></pre>
  
  <p>Returned Error : </p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method SjCarouselHelper::getAImages() in /home/abecedai/public_html/advvpm/modules/mod_sj_carousel/core/helper.php on line 159</p>
  </blockquote>
  
  <p>I've no idea how and where i should define this method. I guess the problem is in the code, not fair for my PHP configuration. What is strange, is that it's working well without another joomla plugin activated (Jcomments). When Jcomments is activated, it goes wrong and crash.</p>
  
  <p>I've been parsing the code, and did not found any function or declaration with similar name. Ther is definatly a conflict.</p>
  
  <p>Parsing the module code where i get this error, this is the only place where i can find getAImages().</p>
  
  <p>PHP ver is 5.3.25</p>
  
  <p>Please consider me as a total noob in coding. I can understand what it does, but i'm not able to code myslef as i never learned how to.</p>