WPIntell

Source evidence

Bug with output buffering

WPC Brands for WooCommerce · support · 2022-12-01T08:45:00+00:00

complaintsentiment
mediumseverity
0.75relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

10 / 67 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

57 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Maya unresolved
Hello, Within your function brand_shortcode you have a bug. Within a conditional statement e.g. if ( is_array( $brands ) && ! empty( $brands ) ) { you start the output buffering. At the end of the function, you use the ob_get_clean() to return the buffer content. Now, the problem is, if the conditional is not fulfilled, it will not start the buffering, but still use the ob_get_clean() which will break any other code using its own output buffering. You can replicate the issue while using WP Hide plugin. When viewing a WooCommerce Product, none of the URLs replacements occurs, as you hijack the other plugin buffering callback. Thanks Hi @tdgu Thanks for the detailed error report. I’ve fixed it and released an updated version 1.1.1

Comments

1 shown
WPClever 2022-12-20T00:56:00+00:00

Hi @tdgu Thanks for the detailed error report. I’ve fixed it and released an updated version 1.1.1