PDA

Zobacz pełną wersję : Community Polls - błąd



Radzio125
18-10-2013, 17:25
Hej, po zainstalowaniu Community Polls pojawia mi się błąd:

Warning: Missing argument 1 for CPAuthorization::CPAuthorization(), called in /public_html/components/com_communitypolls/communitypolls.php on line 44 and defined in public_html/components/com_communitypolls/helpers/cpauthorization.php on line 20

Fatal error: Class 'JParameter' not found in public_html/components/com_communitypolls/communitypolls.php on line 51

Błąd jest tylko po wejściu na strony związane z ankietami czyli np. index.php/polls?layout=polls, w panelu admina nie ma żadnych problemów. Wie ktoś co zrobić aby działało?

Joomla! 2.5.9
JomSocial 2.6.2
Community Polls 1.5.9


communitypolls.php 44


require_once JPATH_COMPONENT.DS.'helpers'.DS.'Date_Difference.p hp';


communitypolls.php 51


$controller = JRequest::getWord('controller', '');


cpauthorization.php 20


function CPAuthorization($config) {
if(APP_VERSION == '1.5'){
$auth =& JFactory::getACL();
$app = &JFactory::getApplication();
$db = &JFactory::getDBO();

// View quiz
if(!empty($config[PERMISSION_VIEW_RESULTS])){
$query = "select name from #__core_acl_aro_groups where id in(". $config[PERMISSION_VIEW_RESULTS] . ")";
$db->setQuery($query);
$groups = $db->loadObjectList();
if($groups){
foreach($groups as $group){
$auth->addACL( com_communitypolls, 'viewing', 'users', $group->name, 'polls', 'all' );
}
}
}