Title: Help with null error / slow load
Last modified: March 20, 2024

---

# Help with null error / slow load

 *  Resolved [oestek](https://wordpress.org/support/users/oestek/)
 * (@oestek)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/help-with-null-error-slow-load/)
 * Hello – I am getting this error along with very slow load times on my NextGen
   galleries, can you help? Thanks!
 * “
 * ERROR Attempt to read property “ID” on null-
    1.  wp-includes/link-template.php:394
    2.  `get_page_link()`
        wp-content/plugins/nextgen-gallery/src/DisplayTypes/Albums/
        SharedController.php:895
    3.  `Imagely\N\D\A\SharedController->prepare_display_settings()`
        wp-content/plugins/
        nextgen-gallery/src/DisplayTypes/Albums/SharedController.php:229
    4.  `Imagely\N\D\A\SharedController->enqueue_frontend_resources()`
        wp-content/plugins/
        nextgen-gallery/src/Display/DisplayManager.php:150
    5.  `Imagely\N\D\DisplayManager::enqueue_frontend_resources_for_displayed_gallery()`
        
        wp-content/plugins/nextgen-gallery/src/Display/DisplayManager.php:112
    6.  `Imagely\N\D\DisplayManager::enqueue_frontend_resources_for_content()`
        wp-content/
        plugins/nextgen-gallery/src/Display/DisplayManager.php:53
    7.  `Imagely\N\D\DisplayManager->enqueue_frontend_resources()`
        wp-includes/class-
        wp-hook.php:324
    8.  `do_action('wp_enqueue_scripts')`
        wp-includes/script-loader.php:2262
    9.  `wp_enqueue_scripts()`
        wp-includes/class-wp-hook.php:324
    10. `do_action('wp_head')`
        wp-includes/general-template.php:3052
    11. `wp_head()`
        wp-content/themes/boldgrid-pavilion/templates/head.php:16
    12. `load_template('wp-content/themes/boldgrid-pavilion/templates/head.php')`
        wp-
        includes/template.php:725
    13. `locate_template()`
        wp-includes/general-template.php:206
    14. `get_template_part('templates/head')`
        wp-content/themes/boldgrid-pavilion/base.
        php:32
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhelp-with-null-error-slow-load%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [oestek](https://wordpress.org/support/users/oestek/)
 * (@oestek)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/help-with-null-error-slow-load/#post-17516051)
 * I also get this error on the public frontend:
 * **Warning**: Attempt to read property “ID” on null in **/home/v8tvsh5/public_html/
   v8speedshop.com/wp-includes/link-template.php** on line **394**
 *  Thread Starter [oestek](https://wordpress.org/support/users/oestek/)
 * (@oestek)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/help-with-null-error-slow-load/#post-17552576)
 * More errors showing up:
 * WarningAttempt to read property “ID” on null+
    1. wp-includes/link-template.php:394
 * 1Plugin: nextgen-galleryWarningAttempt to read property “ID” on null+
    1. wp-includes/link-template.php:409
 * 1Plugin: nextgen-galleryWarningTrying to access array offset on value of type
   null+
    1. wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php:66
 * 1Plugin: nextgen-galleryWarningTrying to access array offset on value of type
   null+
    1. wp-content/plugins/nextgen-gallery/templates/Thumbnails/default-view.php:67
 *  [lynnapp](https://wordpress.org/support/users/lynnapp/)
 * (@lynnapp)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/help-with-null-error-slow-load/#post-17823957)
 * I am having the same error messages in my phperror log
 * [12-Jun-2024 11:29:00 UTC] PHP Warning: Attempt to read property “ID” on null
   in /home/XXXXX/public_html/wp-includes/link-template.php on line 394
   [12-Jun-
   2024 11:29:00 UTC] PHP Warning: Attempt to read property “ID” on null in /home/
   XXXXX/public_html/wp-includes/link-template.php on line 409
 * Did you find a solution? I think this is from NGGGallery but not sure

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

The topic ‘Help with null error / slow load’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [lynnapp](https://wordpress.org/support/users/lynnapp/)
 * Last activity: [1 year, 12 months ago](https://wordpress.org/support/topic/help-with-null-error-slow-load/#post-17823957)
 * Status: resolved