Keyword

K2 v2.8 not error with php7

  • Steven Trooster
  • Steven Trooster's Avatar Topic Author
  • Offline
  • Premium Member
More
6 years 8 months ago #163427 by Steven Trooster
K2 v2.8 not error with php7 was created by Steven Trooster
After installing the latest version of K2 (v2.8) with PHP 7 I get an error message in the user module:
Non-static method JApplicationSite::getMenu() should not be called statically in /home/users/mysite/modules/mod_k2_user/helper.php on line 94

Deprecated: Non-static method JApplicationCms::getMenu() should not be called statically in /home/users/mysite/libraries/cms/application/site.php on line 272

Line 94 in the helper.php file reads:
$menu = JSite::getMenu();

This should be changed to:
$menu = JFactory::getApplication()->getMenu();

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 8 months ago #163434 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 v2.8 not error with php7
Hello Steven,

Thank you for your feedback.
We will look into it. Care to make a PR?
github.com/getk2/k2

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