Keyword

error message in k2 after Joomla 3.5 update

  • rustyDusty
  • rustyDusty's Avatar Topic Author
  • Offline
  • New Member
More
8 years 5 days ago - 8 years 5 days ago #152413 by rustyDusty
I just upgraded to Joomla 3.5 and everything is normal on the front-end but I do get an error message back-end when I link a menu item to a k2 article and in k2 parameters Layout & View tab is see this:
Strict Standards: Declaration of K2Element::render() should be compatible with JFormField::render($layoutId, $data = Array) in /home/account/public_html/site/administrator/components/com_k2/elements/base.php on line 25

mbabker @ Joomla support forum says:

They claim K2 2.7.0 is compatible with Joomla 3.5. So update to that first then see what happens. If it's still an issue, report a bug to their team. Long and short, JFormField::render() is a new method in Joomla 3.5 and uses a different method signature than K2's render method which PHP will warn about. Strict errors won't keep things from working completely, but depending on context, could possibly cause unintended behavior.


I did as he advised. I updated to k2 2.7.0 but the problem is still there.
What needs to be done to fix this or should I just live with it until the next update?
Last edit: 8 years 5 days ago by rustyDusty.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 days ago #152434 by Krikor Boghossian
Replied by Krikor Boghossian on topic error message in k2 after Joomla 3.5 update
A strict notice is not an error, it will not affect your site's behaviour.
You can get rid of it for now simply by disabling error reporting. This setting is located in the Global Configuration menu.

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

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

More
8 years 4 days ago #152458 by Vlad
Dear all,

I have a trouble with a displaying of K2 items. When publishing K2 material in a menu or in a category the modules for example in a sidebar moves down (below a K2 item). May be this problem concerns new updates? Because I haven't had such a problem before.
Sorry for my English, I'm from Russia.
And thank you in advance!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 days ago #152463 by Krikor Boghossian
Replied by Krikor Boghossian on topic error message in k2 after Joomla 3.5 update
Hello,

This is unrelated of the recent updates. This is to either a template issue (unclosed HTML tags) or if it happens only in particular items, it means that there are unclosed HTML tags in these items.

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

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

More
8 years 4 days ago #152474 by Vlad
Dear Krikor,

Thank you!
I've inspected the page with k2 item and I've found some unclosed tags. I hope that this is a problem. But unfortunately I don't know yet where to clean this elements. For instance I have </div> under <!-- //SIDEBAR RIGHT --> (This module is shifted). So can you please give me a piece of advice where I can delete this </div>?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 days ago #152497 by Krikor Boghossian
Replied by Krikor Boghossian on topic error message in k2 after Joomla 3.5 update
You 're welcome :)
This is specific to your template, you need to address this issue to the template's developers.

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

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

More
8 years 2 days ago - 8 years 2 days ago #152566 by proinsurer
Replied by proinsurer on topic error message in k2 after Joomla 3.5 update
I have same problem (

Joomla 3.5, K2 tools module:

Warning: Declaration of K2Element::render() should be compatible with JFormField::render($layoutId, $data = Array) in /Users/god/Documents/sites/us.loc/administrator/components/com_k2/elements/base.php on line 24
Last edit: 8 years 2 days ago by proinsurer.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 35 minutes ago #152636 by Krikor Boghossian
Replied by Krikor Boghossian on topic error message in k2 after Joomla 3.5 update
Hello,

This has already been reported here:
github.com/getk2/k2/issues/293#issuecomment-202144165

You can bookmark the issue in Github to see when it has been resolved.

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