• Resolved JimGoodrich

    (@jimgoodrich)


    When I try to rename the taxonomy slug on the site, this error is returned:

    “An error of type E_ERROR was caused in line 85 of the file /wp-content/plugins/simple-taxonomy-refreshed/includes/class-simpletaxonomyrefreshed-admin-rename.php. Error message: Uncaught Error: Cannot use object of type WP_Taxonomy as array in /home/withavoi/public_html/ipn/wp-content/plugins/simple-taxonomy-refreshed/includes/class-simpletaxonomyrefreshed-admin-rename.php:85”

    And the code that’s returning the error is:

    if ( (bool) $taxonomy_obj['rewrite'] ) {
         if ( '' !== $new_rewrite && $new_rewrite !== $new_taxonomy['st_slug'] ) {
    	 // update options.
    	 $new_taxonomy['st_slug'] = $new_rewrite;
    	 // need a flush of the rewrite rules at next init.
    	 set_transient( 'simple_taxonomy_refreshed_rewrite', true, 0 );
         }
     }

    I don’t know what I’m looking at, I just know how to find it. Any help would be greatly appreciated.

    The page I need help with: [log in to see the link]

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

    (@nwjames)

    @jimgoodrich,
    Sorry for giving you this problem, and thank you for raising it with me.

    If you can edit the file, it is an easy fix to do, but in any case I will create a fix to the plugin later today as others could suffer the same problem and rename cannot be used.

    Please change line 85
    if ( (bool) $taxonomy_obj['rewrite'] ) {
    to read
    if ( (bool) $taxonomy_obj->rewrite ) {

    Regards,
    Neil James

    Plugin Author nwjames

    (@nwjames)

    @jimgoodrich,
    Version 1.2.1 is now available that fixes this problem.

    Regards,
    Neil James

    Thread Starter JimGoodrich

    (@jimgoodrich)

    Wow, thank you for getting back to me so quickly! I wasn’t near my computer when your reply first came in, so it’s great that you have the fix in already!

    Thank you again,

    Jim

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘E_ERROR trying to rename taxonomy slug’ is closed to new replies.