×
Kunena 5.1.5 Released - Security Release (14 Oct 2018)

The Kunena team has announce the arrival of Kunena 5.1.5 [K 5.1.5] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a Security release.

Solved Posting error

More
1 year 1 month 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
1 year 1 month 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
1 year 1 month 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
1 year 1 month 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
1 year 1 month 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
1 year 4 weeks 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
1 year 4 weeks 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
1 year 4 weeks 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
1 year 4 weeks 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
1 year 4 weeks 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 add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.095 seconds