• Resolved Kaspars Foigts

    (@laacz)


    When trying to save a gallery, fatal PHP error is thrown.

    PHP Fatal error: Call to a member function get_entity() on null in /[..]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/datamapper/class.custompost_datamapper_driver.php on line 391, referer: [..]

    While this issue has been reported (searched internet for it), you can fix it yourself, until developers fix it themselves. Remember to update your fix when doing nextgen upgrade.

    So, all you needto do is mofify 391st line following way (adding one tiny if):

    if ($new_entity) foreach ($new_entity->get_entity() as $key => $value) $entity->$key = $value;

    https://www.ads-software.com/plugins/nextgen-gallery/

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

    (@photocrati)

    @kaspars Foigts – Thanks for the work-around. I’ll have our developers review this further as well.

    – Cais.

    Plugin Contributor photocrati

    (@photocrati)

    @kaspars Foigts – Sorry for the delay, it’s been a very busy few weeks. One of our developers was reviewing the ideas you are presenting and although its great you found a work-around we still need more details as to why it was needed in the first place … it’s just not clear with the information you provided.

    Would it be possible to send us a Bug Report (https://nextgen-gallery.com/report-bug/ … please reference this topic) so we can get a closer look specifically at your site.

    Part of the problem is we are not able to reproduce anything specifically related to the error and your work-around. We’ll likely need to get a look under the page so log in (and FTP) credentials would be great to have, too … just add them on your Bug Report.

    Thanks!

    – Cais.

    kaspars

    (@kaspars)

    Hi,

    If you look at the Kaspars Foigts member name here, you can see that it is laacz. So if u want to reach him, please refer to laacz and not the display name.

    Plugin Contributor photocrati

    (@photocrati)

    @kaspars – Our apologies for the WordPress forums’ downfalls …

    – Cais.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Nextgen gallery throws fatal PHP error ( fix)’ is closed to new replies.