• Resolved camiloclc

    (@camiloclc)


    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://ww.wp.xz.cn/plugins/remove-taxonomy-base-slug/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alexandru Vornicescu

    (@alexvorn2)

    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…)

    Plugin Author Alexandru Vornicescu

    (@alexvorn2)

    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.

    Thread Starter camiloclc

    (@camiloclc)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warning messages on /wp-admin/options-permalink.php’ is closed to new replies.