Title: PHP Notices (minor issue)
Last modified: August 24, 2016

---

# PHP Notices (minor issue)

 *  Resolved [Jeff Cohan](https://wordpress.org/support/users/jdcohan/)
 * (@jdcohan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/)
 * I’m using version 0.58.1 on a site for which I’m capturing errors and notices
   in a debug log.
 * Two notices keep showing up:
 * PHP Notice: Undefined index: no_post_titles in /home1/aflcioor/public_html/wp-
   content/plugins/list-category-posts/include/lcp-catlistdisplayer.php on line 
   234
 * PHP Notice: Trying to get property of non-object in /home1/aflcioor/public_html/
   wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php on line
   227
 * I realize this is a minor issue. But I thought you might be able to fix these
   with a simple solution. (Then, the task of finding the errors in MY code would
   be a little easier to find!)
 * Thanks.
    Jeff Cohan
 * [https://wordpress.org/plugins/list-category-posts/](https://wordpress.org/plugins/list-category-posts/)

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

 *  Plugin Author [Fernando Briano](https://wordpress.org/support/users/fernandobt/)
 * (@fernandobt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970310)
 * Thanks for reporting this. I fixed the warning on line 234, but I haven’t been
   able to reproduce the one on 227. Can you provide any more details on how you’re
   using the plugin please? (template, shortcode, etc).
 * Thanks!
 *  [mirojanosik](https://wordpress.org/support/users/mirojanosik/)
 * (@mirojanosik)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970345)
 * Hi, I have noticed a bug (error) in the code after upgrade to latest version 
   0.58.1. File ‘lcp-catlistdisplayer.php’, line 297, text “$this->stuffFunction”–
   missing $.
 * These are my shortcodes:
    [catlist name=uradna-tabula orderby=date order=desc
   numberposts=5 date=yes author=no content=yes author_tag=”span” author_class=”
   postauthor” catlink_tag=”span” catlink_class=”postlink” date_tag=”span” date_class
   =”postdate” excerpt_tag=”p” excerpt_class=”postexcerpt” title_tag=”span” title_class
   =”posttitle” instance=1]
 * [catlist name=uradna-tabula orderby=date order=desc numberposts=5 offset=5 date
   =yes date_tag=”span” date_class=”postdate” instance=2]
 * After adding the ‘$’ everything works as expected.
 *  [songoflife](https://wordpress.org/support/users/songoflife/)
 * (@songoflife)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970349)
 * I’ve experienced the same bug as [@mirojanosik](https://wordpress.org/support/users/mirojanosik/)
   and can confirm that the solution works.
 *  Thread Starter [Jeff Cohan](https://wordpress.org/support/users/jdcohan/)
 * (@jdcohan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970374)
 * [@fernandobt](https://wordpress.org/support/users/fernandobt/) –
 * We’re using the plugin widget and shortcode.
 * I’m thinking that a simple solution (keep in mind that I’m interested only in**
   avoiding the PHP Notices in my debug.log file**) might be to add a couple of “
   if” tests to the if statement on line 227.
 * For example, would it work to change this:
 * `if ( $post->ID == $single->ID ):`
 * to this:
 * `if ( is_object($post->ID) && is_object($single->ID) && $post->ID == $single-
   >ID ):`
 * ?
 *  Plugin Author [Fernando Briano](https://wordpress.org/support/users/fernandobt/)
 * (@fernandobt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970375)
 * I’ll have a release out later today that fixes this and other issues.
 * Thanks for your patience and contributions!
    Cheers,
 *  Thread Starter [Jeff Cohan](https://wordpress.org/support/users/jdcohan/)
 * (@jdcohan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970376)
 * Excellent! Thanks so much.
 *  Plugin Author [Fernando Briano](https://wordpress.org/support/users/fernandobt/)
 * (@fernandobt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970378)
 * These issues should be fixed in version 0.59. Please update and let me know if
   it works for you. Thanks!
 *  Thread Starter [Jeff Cohan](https://wordpress.org/support/users/jdcohan/)
 * (@jdcohan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970380)
 * The 0.59 update appears to have eliminated the PHP Notice for what used to be
   line 227 in 0.58.1 (now line 226).
 * However, **I’m still getting a PHP Notice for line 233** (was line 234 in 0.58.1):
 * `[09-Apr-2015 22:28:13 UTC] PHP Notice: Undefined index: no_post_titles in /home1/[
   account_name]/public_html/wp-content/plugins/list-category-posts/include/lcp-
   catlistdisplayer.php on line 233`
 * Would it help to change this on line 233:
 * `if ( $this->params['no_post_titles'] != 'yes' ):`
 * to this:
 * `if ( isset($this->params['no_post_titles']) && $this->params['no_post_titles']!
   = 'yes' ):`
 * ?
 *  Thread Starter [Jeff Cohan](https://wordpress.org/support/users/jdcohan/)
 * (@jdcohan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970384)
 * Now I’m also seeeing a whole slew of these errors again, in version 0.59:
 * `[09-Apr-2015 23:18:24 UTC] PHP Notice: Trying to get property of non-object 
   in /home1/[account_name]/public_html/wp-content/plugins/list-category-posts/include/
   lcp-catlistdisplayer.php on line 226`
 *  Plugin Author [Fernando Briano](https://wordpress.org/support/users/fernandobt/)
 * (@fernandobt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970386)
 * Just released version 0.59.1 with more fixes. Let me know how it goes. Thanks!
 *  [songoflife](https://wordpress.org/support/users/songoflife/)
 * (@songoflife)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970393)
 * I’ve updated to 0.59.1, and there are no problems so far. Thanks.

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

The topic ‘PHP Notices (minor issue)’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [songoflife](https://wordpress.org/support/users/songoflife/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/php-notices-minor-issue/#post-5970393)
 * Status: resolved