• Resolved marianssen

    (@marianssen)


    Hi,

    after installing your plugin, I receive a fatal error on the frontend – too few arguments for the PW_Gift_Cards_Purchasing::woocommerce_cart_item_permalink() functions on line 142 in pw-gift-cards-purchasing.php. 1 arguments passed in class-wp-hook on line 286 and exactly 3 are expected.

    Do you know, what could be the issue?

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pimwick

    (@pimwick)

    There is a WooCommerce hook called woocommerce_cart_item_permalink that accepts exactly 3 parameters.

    Our plugin correctly hooks into this and requires 3 parameters, however if you are getting a fatal error that means another plugin, your theme, or a custom function is calling this hook without the required number of parameters.

    The full error message should provide you with more information about what is calling this hook with too few parameters.

    Plugin Author pimwick

    (@pimwick)

    Marking this thread as resolved, let us know if you need anything else.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error – too few arguments’ is closed to new replies.