WPIntell

Source evidence

Taxonomy select field broken

Simple Taxonomy Ordering · support · 2022-06-14T15:11:00+00:00

complaintsentiment
highseverity
1.0relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

5 / 31 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
f.herewecom unresolved
Hello, thanks for your plugin ! Some warnings break the select field in settings making it unusable (url : options-general.php?page=yikes-simple-taxonomy-ordering) : Warning: Attempt to read property "name" on null in C:\wamp64\www\xxx\wp-content\plugins\simple-taxonomy-ordering\lib\options.php on line 147 Warning: Attempt to read property "labels" on null in C:\wamp64\www\xxx\wp-content\plugins\simple-taxonomy-ordering\lib\options.php on line 147 Thanks Hi @fherewecom , Could you provide a list of any custom post types and taxonomies on the site, and how you have generated them? You may have some sort of orphaned taxonomy that doesn’t apply to any post types, which is causing the “check which post type this taxonomy belongs to” code to fail. Jon After research, the error appears with two taxonomies created by polylang. I solved the problem, but, Polylang having a large number of users, i think it would be better to register these two taxonomies in the global exclusion list of the “get_taxonomies” function in lib/options.php. And at least ensure that the display is not broken if a taxonomy has no name or labels function fixSimpleTaxonomyOrderingSelector($excluded_taxonomies, $taxonomies) { array_push($excluded_taxonomies, 'term_language', 'term_translations'); return $excluded_taxonomies; } add_filter('yikes_simple_taxonomy_ordering_excluded_taxonomies', 'fixSimpleTaxonomyOrderingSelector', 10, 2); This reply was modified 3 years, 11 months ago by f.herewecom .

Comments

2 shown
jpowersdev 2022-06-17T14:55:00+00:00

Hi @fherewecom , Could you provide a list of any custom post types and taxonomies on the site, and how you have generated them? You may have some sort of orphaned taxonomy that doesn’t apply to any post types, which is causing the “check which post type this taxonomy belongs to” code to fail. Jon

f.herewecom 2022-06-17T16:19:00+00:00

After research, the error appears with two taxonomies created by polylang. I solved the problem, but, Polylang having a large number of users, i think it would be better to register these two taxonomies in the global exclusion list of the “get_taxonomies” function in lib/options.php. And at least ensure that the display is not broken if a taxonomy has no name or labels function fixSimpleTaxonomyOrderingSelector($excluded_taxonomies, $taxonomies) { array_push($excluded_taxonomies, 'term_language', 'term_translations'); return $excluded_taxonomies; } add_filter('yikes_simple_taxonomy_ordering_excluded_taxonomies', 'fixSimpleTaxonomyOrderingSelector', 10, 2); This reply was modified 3 years, 11 months ago by f.herewecom .