Title: PHP Warnings
Last modified: May 20, 2025

---

# PHP Warnings

 *  Resolved [mhgx](https://wordpress.org/support/users/mhgx/)
 * (@mhgx)
 * [1 year ago](https://wordpress.org/support/topic/php-warnings-202/)
 * In file `php/class-minute-control.php` method `get_inline_container()` causes`
   PHP Warning: Attempt to read property "ID" on null` when `$post` is null.
 * I’d suggest changing:
   `$data_url = 'sharethis_excerpt' === $type && '' !== $post?
   esc_attr( 'data-url=' . get_permalink( $post->ID ) ) : '';`to:`$data_url = 'sharethis_excerpt'
   === $type && !empty($post) ? esc_attr( 'data-url=' . get_permalink( $post->ID)):'';`
 * Above change eliminates warnings.

Viewing 1 replies (of 1 total)

 *  Plugin Author [ShareThis](https://wordpress.org/support/users/sharethis/)
 * (@sharethis)
 * [1 year ago](https://wordpress.org/support/topic/php-warnings-202/#post-18488020)
 * Hey [@mhgx](https://wordpress.org/support/users/mhgx/), thank you for flagging
   this and for taking the time to propose a fix! We really appreciate your contribution.
   I’m happy to confirm that this warning has been addressed in our latest release.
   Your input helps us keep improving—thanks again for your support!

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/sharethis-share-buttons/assets/icon-256x256.gif?rev=2782088)
 * [ShareThis Share Buttons](https://wordpress.org/plugins/sharethis-share-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sharethis-share-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sharethis-share-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/sharethis-share-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sharethis-share-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sharethis-share-buttons/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ShareThis](https://wordpress.org/support/users/sharethis/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/php-warnings-202/#post-18488020)
 * Status: resolved