Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] 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 Posting error

More
6 years 6 months ago #1 by Nikiniko
Posting error was created by Nikiniko
Sometimes i try to respond and i get error message
The page you are looking for can't be found
Error 0 - Argument 1 passed to KunenaForumMessage::attachEmailBody() must be an instance of JMail, instance of Joomla\CMS\Mail\Mail given, called in /home/greekforum/public_html/libraries/kunena/forum/message/message.php on line 408
but the message is posted normaly

What should i do ?

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

More
6 years 6 months ago #2 by 810
Replied by 810 on topic Posting error
try to edit that file but on line 1581 change to:
Code:
protected function attachEmailBody(Joomla\CMS\Mail\Mail $mail, $subscription, $subject, $url, $once)
The following user(s) said Thank You: Nikiniko

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

More
6 years 6 months ago #3 by ssh
Replied by ssh on topic Posting error
@Nikiniko I also want to help with the troubleshooting.

If possible, please provide more details like:
Joomla Version
Kunena Version
PHP Version

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

More
6 years 6 months ago #4 by Nikiniko
Replied by Nikiniko on topic Posting error
Joomla Version last 3.8
Kunena Version last 5.11
PHP Version[ last PHP 7.0
thank you

Till you reply i will try the solution from 810

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

More
6 years 6 months ago #5 by Nikiniko
Replied by Nikiniko on topic Posting error

810 wrote: try to edit that file but on line 1581 change to:

Code:
protected function attachEmailBody(Joomla\CMS\Mail\Mail $mail, $subscription, $subject, $url, $once)


Which file ? message.php ?

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

More
6 years 6 months ago #6 by Nikiniko
Replied by Nikiniko on topic Posting error

810 wrote: try to edit that file but on line 1581 change to:

Code:
protected function attachEmailBody(Joomla\CMS\Mail\Mail $mail, $subscription, $subject, $url, $once)


Didnt work

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

More
6 years 6 months ago #7 by Nikiniko
Replied by Nikiniko on topic Posting error
This is from y programmer
Kunena 5.11 with Joomla 3.8 gives this error when trying to send an email notification: "The page you are looking for can't be found
Error 0 - Argument 1 passed to KunenaEmail::send() must be an instance of JMail, instance of Joomla\CMS\Mail\Mail given"

Joomla 3.7 mail class is JMail api.joomla.org/cms-3/classes/JMail.html which is what KunenaSend accepts on line 409 "KunenaEmail::send($mail, $receivers[1])"

However, on Joomla 3.8 the new email class is Joomla.CMS.Mail.Mail as seen api.joomla.org/cms-3/classes/JJoomla.CMS.Mail.Mai

Kunena accepts JMail, but Joomla gives Joomla.CMS.Mail.Mail.html which throws the error.

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

More
6 years 6 months ago #8 by Nikiniko
Replied by Nikiniko on topic Posting error
He advice me to go back to 3.7 or wait for you to fix it

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

More
6 years 6 months ago #9 by Nikiniko
Replied by Nikiniko on topic Posting error
Any fix ?

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

More
6 years 6 months ago #10 by ssh
Replied by ssh on topic Posting error
@Nikiniko I still can't reproduce this error.

Could you please make a new installation (joomla+kunena) in your test environment and give us the step by step to reproduce the error?

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

Time to create page: 0.408 seconds