Title: PHP errors
Last modified: August 31, 2016

---

# PHP errors

 *  Resolved [jacobarriola](https://wordpress.org/support/users/jacobarriola/)
 * (@jacobarriola)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/)
 * Hey there,
 * Thanks for putting this plugin out there. Got it working; however, I’m getting
   some PHP errors such as undefined variables, undefined indexes and undefined 
   offset.
 * Here are screenshots of the errors along with the line numbers:
 * [https://drive.google.com/file/d/0Bw96sdR4GKzieGxWSWFSRDNWUkE/view?usp=sharing](https://drive.google.com/file/d/0Bw96sdR4GKzieGxWSWFSRDNWUkE/view?usp=sharing)
 * [https://drive.google.com/file/d/0Bw96sdR4GKziaF94VkxpUFRjdmM/view?usp=sharing](https://drive.google.com/file/d/0Bw96sdR4GKziaF94VkxpUFRjdmM/view?usp=sharing)
 * [https://wordpress.org/plugins/disqus-popular-posts/](https://wordpress.org/plugins/disqus-popular-posts/)

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

 *  Plugin Author [godthor](https://wordpress.org/support/users/godthor/)
 * (@godthor)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099138)
 * You must have PHP warnings turned on I’m guessing? I’ll work on squaring those
   away in the next release. Thanks for pointing it out.
 *  Thread Starter [jacobarriola](https://wordpress.org/support/users/jacobarriola/)
 * (@jacobarriola)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099141)
 * Yes, I have my WP_DEBUG set to TRUE .
 * Thanks for the quick response!
 * I’m seeing another issues, but I’ll open another ticket. Thanks!
 *  Plugin Author [godthor](https://wordpress.org/support/users/godthor/)
 * (@godthor)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099157)
 * I believe I have the warnings cleared up, at least in my testing. Would you be
   able to beta test it for me? I could share the code for dpp.php if you’re able
   to update your local copy of it?
 *  Thread Starter [jacobarriola](https://wordpress.org/support/users/jacobarriola/)
 * (@jacobarriola)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099159)
 * Yup.
 * Put it up on GitHub Gist or something.
 *  Plugin Author [godthor](https://wordpress.org/support/users/godthor/)
 * (@godthor)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099166)
 * Great, thanks. This is the only one you’ll need: [https://github.com/GodThor/Disqus-Popular-Posts/blob/master/dpp.php](https://github.com/GodThor/Disqus-Popular-Posts/blob/master/dpp.php)
 *  Thread Starter [jacobarriola](https://wordpress.org/support/users/jacobarriola/)
 * (@jacobarriola)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099174)
 * Progress!
 * Still picking up 3 errors:
 * 1. Undefined offset: 0; Count: 5; Location:wp-content/plugins/disqus-popular-
   posts/dpp.php:332
 * 2. Trying to get property of non-object; Count: 5; Location: wp-content/plugins/
   disqus-popular-posts/dpp.php:332
 * 3. Undefined variable: img_div; Count: 5; Location: wp-content/plugins/disqus-
   popular-posts/dpp.php:357
 *  Plugin Author [godthor](https://wordpress.org/support/users/godthor/)
 * (@godthor)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099184)
 * It pays to not be a lazy programmer from the start of a project. Anyway, I updated
   the file again so that should fix (hopefully), the last few notices.
 *  Thread Starter [jacobarriola](https://wordpress.org/support/users/jacobarriola/)
 * (@jacobarriola)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099187)
 * Sweet! Errors are gone; however, there’s a hanging semi-colon. I opened PR for
   you to take a look.
 *  Plugin Author [godthor](https://wordpress.org/support/users/godthor/)
 * (@godthor)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099197)
 * Thanks for catching that, and for your help with this.
 * I’ve just pushed out the update.
 *  Thread Starter [jacobarriola](https://wordpress.org/support/users/jacobarriola/)
 * (@jacobarriola)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099209)
 * Awesome. Thanks again.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/disqus-popular-posts_d3ebf8.svg)
 * [Disqus Popular Posts](https://wordpress.org/plugins/disqus-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disqus-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disqus-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/disqus-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disqus-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disqus-popular-posts/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [jacobarriola](https://wordpress.org/support/users/jacobarriola/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-errors-70/#post-7099209)
 * Status: resolved