2

Whenever I run a feed via the Direct link eg. https://site.com/index.php?p=actions/feed-me/feeds/run-task&direct=1&feedId=[id]&passkey=[passkey] when I'm logged out of the CP.

I get the following error:

craft\commerce\services\ProductTypes::hasPermission(): Argument #1 ($user) must be of type craft\elements\User, null given, called in /public_html/vendor/craftcms/commerce/src/services/ProductTypes.php on line 178

When logged in, it works fine

Steps to reproduce

Log out of CP Run a feed via the Direct link

1 Answer 1

2

This is a bug in Commerce that has been fixed via https://github.com/craftcms/commerce/commit/b3ec7bb0d21f461df7a3297fbc74c295a5e1fc82 and will be included in the next Commerce 3 and 4 releases.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.