A new issue popped up…
Adding images with the “ARI Stream Quiz” plugin doesn’t work. The media library doesn’t show up. Need to de-activate “WPCM” to make it work.
]]>After upgrading from 2.2.1 to 2.3.0, the plugin stopped working. Reverting to 2.2.1 fixes the things.
When creating a new post (/wp-admin/post-new.php) it displays error Uncaught SyntaxError: Unexpected token '&'
in line:
<script type="text/javascript">/* <![CDATA[ */var mcm_taxonomies = {"category_media":{"term_list_title":"Show all MCM categories","mcm_terms_list":[{"term_id":"no_category","term_name":"No MCM categories"},{"term_id":"63438","term_name":"Category 1 (44665)"},{"term_id":"80128","term_name":"Category 2 – test (4792)"},{"term_id":"80131","term_name":"Category 3 – test (8666)"},{"term_id":"83440","term_name":"Category 4 (102)"}\n]}};/* ]]> */</script>
Then when click “Add Media” button it displays error:
wp-mcm-media-views-t….js?ver=2.3.0000:53 Uncaught ReferenceError: mcm_taxonomies is not defined
at n.createToolbar (wp-mcm-media-views-t…?ver=2.3.0000:53:11)
at n.initialize (media-views.min.js?v…bcd660cfc22:2:38238)
at h.View (backbone.min.js?ver=1.5.0:2:14872)
at n.constructor (wp-backbone.min.js?v…9bcd660cfc22:2:2602)
at n.constructor (media-views.min.js?v…cd660cfc22:2:106544)
at n [as constructor] (backbone.min.js?ver=1.5.0:2:23777)
at new n (backbone.min.js?ver=1.5.0:2:23777)
at n.browseContent (media-views.min.js?v…bcd660cfc22:2:74703)
at p (backbone.min.js?ver=1.5.0:2:3700)
at f (backbone.min.js?ver=1.5.0:2:3497)
in line $.each(mcm_taxonomies, function(taxonomy, values)
Too bad it doesn’t seem to work anymore on latest WordPress. Media library stays empty with plugin enabled. De-activating it solves the issue.
Any plans to release an update? Otherwise I need to look for something else.
edit: PHP 8.2.15
]]>Can I sort categories by name?
When specifying eye catches in the media library and posts, categories are inconveniently ordered by name.
]]>You can load it when rendering short code only:
]]>After updating the Plugin from 2.1.3 to 2.1.4 I can’t access the Media Page – and WP sends me an Email that my website has a technical problem.
]]>WordPress-Version 5.8.8
Aktuelles Theme: Enfold-TIL (Version 0.0.1)
Aktuelles Plugin: WP Media Category Management (Version 2.1.4)
PHP-Version 7.4.33
Fehler-Details ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 456 der Datei /usr/www/users/talentam/live/wp-content/plugins/wp-media-category-management/include/media/class-WP_MCM_Media_List.php verursacht.Fehlermeldung: Uncaught Error: Call to undefined function str_starts_with() in /usr/www/users/talentam/live/wp-content/plugins/wp-media-category-management/include/media/class-WP_MCM_Media_List.php:456 Stack trace: #0 /usr/www/users/talentam/live/wp-includes/class-wp-hook.php(303): WP_MCM_Media_List->mcm_manage_taxonomies_for_attachment_columns(Array, ‘attachment’) #1 /usr/www/users/talentam/live/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #2 /usr/www/users/talentam/live/wp-admin/includes/class-wp-media-list-table.php(331): apply_filters(‘manage_taxonomi…’, Array, ‘attachment’) #3 /usr/www/users/talentam/live/wp-includes/class-wp-hook.php(303): WP_Media_List_Table->get_columns(Array) #4 /usr/www/users/talentam/live/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #5 /usr/www/users/talentam/live/wp-admin/includes/screen.php(37): apply_filters(‘manage_upload_c…’, Array) #6 /usr/www/users/talentam/live/wp-admin/includes/class-wp-screen.php(995): get_column_headers(Object(WP_Screen)) #
When uploading a file in the Media Library the following error appears:
“An error occurred in the upload. Please try again later.”
This error disappears when we disable this plugin. Please could you investigate?
]]>This is the new bug introduced in version 2.
Steps to reproduce:
1) Use Classic Editor
2) Add New Post / Add Media / Media Library / click any image
3) In the right sidebar “Attachment details”, width of fields Alt Text, Caption and others are too wide.
The solution is to edit wp-content/plugins/wp-media-category-management/css/wp-mcm-admin-styles.css and change:
min-width: 267px;
to:
/* min-width: 267px; */
To reflect this change also edit wp-content/plugins/wp-media-category-management/include/admin/class-WP_MCM_Admin.php and change:
wp_enqueue_style( 'wp-mcm-admin', WP_MCM_PLUGIN_URL . '/css/wp-mcm-admin-styles' . $min . '.css', false );
to:
wp_enqueue_style( 'wp-mcm-admin', WP_MCM_PLUGIN_URL . '/css/wp-mcm-admin-styles' . $min . '.css', false, '1.0' );
Also noticed there is no versioning for this style?
]]>After a custom post type which was working fine suddenly stopped, I had a dig around and found MCM was throwing an error.
PHP Fatal error: Uncaught Error: Call to a member function mcm_query_vars_add_values() on null in /home/username/public_html/wp-content/plugins/wp-media-category-management/include/taxonomy/class-WP_MCM_Taxonomy.php:215
Stack trace:
#0 /home/username/public_html/wp-includes/class-wp-hook.php(308): WP_MCM_Taxonomy->mcm_pre_get_posts_front(Object(WP_Query))
#1 /home/username/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#2 /home/username/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#3 /home/username/public_html/wp-includes/class-wp-query.php(1870): do_action_ref_array('pre_get_posts', Array)
#4 /home/username/public_html/wp-includes/class-wp-query.php(3787): WP_Query->get_posts()
#5 /home/username/public_html/wp-includes/class-wp.php(663): WP_Query->query(Array)
#6 /home/username/public_html/wp-includes/class-wp.php(783): WP->query_posts()
#7 /home/username/public_html/wp-includes/functions.php(1334): WP->main('')
#8 /home/username/public_html/wp-blog-header.php(16): wp()
#9 /home/username/public_html/index.php(17): require('/home/username...')
#10 {main}
thrown in /home/username/public_html/wp-content/plugins/wp-media-category-management/include/taxonomy/class-WP_MCM_Taxonomy.php on line 215
Deactivating your plugin made my custom post type work again.
If there is something I can do to fix this, or if it’s something I have caused do let me know! Otherwise, I’ll have to keep MCM deactivated until yous have a chance to update your plugin.
Thanks!
PS: While I don’t know if this error existed prior to the last MCM update, it’s only since then that I’ve had conflicts with my custom post type.
]]>Hello. The file wp-mcm-styles.css
is loaded on every page request, even when we don’t use the shortcode or use WP MCM in our posts in another way.
public function add_frontend_styles()
{
$this->debugMP( 'msg', __FUNCTION__ . ' started.' );
wp_enqueue_style(
'wp-mcm-styles',
WP_MCM_PLUGIN_URL . '/css/wp-mcm-styles.css',
array(),
WP_MCM_VERSION_NUM . '.1'
);
}
]]>
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.
]]>
After updating to the latest version 2.0.1, I keep getting the following error.
AH01071: Got error ‘PHP message: WP-MCM::/home/xxxxxxxxxx/xxxxxxxxxx.com/public_html/wp-content/plugins/wp-media-category-management/wp- media-category-management.php::67:: : NOT defined WP_FS__DEV_MODE
How can I resolve this?
]]>Following the shortcode tips isnt working. Is it capable of showing PDF files or just images?
[wp_mcm taxonomy=”category_media” category=”buzz-2021″]
]]>In include/class-wp-mcm-plugin.php function mcm_register_media_taxonomy() there is flush_rewrite_rules();
which clears rewrite rules on every website page load, leading to significant degradation of WordPress performance.
When I want to add images on a page from my media library, a popup shows. However, the only filter available is the date (see the link). How do I filter it by categories I create?
]]>Continuing https://www.ads-software.com/support/topic/mcm-filter-drop-down-box-missing/
Still experiencing the same in version 1.9.8 and the fix is the same as described at the URL above.
]]>I just put two hours into categorizing all my images so that I could readily load them into the gallery plugin I’m using. The first four or so I was able to bring up by searching on the category name. Then it decided to stop working altogether. Same problem while in the Media library, searching on the name of category does not work. Until you get this working I think it would be a kindness to take it off the market. That’s $70 in my income just gone down the drain.
]]>Hey, as the author seems AWOL, I’m wondering if any other users know how to customise the gallery on the front end?
i.e. size thumbnail chosen, number of columns?
Or if it’s possible to use these categories in a normal wordpress gallery shortcode?
Thanks in advance!
]]>I have Polylang plugin installed for multilanguage site, with “media” translation – it assigns language to media and creates “caption, title, description… etc.” for each language. These translations are bound together to one media file.
When I edit MCM categories from “Edit more details” page, everything works fine, but when the same categories are changed from grid view (via ajax I suppose), it breaks the bond between language versions of one media file.
]]>Hi, I thought the categories are just in the backend for better overview.
But now my website testtool claims a 404-error with this page:
https://www.businessfotoshamburg.de/kategorie/grafik-und-div/
Why are the categories online?
How can I disable this “feature”?
Thanks!
After tagging the media, I want to get the media list by applying the conditions for each tag with restapi. Does the plugin support restapi??
]]>We have 90 something categories and so our media in list view is awkward to use so I switched to grid view.
When I clicked on one file to change the category in the menu on the right side it would say ‘Saved’ in the lower right. Unfortunately, though it didn’t save.
I had to switch back to list view and use the toggle links to change it and it saved then.
]]>Hello. I am wery pleased with the plugin, I have used another plugin until now which has not the bulk function for adding categories to your media, you could not even put on the category from the list page, so this is a huge step forward.
I use a lot of pictures in my blog and also I would like to use a lot of categories which means that the category list gets very long. My categories is in a hierarchy, so for me it would be nice if it was possible to fold out/in parent hierarchy. And really nice if it would remember the folding at least in for some time.
]]>When I upgraded to 1.9.6 I had a bunch of upload buttons break in the WP admin area. Console gives this error wp.media.view.settings.post is not defined
.
Downgrading to 1.9.4 fixes the issue.
]]>Hello!
The plugin works fine to filter images within the media gallery, but there is no filter in the ‘Add media’ dialog when writing an article or adding a featured image to a post. This makes the plugin pretty much useless, because I need the filter THERE, not in the media gallery.
Actron
]]>Hi!
It seems like this plugin flushes the rewrite rules on every request – line 589 in function mcm_register_media_taxonomy in class-wp-mcm-plugin.php is called on init. I’m not too sure it needs to be called on every request, maybe it can be moved to a save_post hook?
Do you have a git repo for this plugin somewhere? I could send you a pull request if necessary.
I love being able to have categories, we have so many images on our sites, but the categories DO NOT work when using with featured images WP 5.3.2, Avada 6.1.
]]>You asked me:
Could you please do me a BIG favor and help me out solving some issues regarding filtering when using the media library?
My answer:
Everythin is working fine!
Refine filter by every key stroke!
I’m using MCM Categories too. Nice tool to keep everything in order ;?)
thanks, Walter
]]>First of all let me thank you for using this plugin.
It started out as a plugin to do something simple like managing the categories of a series of images. Easy with the flexibility of PHP and its WP hooks.
However, as several users already pointed out, things have changed since then.
Gutenberg has been introduced and JavaScript has become more and more the language to use for fancy functionality.
However, I think my knowledge of JS is not sufficient to maintain this plugin to keep its value. Especially where I cannot find any hooks into the Gutenberg code for handling media. Either it is missing or I don’t see it.
So, that’s where you come in. Please help me to make the next step. I found out I learned the most of analysing someone else’s working code. So please point me to some examples where I can find inspiration to advance again.
The feature lacking the most seems to be the filtering on the Gutenberg block when adding an image to a post or page. The filter already shows the option to filter by date. I would like to add my MCM category filtering to the same line. Not by replacing the complete filter code but by adding my own part to it.
Please leave some comments below.
Thanks!
Hi – I see this plugin hasn’t been tested with 5.32 though it has been tested with 5.1.4 released in December 2019.
And, the support topics haven’t been answered in awhile.
Wondering if the plugin is supported or abandoned?
Thanks
]]>