Title: PHP Notice error in presets.php
Last modified: August 20, 2016

---

# PHP Notice error in presets.php

 *  [dingguya](https://wordpress.org/support/users/dingguya/)
 * (@dingguya)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/)
 * I’m getting the following notice error on every page of my WP install, and in
   every settings field on the plugin settings page in the WP admin:
 * `Notice: Trying to get property of non-object in [...]/wp-content/plugins/infinite-
   scroll/includes/presets.php on line 547`
 * It’s referring to this line in the presets.php file:
 * `return wp_get_theme( $theme->theme )->exists();`
 * I have this on both WP versions 3.4.2 and 3.5, using a custom theme.
    If I enable
   the default TwentyTwelve WP theme I do not get these notices.
 * What am I doing wrong?
 * [http://wordpress.org/extend/plugins/infinite-scroll/](http://wordpress.org/extend/plugins/infinite-scroll/)

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

 *  [Glenn Nelson](https://wordpress.org/support/users/glenn-nelson/)
 * (@glenn-nelson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/#post-3262738)
 * [@dingguya](https://wordpress.org/support/users/dingguya/) I believe it has to
   do with your themes not having names that the plugin is picking up.
 *  Thread Starter [dingguya](https://wordpress.org/support/users/dingguya/)
 * (@dingguya)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/#post-3262739)
 * Anything I can do about it?
 *  [amirkhan81](https://wordpress.org/support/users/amirkhan81/)
 * (@amirkhan81)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/#post-3262772)
 * Same error here, I’m using a subtheme of the BuddyPress default theme, any ideas
   on how I can fix this?
 *  [Pressnoob](https://wordpress.org/support/users/pressnoob/)
 * (@pressnoob)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/#post-3262774)
 * Hey dingguya did you ever figure it out? I’m having the same error.
 *  Thread Starter [dingguya](https://wordpress.org/support/users/dingguya/)
 * (@dingguya)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/#post-3262775)
 * Not really. At some point the errors just disappeared, but haven’t been able 
   to figure out exactly why. Please do let me know when you find a solution!
 *  [Pressnoob](https://wordpress.org/support/users/pressnoob/)
 * (@pressnoob)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/#post-3262776)
 * dingguya, while I didn’t find a solution to this problem I found an alternative:
 * [http://wp.tutsplus.com/tutorials/theme-development/how-to-create-infinite-scroll-pagination/](http://wp.tutsplus.com/tutorials/theme-development/how-to-create-infinite-scroll-pagination/)
 * Works like a charm for me thankfully. You can also incorporate Masonry if you
   wish.
 *  [rajeshaah](https://wordpress.org/support/users/rajeshaah/)
 * (@rajeshaah)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/#post-3262781)
 * if you still having trouble follow steps
 * go to that line (content/plugins/infinite-scroll/includes/presets.php on line
   547)
 * Replace that line with below
 * `return wp_get_theme( $theme )->exists();`

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

The topic ‘PHP Notice error in presets.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [rajeshaah](https://wordpress.org/support/users/rajeshaah/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/php-notice-error-in-presetsphp/#post-3262781)
 * Status: not resolved