Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Solved [gelöst] Fehlermeldung im Abstimmungsmodul

More
12 years 5 months ago - 12 years 5 months ago #156941 by ObelixDE
Hallo zusammen,

iach habe wollte heute eine Abstimmung erstellen und musste feststellen, dass diese nicht richtig arbeitet.
Beim Eerstellen und beim ersten Aufruf des Postes funktioniert das ganze noch.
Nach der Auswahl und dem Bestätigen eines Eintrages kommt folgende Fehlermeldung:

500 Internal Server Error
Fatal Error was detected!

Fatal Error: Call to undefined method JUtility::getToken() in components/com_kunena/template/garava/html/topic/default_pollresults.php on line 58

The error was detected in the Kunena Component.


Ich habe mir mal die Datei angeschaut. Leider fehlt mir hier die Erfahrung um den Fehler zu definieren.
Folgendes Steht in der Datei an dieser Stelle:
Code:
<a href="<?php echo KunenaRoute::_("index.php?option=com_kunena&view=topic&id={$this->topic->id}&catid={$this->category->id}&pollid={$this->poll->id}&task=resetvotes&".JUtility::getToken() .'=1') ?>"><?php echo JText::_('COM_KUNENA_TOPIC_VOTE_RESET'); ?></a>

Hier ist ein Teil nicht definiert, soweit habe ich die Meldung verstanden.
Danach endet mein wissen :(
Was muss hier geändert werden?

Grüße
Obelix

:blink: Der Satz "Ich gehe davon aus..." beinhaltet 95% Fehlerquote. :blink:
Last edit: 12 years 5 months ago by ObelixDE.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #156945 by rich
Der Fehler scheint an deinem Template zu liegen. Soweit mir bekannt ist, wurde „gavara“ für Kunena 2.0 geschrieben. Teste es bitte mal mit Blue Eagle 3.0.5.

Important! Always create a backup before you make any changes to your website!
The following user(s) said Thank You: ObelixDE

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #156946 by ObelixDE
Hallo Rich,

Danke für die schnelle Info.
Du hast recht! grave ist für 2.0 geschrieben.
Nach dem Umstelen hat es funktioniert.

Ich habe mal den Code in der betreffenden Datei ertwas umgestellt und jetzt scheint es zu funktionieren.

So sieht der Code Jetzt aus:
Code:
/* Zeile 44 - 55*/ <tr class="krow<?php echo $row%2+1;?>"> <td colspan="4" class="kpoll-info"> <?php if (!$this->me->exists()) : ?> <?php echo JText::_('COM_KUNENA_POLL_NOT_LOGGED'); ?> <?php elseif ($this->voted && !$this->config->pollallowvoteone) : ?> <a href="<?php echo CKunenaLink::GetPollURL('vote', $this->topic->id, $this->category->id);?>"> <?php echo JText::_('COM_KUNENA_POLL_BUTTON_VOTE'); ?> </a> <?php endif; ?> <?php if( $this->me->isModerator($this->topic->getCategory()) ) : ?> <a href="<?php echo KunenaRoute::_("index.php?option=com_kunena&view=topic&id={$this->topic->id}&catid={$this->category->id}&pollid={$this->poll->id}&task=resetvotes&".JSession::getFormToken() .'=1') ?>"><?php echo JText::_('COM_KUNENA_TOPIC_VOTE_RESET'); ?></a> <?php endif; ?>

Zeile 52 bis 55 habe ich entfernt.
Die aufgerückte Zeile 57 (Jetzt 54) habe ich mit dem Code welcher im Tamplate Bue Eagle 3.0.5 verwendet wird ersetzt.
Jetzt tut es (hoffentlich) wie es soll :woohoo:

Nochmals Danke.

Grüße
Obelix

:blink: Der Satz "Ich gehe davon aus..." beinhaltet 95% Fehlerquote. :blink:

Please Log in or Create an account to join the conversation.

Time to create page: 0.106 seconds