PDA

Zobacz pełną wersję : Rozszerzenie - display news



erik
16-11-2012, 16:52
Cześć,
zainstalowałam na swojej joomli rozszerzenie DisplayNews, chciałam umieścić ten komponent pod jedną z podstron, ale wyskakuje mi następujący błąd:



Warning: require_once(__DIR__/helper.php) [function.require-once (http://kire.pl/portal/function.require-once)]: failed to open stream: No such file or directory in /portal/modules/mod_dn/mod_dn.php on line 12

Fatal error: require_once() [function.require (http://kire.pl/portal/function.require)]: Failed opening required '__DIR__/helper.php' (include_path='.:/:/usr/local/php/pear5') in /portal/modules/mod_dn/mod_dn.php on line 12

Plik mod_dn.php wygląda następująco:


<?php
################################################## #################################################
# Display News 1.6.03 - July -2009 by bkomraz1@gmail.com
# http://joomlacode.org/gf/project/display_news/
# Based on Display News - Latest 1-3 [07 June 2004] by Rey Gigataras [stingrey] www.stingrey.biz mambo@stingrey.biz
# @ Released under GNU/GPL License : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
################################################## #################################################

defined('_JEXEC') or die('Direct Access to this location is not allowed.');

#require_once (dirname(__FILE__).DS.'helper.php');
require_once __DIR__ . '/helper.php';

global $modDisplayNewsHelperRuns;
if ( ! $modDisplayNewsHelperRuns ) {
$modDisplayNewsHelperRuns++;
$dn = new modDisplayNewsHelper();
$dn->main($params);
$modDisplayNewsHelperRuns--;
}
?>


Może ktoś mnie naprowadzi dlaczego pojawia się ten błąd i co zrobić, by moduł zaczął działać na mojej joomli! ?