Keyword

K2 and Jomres install

  • David L
  • David L's Avatar Topic Author
  • Offline
  • New Member
More
4 years 9 months ago #172452 by David L
K2 and Jomres install was created by David L
Joomla 3.9.8
PHP version 7.2.19
Jomres
K2 v2.9.0


0 - Using $this when not in object context when logged in

I get this error on my dev site with Jomres and K2. The error only appears in the following process

I created a login menu link on the English Menu (there is a Main Menu, English Menu, Sanish Menu and footer menus)
This is rendered in the site nav menu on the frontend as Member Login

When I click it the login module appears

Create a user using the K2 profile

login on the front end as a user (successfully) ie directs to a blog page

If I now click Member Login on the Menu again I get the following error

0 - Using $this when not in object context
You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
Please try one of the following pages:

Home Page
If difficulties persist, please contact the System Administrator of this site and report the error below.

Using $this when not in object context
/home/thefishi/public_html/libraries/src/Application/CMSApplication.php:370

Call stack
# Function Location
1 () JROOT/libraries/src/Application/CMSApplication.php:370
2 Joomla\CMS\Application\CMSApplication::getMenu() JROOT/libraries/src/Application/SiteApplication.php:275
3 Joomla\CMS\Application\SiteApplication::getMenu() JROOT/modules/mod_k2_user/helper.php:80
4 modK2UserHelper::getMenu() JROOT/modules/mod_k2_user/mod_k2_user.php:75
5 include() JROOT/plugins/system/t3/includes/joomla4/ModuleHelper.php:201
6 Joomla\CMS\Helper\ModuleHelper::renderModule() JROOT/libraries/src/Document/Renderer/Html/ModuleRenderer.php:98
7 Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render() JROOT/libraries/src/Document/Renderer/Html/ModulesRenderer.php:47
8 Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render() JROOT/libraries/src/Document/HtmlDocument.php:491
9 Joomla\CMS\Document\HtmlDocument->getBuffer() JROOT/libraries/src/Document/HtmlDocument.php:783
10 Joomla\CMS\Document\HtmlDocument->_renderTemplate() JROOT/libraries/src/Document/HtmlDocument.php:557
11 Joomla\CMS\Document\HtmlDocument->render() JROOT/libraries/src/Application/CMSApplication.php:1044
12 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:778
13 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:202
14 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49

I tried the edit line 19 plugins/user/k2/k2.php but this did not solve it.

Any ideas as to how to solve it would be greatly appreciated.

Regards
David
Attachments:

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

More
4 years 9 months ago #172460 by JoomlaWorks
Replied by JoomlaWorks on topic K2 and Jomres install
Update to K2 v2.10 (dev) from github.com/getk2/k2/archive/master.zip and it should resolve your issue.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • David L
  • David L's Avatar Topic Author
  • Offline
  • New Member
More
4 years 9 months ago #172555 by David L
Replied by David L on topic K2 and Jomres install
Hi Fotis,

Sorry for my delayed reply, Thunderbird decided to put this in my junk folder! Thank you for the link for update to K2.

It has worked perfectly, wonderful. This step has helped enormously.

Kind regards

David

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

More
4 years 8 months ago #172599 by JoomlaWorks
Replied by JoomlaWorks on topic K2 and Jomres install
You're welcome :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum