• Resolved motochika

    (@motochika)


    Sorry to continue.
    When I list in the media library, only the last uploaded photo shows the following message in the "MCM Categories" field. A critical error has occurred at this site. Please check your site administrator's email inbox for instructions on how to respond. The email from WordPress included the following Error Details Error type E_ERROR in /home/xxxxxx/xxxxxx.com/public_html/wp-content/plugins/wp-media-category-management/include/media/class-WP_MCM_ Occurred at line 636 of file Media_List.php. Error message: Uncaught Error: Call to undefined function wp_get_list_item_separator() in /home/xxxxxx/xxxxxx.com/public_html/wp-content/ plugins/wp-media-category-management/include/media/class-WP_MCM_Media_List.php:636
    Stack trace:. 0 /home/xxxxxx/xxxxxx.com/public_html/wp-content/plugins/wp-media-category-management/include/media/class-WP_MCM_Media_List. php(573): WP_MCM_Media_List->mcm_create_column_taxonomy('category_media', 5294) 1 /home/xxxxxx/xxxxxx.com/public_html/wp-includes/class-wp-hook.php(307): WP_MCM_Media_List->mcm_manage_media_custom_column(' mcm_taxonomy_ca…' , 5294) 2 /home/xxxxxx/xxxxxx.com/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) 3 /home/xxxxxx/xxxxxx.com/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) 4 /home/xxxxxx/xxxxxx.com/public_html/wp-admin/includes/class-wp-media-list-table.php(655): do_action('manage_media_cu…' , 'mcm_taxonomy_ca…' , 5294) 5 /home/xxxxxx/xxxxxx.com/public_html/wp-admin/includes/class-w I have not uploaded any photos in ver 2.0.1, so I do not know if this occurred from ver 2.0.1 or ver 2.0.2.
    This phenomenon has not occurred in versions prior to ver 2.0.1. Thank you in advance.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DeBAAT

    (@debaat)

    Hai Motochika,

    No problem.

    Dare I ask what version of WordPress are you running?

    In the functions.php file of theme twentytwentyone, I found the following code which suggests that the function that is causing the error is only there from WordPress 6.0 onwards:

    
    if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
    	/**
    	 * Retrieves the list item separator based on the locale.
    	 *
    	 * Added for backward compatibility to support pre-6.0.0 WordPress versions.
    	 *
    	 * @since 6.0.0
    	 */
    	function wp_get_list_item_separator() {
    		/* translators: Used between list items, there is a space after the comma. */
    		return __( ', ', 'twentytwentyone' );
    	}
    endif;
    

    I will include the same code in my plugin, but as you might know, it has to wait for the next update ??

    Best regards,

    Jan

    Thread Starter motochika

    (@motochika)

    Thank you for your response.

    I have not yet raised the version of WordPress to 6.
    The theme is not twentytwentyone either.

    Why did this phenomenon occur when neither the version nor the theme has been changed?

    Plugin Author DeBAAT

    (@debaat)

    Hai.

    Just released V2.1.0 which should solve your issue.

    Don’t know why it didn’t occur before.

    Could you close this thread when the issue is solved?

    Thanks.

    Thread Starter motochika

    (@motochika)

    Thank you very much, resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Errors’ is closed to new replies.