Kunena 6.2.4 Released

The Kunena team has announce the arrival of Kunena 6.2.4 [K 6.2.4] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Solved Deprecated messages with Joomla 5.0.0

More
3 months 3 weeks ago #1 by Gindi
When I enable the call stack to test Joomla 5.0.0, I get the following on the user page in the forum for categories:
Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$url is deprecated in /srv/www/htdocs/BFB500/libraries/kunena/src/Layout/KunenaBase.php on line 570

Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$target is deprecated in /srv/www/htdocs/BFB500/libraries/kunena/src/Layout/KunenaBase.php on line 570

Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$internal is deprecated in /srv/www/htdocs/BFB500/libraries/kunena/src/Layout/KunenaBase.php on line 570

For Current Topics, this is what is displayed for each topic:

Deprecated: Creation of dynamic property Kunena\Forum\Site\Layout\Widget\WidgetLabel::$ktemplate is deprecated in /srv/www/htdocs/BFB500/libraries/kunena/src/Layout/KunenaBase.php on line 570

Under Current Topics, is displayed about members:

Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$usersUrl is deprecated in /srv/www/htdocs/BFB500/libraries/kunena/src/Layout/KunenaBase.php on line 570

Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$membersOnline is deprecated in /srv/www/htdocs/BFB500/libraries/kunena/src/Layout/KunenaBase.php on line 570

Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$onlineList is deprecated in /srv/www/htdocs/BFB500/libraries/kunena/src/Layout/KunenaBase.php on line 570

Deprecated: Creation of dynamic property Kunena\Forum\Libraries\Layout\KunenaLayout::$hiddenList is deprecated in /srv/www/htdocs/BFB500/libraries/kunena/src/Layout/KunenaBase.php on line 570

In der KunenaBase.php geht es um folgenden Bereich:
* Modifies a property of the object, creating it if it does not already exist.
     *
     * @param   string  $key    The name of the property.
     * @param   mixed   $value  The value of the property to set.
     *
     * @return  \Kunena\Forum\Libraries\Layout\KunenaBase
     *
     * @since   Kunena 6.0
     */
    public function set($key, $value)
    {
        $isFactory = \is_object($value) && method_exists($value, '__invoke');

        if ($isFactory) {
            $this->closures[$key] = $value;
        } else {
            $this->{$key} = $value;
        }

        return $this;
    }
Zeile 570 ist fett markiert.

Gindi

 
The following user(s) said Thank You: rich

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

More
3 months 3 weeks ago #2 by rich
Thanks for reporting. This bug occurs with PHP 8.2 and is already fixed in Kunena 6.2.1-DEV
github.com/Kunena/Kunena-Forum/pull/9570
The following user(s) said Thank You: Gindi

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

More
3 months 3 weeks ago #3 by Gindi
I installed the modified KunenaLayout.php from "Fix: deprecated layout variables messages (#9570)" on my test server and there are no more deprecated messages.
Thanks to xillibit.

Gindi

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

Time to create page: 0.545 seconds