Title: Bug in code
Last modified: January 16, 2018

---

# Bug in code

 *  Resolved [hitenchothani3493](https://wordpress.org/support/users/hitenchothani3493/)
 * (@hitenchothani3493)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bug-in-code-4/)
 * Hi there,
 * It looks like code issue, we are using Easy Digital Downloads on our site.
 * > Uncaught exception ‘Error’ with message ‘Call to undefined function WC
   > ()’ in …./plugins/pixel-caffeine/includes/admin/templates/parts/notices/fancy/
   > product-catalog.php:78

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

 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bug-in-code-4/#post-9868481)
 * Hi,
 * oh damn, thank you so much for reporting this and very sorry for the silly bug.
   I’ll fix this in the next version of the plugin.
 * If you want to fix it immediately, I ask you to make a change in the plugin (
   the same fix there will be in the next version, so you won’t have any problem
   to upgrade).
 * Open the file `plugins/pixel-caffeine/includes/admin/templates/parts/notices/
   fancy/product-catalog.php` and search this line in the line 78:
    `<?php elseif(
   version_compare( WC()->version, AEPC_WOO_VERSION_REQUIREMENT, '<' ) ) : ?>` Replace
   that line with: `<?php elseif ( function_exists('WC') && version_compare( WC()-
   >version, AEPC_WOO_VERSION_REQUIREMENT, '<' ) ) : ?>`
 * Thank you so much and sorry for the bug.
 *  Thread Starter [hitenchothani3493](https://wordpress.org/support/users/hitenchothani3493/)
 * (@hitenchothani3493)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bug-in-code-4/#post-9868523)
 * Great, Thanks for quick reply.
 * For now I have commented out the code.
 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/bug-in-code-4/#post-9868553)
 * You’re welcome! 🙂

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

The topic ‘Bug in code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pixel-caffeine_e2ce0c.svg)
 * [Pixel Caffeine](https://wordpress.org/plugins/pixel-caffeine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixel-caffeine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixel-caffeine/)
 * [Active Topics](https://wordpress.org/support/plugin/pixel-caffeine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixel-caffeine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixel-caffeine/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/bug-in-code-4/#post-9868553)
 * Status: resolved