Attempt to read property “ID” on null
-
I use WPPA Version 9.0.12.001 and noticed recently that a picture search (using shortcode [wppa type=”search” root=”#165″ landing=”search”][/wppa]) inserts 2 PHP warnings in my my php_errorlog:
A)
PHP Warning: Attempt to read property “ID” on null in […]/public_html/wp-includes/link-template.php on line 394Using the “Query Monitor” plugin, I see that these are coming from the Component: “Plugin: wp-photo-album-plus”
and Query Monitor further shows under “Location”:
wp-includes/link-template.php:394 get_page_link() wp-content/plugins/wp-photo-album-plus/wppa-boxes-html.php:470 wppa_get_search_html() wp-content/plugins/wp-photo-album-plus/wppa-boxes-html.php:438 wppa_search_box() wp-content/plugins/wp-photo-album-plus/wppa-functions.php:542 wppa_albums() wp-content/plugins/wp-photo-album-plus/wppa-filter.php:717 wppa_shortcodes() wp-includes/shortcodes.php:434 do_shortcode_tag() wp-includes/shortcodes.php:434 preg_replace_callback() wp-includes/shortcodes.php:273 do_shortcode() wp-includes/class-wp-hook.php:324 apply_filters('the_content') wp-includes/post-template.php:256 the_content() wp-content/themes/twentyseventeen/template-parts/page/content-page.php:22 load_template('wp-content/themes/twentyseventeen/template-parts/page/content-page.php') wp-includes/template.php:745 locate_template() wp-includes/general-template.php:206 get_template_part('template-parts/page/content','page') wp-content/themes/twentyseventeen/page.php:28And -though these may be connected- there’s a second PHP warning whose component is also WPPA:
B)
Attempt to read property “ID” on null in […]/public_html/wp-includes/link-template.php on line 409with Location details:
wp-includes/link-template.php:409 get_page_link() wp-content/plugins/wp-photo-album-plus/wppa-boxes-html.php:470 wppa_get_search_html() wp-content/plugins/wp-photo-album-plus/wppa-boxes-html.php:438 wppa_search_box() wp-content/plugins/wp-photo-album-plus/wppa-functions.php:542 wppa_albums() wp-content/plugins/wp-photo-album-plus/wppa-filter.php:717 wppa_shortcodes() wp-includes/shortcodes.php:434 do_shortcode_tag() wp-includes/shortcodes.php:434 preg_replace_callback() wp-includes/shortcodes.php:273 do_shortcode() wp-includes/class-wp-hook.php:324 apply_filters('the_content') wp-includes/post-template.php:256 the_content() wp-content/themes/twentyseventeen/template-parts/page/content-page.php:22 load_template('wp-content/themes/twentyseventeen/template-parts/page/content-page.php') wp-includes/template.php:745 locate_template() wp-includes/general-template.php:206 get_template_part('template-parts/page/content','page') wp-content/themes/twentyseventeen/page.php:28Is this something that concerns our beloved developper Opajaap, or more something I can debug myself? (or might even need assistance from my server’s support team?)
Happy to provide more details if necessary.
Thanks,
sergeThe page I need help with: [log in to see the link]
The topic ‘Attempt to read property “ID” on null’ is closed to new replies.