Title: PHP-Warnings / Errors
Last modified: June 8, 2021

---

# PHP-Warnings / Errors

 *  [filz51](https://wordpress.org/support/users/filz51/)
 * (@filz51)
 * [5 years ago](https://wordpress.org/support/topic/php-warnings-errors-3/)
 * Hi
 * I found in the debug log 3 notices that are thrown from s2member when I’m on 
   PHP 7.4
 *     ```
       PHP Notice:  Trying to get property 'ID' of non-object in /public_html/wp-includes/link-template.php on line 440
       PHP Notice:  Trying to get property 'ID' of non-object in /public_html/wp-includes/link-template.php on line 451
       PHP Notice:  Trying to get property 'ID' of non-object in /public_html/wp-includes/link-template.php on line 404
   
       For experiments I tried with PHP 8, where I get errors:
   
       It's the same message for all 3 lines (440,451,404)
       ```
   
 * message: “Attempt to read property \”ID\” on null”
    “_get_page_link()” “get_page_link()”“
   c_ws_plugin__s2member_cache::cached_page_links()” “c_ws_plugin__s2member_constants::
   constants()” “do_action(‘init’)”`
 * Best, Filz

The topic ‘PHP-Warnings / Errors’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [filz51](https://wordpress.org/support/users/filz51/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-warnings-errors-3/)
 * Status: not resolved