Hey Guys
I was hoping someone can assist. It seems the
Fatal error: Call to a member function generateMainImage() on a non-object in /usr/www/users/adven/contao/system/modules/isotope/templates/iso_list_default.tpl on line 7
Hey Guys
I was hoping someone can assist. It seems the
Fatal error: Call to a member function generateMainImage() on a non-object in /usr/www/users/adven/contao/system/modules/isotope/templates/iso_list_default.tpl on line 7
meaning $functioncall(); instead of $something = functioncall(); ?????
(i wear my ignorance on my sleeve like a badge)
It seems that at runtime when the isotope list runs, the Gallery Object isn't there anymore? Where did it get lost?
The Isotope reader is still working, how can that be?Code:<?php echo $this->images->generateMainImage('thumbnail'); ?>
I made modifications to Isotope Product, but i undid those and it still didn't work.
Somewhere the Gallery Object isn't attached. I'm stumped, as I've gone carefully through the code, and at the point where it should add the Gallery, the config attributes in the DCA are empty (and do not contain the inputType, ouch!), so it can't detect the 'mediaManager' so it doesn't attach it. Not sure how it's getting wiped.
(dont quote me - necessary for my learning)because its return is not attached to an object?Not sure how it's getting wiped.
what is iso_list_default.tpl on line 7
edit: sorry, this is line 7 <?php echo $this->images->generateMainImage('thumbnail'); ?> ?
I found the bug...
I've added custom tl_class widths into dcaconfig.php and when the ModuleIsotopeList.php runs, it reads that there is already data in the tl_iso_product DCA in the ['fields'] section, so it doesn't load the DCA. I'm submitting this as a bug report.
Temporarily I've uncommented the lines to always force a load
Code:// Make sure field data is available // if (!is_array($GLOBALS['TL_DCA']['tl_iso_products']['fields'])) // { $this->loadDataContainer('tl_iso_products'); $this->loadLanguageFile('tl_iso_products'); // }
Bookmarks