Support » Plugin: Pixel Caffeine » Bug in code

  • Resolved hitenchothani3493

    (@hitenchothani3493)


    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ì

    (@antoscarface)

    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.

    hitenchothani3493

    (@hitenchothani3493)

    Great, Thanks for quick reply.

    For now I have commented out the code.

    Plugin Author Antonino Scarfì

    (@antoscarface)

    You’re welcome! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug in code’ is closed to new replies.