WPIntell

Source evidence

Warning messages on /wp-admin/options-permalink.php

Remove Taxonomy Base Slug · support · 2014-05-06T01:01:00+00:00

mixedsentiment
mediumseverity
0.78relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

6 / 35 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
camiloclc resolved
I’m using version 2.1 of your plugin. All errors come from the function ‘remove_taxonomy_base_slug__rewrite_taxonomy_filter’: Notice: Undefined variable: taxonomy in D:\Camilo\Sandbox\projects\Cambara E.D\Torcedores.com\www\content\plugins\remove-taxonomy-base-slug\remove-taxonomy-base-slug.php on line 158 Notice: Undefined variable: taxonomy in D:\Camilo\Sandbox\projects\Cambara E.D\Torcedores.com\www\content\plugins\remove-taxonomy-base-slug\remove-taxonomy-base-slug.php on line 160 Notice: Trying to get property of non-object in D:\Camilo\Sandbox\projects\Cambara E.D\Torcedores.com\www\content\plugins\remove-taxonomy-base-slug\remove-taxonomy-base-slug.php on line 162 Notice: Trying to get property of non-object in D:\Camilo\Sandbox\projects\Cambara E.D\Torcedores.com\www\content\plugins\remove-taxonomy-base-slug\remove-taxonomy-base-slug.php on line 170 Notice: Trying to get property of non-object in D:\Camilo\Sandbox\projects\Cambara E.D\Torcedores.com\www\content\plugins\remove-taxonomy-base-slug\remove-taxonomy-base-slug.php on line 172 Notice: Trying to get property of non-object in D:\Camilo\Sandbox\projects\Cambara E.D\Torcedores.com\www\content\plugins\remove-taxonomy-base-slug\remove-taxonomy-base-slug.php on line 170 Notice: Trying to get property of non-object in D:\Camilo\Sandbox\projects\Cambara E.D\Torcedores.com\www\content\plugins\remove-taxonomy-base-slug\remove-taxonomy-base-slug.php on line 172 I have no custom taxonomies, so the plugin lets me choose to remove the taxonomy base for ‘post_tag’ and ‘category’, for which I chose only ‘category’. The variable ‘$taxonomy’ never gets set in line 153 and triggers all of the above warnings. https://wordpress.org/plugins/remove-taxonomy-base-slug/ Have you switched to another theme before this occur? (It is possible to have some taxonomies selected on one theme that have some, and then switch to another theme that does not have these taxonomies/or terms… so that’s why the notices appear…) I have another newer version but I need to test it before the release. If you disable the debug info no text will appear. Use define(‘WP_DEBUG’, false); in your config file. Sorry, I think I got it all wrong. This probably happened because I had WordPress SEO’s feature of removing the category base turned on. WP_DEBUG was enabled because I’m on a local machine. But, either way, I recommend setting $taxonomy to a default invalid value, like false, and testing for it before progressing through the function. Again, I’m sorry for wasting your time.

Comments

3 shown
Alexandru Vornicescu 2014-05-06T15:46:00+00:00

Have you switched to another theme before this occur? (It is possible to have some taxonomies selected on one theme that have some, and then switch to another theme that does not have these taxonomies/or terms… so that’s why the notices appear…)

Alexandru Vornicescu 2014-05-06T15:48:00+00:00

I have another newer version but I need to test it before the release. If you disable the debug info no text will appear. Use define(‘WP_DEBUG’, false); in your config file.

camiloclc 2014-05-06T19:33:00+00:00

Sorry, I think I got it all wrong. This probably happened because I had WordPress SEO’s feature of removing the category base turned on. WP_DEBUG was enabled because I’m on a local machine. But, either way, I recommend setting $taxonomy to a default invalid value, like false, and testing for it before progressing through the function. Again, I’m sorry for wasting your time.