• Resolved bmherold

    (@bmherold)


    Using NextGen gallery 2.0.76, calling $image->get_href_thumb_link() in a loop over results from nggdb::get_gallery($id) results in a fatal error. This was working fine before a recent plugin update. Looking for a solution, thanks!

    <?php $image_gallery = nggdb::get_gallery(get_settings('hwtn_nextgen_carousel_id')); ?>
    			<div class="prev"></div>
    			<div id="image-carousel">
    				<ul>
    				<?php foreach($image_gallery as $image): ?>
    					<li><?php $image->get_href_thumb_link(); ?></li>
    				<?php endforeach; ?>

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @bmherold – What is the fatal error you are specifically getting?

    – Cais.

    Thread Starter bmherold

    (@bmherold)

    That would be helpful, wouldn’t it!

    <b>Fatal error</b>:  Call to undefined method stdClass::find() in <b>/nfs/c07/h01/mnt/112667/domains/hwtn.org/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php</b> on line <b>2076</b><br>

    Plugin Contributor photocrati

    (@photocrati)

    @bmherold – Thanks! I’m not seeing specifically why this would be happening, would you be willing to submit a Bug Report (http://nextgen-galley.com/report-bug/) on this so we can get a closer look at what’s going on?

    Thanks!

    – Cais.

    Thread Starter bmherold

    (@bmherold)

    Thanks Cais, I just submitted a bug report at that link. Happy to help provide any other information!

    -Brian

    Plugin Contributor photocrati

    (@photocrati)

    @bmherold – Thanks. We can carry on the conversation in the Bug Report for the time being, too.

    – Cais.

    Thread Starter bmherold

    (@bmherold)

    If you don’t see the bug report, let me know. I didn’t get an email or anything to confirm that the report made it over; but I’m assuming it did. Thanks again!

    Plugin Contributor photocrati

    (@photocrati)

    @bmherold – I believe I already responded to the Bug Report much earlier in the day …

    – Cais.

    Thread Starter bmherold

    (@bmherold)

    I didn’t receive an auto-response from my original submission – but I just tested the bug report form and received one just now. The issue title was the same as the subject for this topic when I submitted it originally on friday (the 27th). If I need to resubmit, please let me know so I can get on that! Feel free to contact me at bmherold AT gmail as well.

    Plugin Contributor photocrati

    (@photocrati)

    @bmherold – I believe our Bug Report conversation has been started … thanks.

    – Cais.

    Plugin Contributor photocrati

    (@photocrati)

    @bmherold – Just a quick follow-up (in general), you might consider looking at our current public beta release which re-introduces the NextGEN Legacy methods you are referencing in the OP.

    See this page: http://nextgen-gallery.com/nextgen-gallery-latest-beta/

    It might sort out some of the problems you are seeing.

    Thanks!

    – Cais.

    Thread Starter bmherold

    (@bmherold)

    That still gives me the following error 🙁

    <li><br>
    <b>Fatal error</b>:  Call to undefined method stdClass::find() in <b>/nfs/c07/h01/mnt/112667/domains/hwtn.org/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php</b> on line <b>2114</b><br>
    </li>
    Benjamin

    (@benjaminowens)

    Sorry bmherold, this was my mistake. Unfortunately I’ve checked in a fix for this right after we’ve released 2.0.77 so this may not appear officially for a short while.

    If you download and this class.image_wrapper.php over your nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.image_wrapper.php it should fix your problem.

    Thanks for your report, I hope that helps.

    Thread Starter bmherold

    (@bmherold)

    You can close this, version 2.0.77.3 fixed the issue. Thanks guys!

    Plugin Contributor photocrati

    (@photocrati)

    @bmherold – Thanks for the update!

    – Cais.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘$image->get_href_thumb_link() fatal error’ is closed to new replies.