WPIntell

Source evidence

PHP Error

ShoppingFeed · support · 2022-05-31T11:33:00+00:00

complaintsentiment
highseverity
0.91relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 28 rows with source links

10.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Tofandel unresolved
In shopping-feed/src/Product there is a mistake in the code which makes the editing of products impossible when Yoast SEO is enabled private function set_category() { $return = ''; $term = ShoppingFeedHelper::wc_category_taxonomy(); if ( class_exists( 'WPSEO_Primary_Term' ) ) { // Show Primary category by Yoast if it is enabled & set $wpseo_primary_term = new WPSEO_Primary_Term( $term, $this->id ); The problem is that this file is namespaced and the WPSEO_Primary_Term is not thus it’s looking for it in the local namespace (and not the global one) and obviously it doesn’t find it PHP Fatal error: Uncaught Error: Class 'ShoppingFeed\\ShoppingFeedWC\\Products\\WPSEO_Primary_Term' not found in ... It needs a slash in front: private function set_category() { $return = ''; $term = ShoppingFeedHelper::wc_category_taxonomy(); if ( class_exists( '\WPSEO_Primary_Term' ) ) { // Show Primary category by Yoast if it is enabled & set $wpseo_primary_term = new \WPSEO_Primary_Term( $term, $this->id ); Or a use \WPSEO_Primary_Term; at the top of the file

Comments

0 shown

No comments were stored for this source.