Title: Error in package.module.attach_to_post.php
Last modified: March 14, 2017

---

# Error in package.module.attach_to_post.php

 *  Resolved [kifiko](https://wordpress.org/support/users/kifiko/)
 * (@kifiko)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-in-package-module-attach_to_post-php/)
 * One of the pages with this problem: [https://www.ccrt.net/pretty-princess/](https://www.ccrt.net/pretty-princess/)
   although many other pages with galleries are also getting this error:
    /home/
   ccrt/www/www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/
   attach_to_post/package.module.attach_to_post.php on line 689
 * Line 689 is the one referring to “$model” in this IF statement:
 * if ($current) {
    $settings = $this->array_merge_assoc($model->settings, $this-
   >object->_displayed_gallery->display_settings, TRUE); $model->settings = $settings;}
 * The gallery exists and nothing with the site has changed in weeks.
 * Can you shed some light on what the problem is?

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-in-package-module-attach_to_post-php/#post-8917802)
 * [@kifiko](https://wordpress.org/support/users/kifiko/) – I’m not seeing any issues
   on the URL you provided. The gallery appears to be displaying as expected although
   there are two Lightbox libraries being triggered all the same (which is not likely
   related).
 * Are you still seeing the issue? If yes, can you provide any additional details
   about it.
 * Thanks!
 * – Cais.
 *  Thread Starter [kifiko](https://wordpress.org/support/users/kifiko/)
 * (@kifiko)
 * [9 years ago](https://wordpress.org/support/topic/error-in-package-module-attach_to_post-php/#post-8921643)
 * Thanks so much for looking into this Cais. After a bunch of pressure from the
   client, I deleted/reloaded some of the galleries.
 * You can still see the problem on this page [https://www.ccrt.net/meet-milo/](https://www.ccrt.net/meet-milo/):“
   Invalid Displayed Gallery”.
 * Best,
    Kathie
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years ago](https://wordpress.org/support/topic/error-in-package-module-attach_to_post-php/#post-8945898)
 * [@kifiko](https://wordpress.org/support/users/kifiko/) – That page looks fine
   as well…
 * – Cais.

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

The topic ‘Error in package.module.attach_to_post.php’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [gallery not displaying](https://wordpress.org/support/topic-tag/gallery-not-displaying/)

 * 3 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/error-in-package-module-attach_to_post-php/#post-8945898)
 * Status: resolved