Results 1 to 5 of 5

Thread: Fatal error: Call to a member function generateMainImage() o

  1. #1
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Fatal error: Call to a member function generateMainImage() o

    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

  2. #2
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Fatal error: Call to a member function generateMainImage

    meaning $functioncall(); instead of $something = functioncall(); ?????
    (i wear my ignorance on my sleeve like a badge)

  3. #3
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Fatal error: Call to a member function generateMainImage

    It seems that at runtime when the isotope list runs, the Gallery Object isn't there anymore? Where did it get lost?

    Code:
    <?php echo $this->images->generateMainImage('thumbnail'); ?>
    The Isotope reader is still working, how can that be?

    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.

  4. #4
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Fatal error: Call to a member function generateMainImage

    (dont quote me - necessary for my learning)
    Not sure how it's getting wiped.
    because its return is not attached to an object?
    what is iso_list_default.tpl on line 7
    edit: sorry, this is line 7 <?php echo $this->images->generateMainImage('thumbnail'); ?> ?

  5. #5
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Fatal error: Call to a member function generateMainImage

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •