Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Jan Koester

    (@dasmaeh)

    This looks like a rather strong effect of a problem I noticed yesterday. To solve it please edit php/class/rpr_taxonomies and insert some code around line 62 just after $this->taxonomies = get_option('rpr_taxonomies', array());
    and before // register taxonomies:

    // Restore taxonomies if active but deleted:
    			if( !isset($this->taxonomies['rpr_ingredient']) ){
    				$this->taxonomies = $this->add_taxonomy_to_array($this->taxonomies, 'rpr_ingredient', __( 'Ingredients', $this->pluginName ), __( 'Ingredient', $this->pluginName ), true);
    			}
    			if( $rpr_option['taxonomies']['rpr_category'] == '1' && !isset($this->taxonomies['rpr_category']) ){
    				$this->taxonomies = $this->add_taxonomy_to_array($this->taxonomies, 'rpr_category', __( 'RPR Categories', $this->pluginName ), __( 'RPR Category', $this->pluginName ), true);
    			}
    			if( $rpr_option['taxonomies']['rpr_tag'] == '1' && !isset($this->taxonomies['rpr_tag']) ){
    				$this->taxonomies = $this->add_taxonomy_to_array($this->taxonomies, 'rpr_tag', __( 'RPR Tags', $this->pluginName ), __( 'RPR Tag', $this->pluginName ), false);
    			}
    			if( $rpr_option['taxonomies']['rpr_course'] == '1' && !isset($this->taxonomies['rpr_course']) ){
    				$this->taxonomies = $this->add_taxonomy_to_array($this->taxonomies, 'rpr_course', __( 'Courses', $this->pluginName ), __( 'Course', $this->pluginName ), true);
    			}
    			if( $rpr_option['taxonomies']['rpr_cuisine'] == '1' && !isset($this->taxonomies['rpr_cuisine']) ){
    				$this->taxonomies = $this->add_taxonomy_to_array($this->taxonomies, 'rpr_cuisine', __( 'Cuisines', $this->pluginName ), __( 'Cuisine', $this->pluginName ), true);
    			}
    			if( $rpr_option['taxonomies']['rpr_season'] == '1' && !isset($this->taxonomies['rpr_season']) ){
    				$this->taxonomies = $this->add_taxonomy_to_array($this->taxonomies, 'rpr_season', __( 'Seasons', $this->pluginName ), __( 'Season', $this->pluginName ));
    			}
    			if( $rpr_option['taxonomies']['rpr_difficulty'] == '1' && !isset($this->taxonomies['rpr_difficulty']) ){
    				$this->taxonomies = $this->add_taxonomy_to_array($this->taxonomies, 'rpr_difficulty', __( 'Difficulties', $this->pluginName ), __( 'Difficulty', $this->pluginName ));
    				}

    This should do the trick.

    What I did not test yet is what happens to custom taxonomies. Will look into that later today.

    Thread Starter Sasha_K_

    (@sasha_k_)

    This bug is present in the last two versions.
    I’ll wait for correction in the next version.
    Thanks for the quick reply.

    Plugin Author Jan Koester

    (@dasmaeh)

    Then it’s something completely different than I thought. Please tell me more.
    – Is it a built in or a custom taxonomy?
    – does it appear on the manage taxonomies page?

    Probably something went wrong in the database update in release 0.7.7 that needs to be individually fixed in your database. I’ll tell you then what to do.

    Thread Starter Sasha_K_

    (@sasha_k_)

    <a href="https://prntscr.com/6oxbl7">
    This taxonomy created by the plug-in

    Thread Starter Sasha_K_

    (@sasha_k_)

    I can give you any access if you are interested see what the problem is.
    Ftp or MSQL

    Plugin Author Jan Koester

    (@dasmaeh)

    I can’t tell you why this is happening. Quite obviously you install of RecipePress reloaded forgets about it’s taxonomies upon update. However this should not happen!
    A quick fix could be:

    1. Go into your MySQL-Database
    2. Go to the table wp_option
    3. Find the entry rpr_taxonomies and save it somewhere
    4. Perform the update
    5. Replace the entry rpr_taxonomies with the older version. Taxonomies now should be there again.

    I will think about a ‘recover taxonomies’ feature for the next release, but this might take some time.

    Thread Starter Sasha_K_

    (@sasha_k_)

    Nothing helps.
    Remove and reinsert the plug. Still no taxonomies.
    I can not even add any taxonomy.
    Maybe the problem here?

    https://prntscr.com/6qpou4

    Thread Starter Sasha_K_

    (@sasha_k_)

    Content in different tables.
    At the bottom of the table do not have my taxonomies.

    Plugin Author Jan Koester

    (@dasmaeh)

    I’m pretty sure the problem is exactly there. Although I can’t tell you how it could happen.
    It’s a bit difficult at this point. Usually you have taxonomies defined in your source code and can tell at any point which taxonomies are there. In RecipePress reloaded taxonomies are created dynamically and stored in the database. This far more complex.

    If I understood you right, the field above shows the value before the update and the field below after the update. You can try to copy the content from before the update. This should bring your taxonomies back.

    Regards
    Jan

    Thread Starter Sasha_K_

    (@sasha_k_)

    Where there is a record in the database taxonomies for new installs the plugin?
    I think I found the problem.
    I will write about the result.

    Plugin Author Jan Koester

    (@dasmaeh)

    Please try release 0.7.9. This should help you to recover your lost taxonomies.

    Thread Starter Sasha_K_

    (@sasha_k_)

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Where are my taxonomy?’ is closed to new replies.