Keyword

Creating default object from empty value

More
3 years 11 months ago - 3 years 11 months ago #175631 by Sean
With the root, I updated K2 which removed the error message but disabled the gallery switcher on the 'Latest Projects' the old version at /joomla/ is throwing an error message 'Creating default object from empty value'

//Plugins
$results = $dispatcher->trigger('onBeforeDisplay', array(&$item, &$params, $limitstart));
//Line 363 below
$item->event->BeforeDisplay = trim(implode("\n", $results));
Any ideas?
Last edit: 3 years 11 months ago by Sean.

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

More
3 years 11 months ago #175637 by JoomlaWorks
Replied by JoomlaWorks on topic Creating default object from empty value
Does the error occur in a K2 file or elsewhere? You didn't mention the exact file...

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

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

More
3 years 11 months ago - 3 years 11 months ago #175639 by Sean
Replied by Sean on topic Creating default object from empty value
Thanks! Yes, the file is:

Warning: Creating default object from empty value in /home/hrd2h53gstoo/public_html/joomla/modules/mod_k2_content/helper.php on line 363

It shows up on the webpage frontend under 'our services' and again down in the footer

(website removed)
Last edit: 3 years 11 months ago by Sean.

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

More
3 years 11 months ago #175645 by JoomlaWorks
Replied by JoomlaWorks on topic Creating default object from empty value
You have a really old K2 version. You should consider upgrading to the latest K2 v2.10.3 as soon as possible.

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

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

More
3 years 11 months ago - 3 years 11 months ago #175646 by Sean
Replied by Sean on topic Creating default object from empty value
I installed the new module on (website removed) site and it corrected the issue but now the gallery buttons don't work under 'latest projects' Shower doors / glass handrails / windows / Doors / Commercial / They are supposed to sort the images when clicked
Last edit: 3 years 11 months ago by Sean.

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

More
3 years 11 months ago #175649 by JoomlaWorks
Replied by JoomlaWorks on topic Creating default object from empty value
There's a chance whoever built your site did not work on template overrides and directly edited core K2 template files. As such, when you updated, these changes were lost. Or you use some 3rd party extension for these sorting filters and it's not compatible with K2 latest for some reason.

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