Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question 500 Internal Server Error on new topic in PHP 7 and Joomla! 3.5

More
10 years 1 month ago - 10 years 1 month ago #173913 by HugCoder
I don't get the error when viewing topics but when I try to create a new topic I get this:
"
500 Internal Server Error
Fatal Error was detected!

The error was detected in the Libraries.

Fatal Error: Cannot use 'String' as class name as it is reserved in libraries/vendor/joomla/string/src/String.php on line 19
"
If I comment the line 19 out I instead get this Kunena error:
"
The error was detected in the Kunena Component.

Fatal Error: Method KunenaLayoutTopicEditEditor::__toString() must not throw an exception, caught Error: Class 'Joomla\String\String' not found in components/com_kunena/template/crypsis/layouts/topic/edit/default.php on line 0
"

If you are using String, you should start using StringHelper instead. All String does is extend StringHelper.

Using PHP 7, Kunena 4.0.10 and Joomla! 3.5.
Using PHP 5.6.18 seems to remove this error, so apparently it's incompatability with PHP7 that is the issue.
Last edit: 10 years 1 month ago by HugCoder.

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

More
10 years 1 month ago #173917 by xillibit
Hello,

Untill the new release, you can apply the following fix :

-open the file : \components\com_kunena\template\crypsis\layouts\topic\edit\editor\default.php
-At line 111 change the following :
Code:
echo '<option value = "' . (! empty ( $vid_type [1] ) ? $this->escape($vid_type [1]) : Joomla\String\String::strtolower ( $this->escape($vid_type [0]) ) . '') . '">' . $this->escape($vid_type [0]) . '</option>';

by :
Code:
echo '<option value = "' . (! empty ( $vid_type [1] ) ? $this->escape($vid_type [1]) : Joomla\String\StringHelper::strtolower ( $this->escape($vid_type [0]) ) . '') . '">' . $this->escape($vid_type [0]) . '</option>';

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: rogoghaje

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

More
10 years 1 month ago #173922 by 810
crypsis is not php7 supported, until K5.0

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

Time to create page: 0.315 seconds