Open nwiegers01 opened 2 years ago
--- a/vendor/emico/tweakwise/Model/Client/Request/Recommendations/FeaturedRequest.php
+++ b/vendor/emico/tweakwise/Model/Client/Request/Recommendations/FeaturedRequest.php (date 1649314724381)
@@ -59,7 +59,7 @@
*/
public function getPathSuffix()
{
- if (!$this->templateId) {
+ if (!isset($this->templateId)) {
throw new ApiException('Featured products without template ID was requested.');
}
Can't seem to reproduce this issue. Which recommendations settings (for store and category) are you using?
Issue Brief
When looking into the logs of our client, we came to the conclusion that there were a lot of ERROR logs with the following message:
Featured products without template ID was requested.
This is being caused by the templateId which is not set. The issue seems to be in the FeaturedRequest class. This class has the getPathSuffix class which throws this Exception.
Environment
Steps to reproduce
Actual result
Expected result
Sensitive logs -- Sensitive logs can be encrypted with our PGP public key using a tool like https://sela.io/pgp/.