×
Kunena 6.0.6 & Kunena 5.2.13 & blue eagle5 1.6.8 released as security release (28 Nov 2022)

The Kunena team has announce the arrival of Kunena 6.0.6 [K 6.0.6] which is now available for download as a native Joomla extension for J! 4.2.x. This is a security release.

× This section is for questions directly related to the procedure for installing Kunena for the first time or upgrading from an older version of Kunena.

Use this category:
  • to ask how to install or upgrade; or
  • if you encountered problems during the installation or upgrade procedure.

Use a different category to ask questions about problems that you may be having after you successfully installed or upgraded the currently supported version. If you are unsure what is the current supported version of Kunena, please go to the download page.

Question Upgrade to J4.1 / K6.0 breaks Cron

More
5 months 1 week ago #1 by pcstech
Upgrading from a J3.10 to J4.1.5 and update to K6.0 appears to go ok. Except that Cron Jobs/CLI no longer work. Tracked issue to Kunena and find if I disable (Plugin)  System - Kunena Forum then crons work as scheduled - but obviously disable the forum!

So it appears there needs to be a simple check:

if (!$this->app->isClient('site')) return;

this line in the plugin's event handlers would make it J4 compatible:

If this is correct can it be added asap.?
 

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

More
5 months 2 days ago #2 by pcstech
No ideas anyone? Where might i go about putting this ?
if (!$this->app->isClient('site')) return;

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

More
4 months 3 weeks ago - 4 months 3 weeks ago #3 by xillibit
Hello,

Try by using tihs :
if ($this->app->isCli()) return;

The method isCli() is deprecated and will removed in Joomla! 5.0 so it's a temporary solution but need to find an another way

I don't provide support by PM, because this can be useful for someone else.
Last edit: 4 months 3 weeks ago by xillibit.

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

More
4 months 3 weeks ago - 4 months 3 weeks ago #4 by pcstech
Hi,

Tried this in /plugins/system/kunena/kunena .php

And gives - An error has occurred.

0 Call to a member function isCli() on null

Last edit: 4 months 3 weeks ago by pcstech.

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

More
4 months 3 weeks ago #5 by xillibit

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

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

More
4 months 3 weeks ago - 4 months 3 weeks ago #6 by pcstech
OK - that line seems to be working. Just checking a couple of cron jobs now - will confirm shortly.

Have confirmed now  and can confirm that the line 43 allows cron jobs to run without error.
Excellent - thank you. :)
Last edit: 4 months 3 weeks ago by pcstech.
The following user(s) said Thank You: xillibit

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

More
4 months 3 weeks ago #7 by xillibit
Thanks for the feedback i have added this change for the next maintenance release of K6.0.x

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

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.081 seconds