- Posts: 11
COMMUNITY FORUM
error message in k2 after Joomla 3.5 update
- rustyDusty
- Topic Author
- Offline
- New Member
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?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
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.
- Vlad
- Offline
- New Member
- Posts: 2
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
- Offline
- Platinum Member
- Posts: 15920
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.
- Vlad
- Offline
- New Member
- Posts: 2
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
- Offline
- Platinum Member
- Posts: 15920
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.
- proinsurer
- Offline
- New Member
- Posts: 1
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
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
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.