×
Kunena 5.2 Beta 1 Released (24 Sep 2020)

The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

Solved Posting error

More
3 years 1 week 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
3 years 1 week ago #2 by 810
Replied by 810 on topic Posting error
try to edit that file but on line 1581 change to:
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
3 years 1 week 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
3 years 1 week 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
3 years 1 week ago #5 by Nikiniko
Replied by Nikiniko on topic Posting error

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

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
3 years 1 week ago #6 by Nikiniko
Replied by Nikiniko on topic Posting error

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

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
3 years 1 week 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
3 years 1 week 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
3 years 6 days 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
3 years 6 days 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.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.183 seconds