• Jack Yan

    (@jack-yan)


    Hi there: this might not be an issue with your plug-in (which I find excellent and refreshingly without the bloat of the full Jetpack) but I thought I’d report the error I get here.

    As far as I can tell, if I first post, everything is fine, but after I edit the post, I get a lot of errors.

    The first error is right after updating. This error is repeated down my page, once for every photo I have put in to my gallery:

    Notice: Trying to get property of non-object in /vol/lucire.com/public_html/insider/wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1003 Notice: Trying to get property of non-object in /vol/lucire.com/public_html/insider/wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1003

    Then when I view the post, before the gallery I see this error:

    Notice: Undefined offset: 3 in /vol/lucire.com/public_html/insider/wp-content/plugins/tiled-gallery-carousel-without-jetpack/tiled-gallery.php on line 560 Notice: Trying to get property of non-object in /vol/lucire.com/public_html/insider/wp-content/plugins/tiled-gallery-carousel-without-jetpack/tiled-gallery.php on line 560

    You can see an example of this at:

    https://lucire.com/insider/20171102/raf-simons-reese-witherspoon-honoured-as-wsj-magazine-innovators/

    I hope you can give me some advice, please. This is the best tiled gallery plug-in out there and I really want to keep using it.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I can confirm this issue for the tiled mosaic (even without the caching plugins Jack uses above). I suppose it came after the 4.9.x update. It’s not always occuring, might depend on how the images are arranged so only a certain combination might fire the notice.

    I can drill it down to line 551, where we can remove this last part:

    && $this->images[3]->ratio >= 0.9; // images[3] apparently related to offset “3” notice

    and the notice vanishes …

    It’s only a notice, not an error, however I would appreciate if you could fix it. Thank you very much!

    Y

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined offset and trying to get property of non-object errors’ is closed to new replies.