I have added a View to display the latest product, including a "Add to cart" form.

This is the error:

Strict warning: Declaration of uc_product_handler_field_addtocart::element_type() should be compatible with that of views_handler_field::element_type() in _registry_check_code() (line 2789 of C:\xampp\htdocs\mysite\includes\bootstrap.inc).

What am I doing wrong?

Thanks

Comments

Anonymous’s picture

Also, this happens with the "buy it now" button.

Can someone explain what the error even means? I'm clueless.

longwave’s picture

Category: support » bug

It means there is a coding error in that particular feature which needs to be fixed.

TR’s picture

Please try this in the latest -dev release of Ubercart and the latest beta release of Views.

longwave’s picture

Status: Active » Closed (cannot reproduce)

Cannot reproduce with latest -dev versions. uc_product_handler_field_addtocart::element_type() is not defined, so it should be inherited from views_handler_field - please try updating Ubercart and Views to their latest versions, and try again.