Files from new categories not being displayed when using shortcode
-
Hello David, thank you for this amazing plugin, I’ve been using it for years on different websites.
Today I discovered that the files from new categories that I create are not being displayed when using the shortcode.This is what I’m using:
[mla_gallery mla_markup=default attachment_category=’gepejta46′
post_mime_type=all orderby=”date ASC” size=icon link=file mla_target=”_blank”]The old categories are working fine and that same shortcode keeps working for those categories, the problem is with the new ones that I’m creating.
The debug tab only shows this error, that I don’t think is related with the issue:
[06-Apr-2021 16:56:15 America/Chicago] PHP Warning: Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
Has anything like this happened before, do you know what can be causing it?
Thanks in advance.
-
Thanks for your kind words and for your report. I believe your issue might be related to the one raised in this recent topic:
Same shortcode, different output…
As I wrote there, I haven’t seen this on my system and would like any further details you can provide, such as how you created the new categories and assigned them to the items that aren’t being displayed. Any additional information will be helpful; thanks!
I agree that the Imagick error message is unlikely to be related to this issue.
Hi David, thanks for your reply. I read the other topic and as suggested I added
mla_debug=logto the shortcode and this is what I got in the error log:[07-Apr-2021 18:09:52 UTC] 626 <strong>mla_debug REQUEST</strong> = array ( 'post' => '283', 'action' => 'edit', 'lang' => 'es', 'message' => '1', ) [07-Apr-2021 18:09:52 UTC] 638 <strong>mla_debug attributes</strong> = array ( 'mla_markup' => 'descripcion-fecha-descargar', 'attachment_category' => 'gepejta46', 'post_mime_type' => 'all', 'orderby' => 'date ASC', 'size' => 'icon', 'link' => 'file', 'mla_target' => '_blank', 'mla_debug' => 'log', 'mla_page_parameter' => 'mla_paginate_current', ) [07-Apr-2021 18:09:52 UTC] 639 <strong>mla_debug arguments</strong> = array ( 'size' => 'icon', 'itemtag' => 'figure', 'icontag' => 'div', 'captiontag' => 'figcaption', 'columns' => '1', 'link' => 'file', 'id' => NULL, 'style' => NULL, 'type' => 'default', 'thumb_width' => 75, 'thumb_height' => 75, 'thumbnail_size' => 'thumbnail', 'slide_size' => 'large', 'slideshow_height' => 500, 'fx' => 'fade', 'timeout' => 4000, 'speed' => 1000, 'pause' => NULL, 'mla_output' => 'gallery', 'mla_style' => 'default', 'mla_markup' => 'descripcion-fecha-descargar', 'mla_float' => 'none', 'mla_itemwidth' => 'calculate', 'mla_margin' => '1.5%', 'mla_target' => '_blank', 'mla_debug' => 'log', 'mla_allow_rml' => false, 'mla_rml_folder' => NULL, 'mla_rml_include_children' => false, 'mla_named_transfer' => false, 'mla_viewer' => false, 'mla_single_thread' => false, 'mla_viewer_extensions' => 'ai,eps,pdf,ps', 'mla_viewer_limit' => '0', 'mla_viewer_width' => '0', 'mla_viewer_height' => '0', 'mla_viewer_best_fit' => NULL, 'mla_viewer_page' => '1', 'mla_viewer_resolution' => '0', 'mla_viewer_quality' => '0', 'mla_viewer_type' => '', 'mla_alt_shortcode' => NULL, 'mla_alt_ids_name' => 'ids', 'mla_alt_ids_template' => NULL, 'mla_end_size' => 1, 'mla_mid_size' => 2, 'mla_prev_text' => '« Previous', 'mla_next_text' => 'Next »', 'mla_paginate_type' => 'plain', 'mla_paginate_rows' => NULL, 'mla_link_attributes' => '', 'mla_link_class' => '', 'mla_link_href' => '', 'mla_link_text' => '', 'mla_nolink_text' => '', 'mla_rollover_text' => '', 'mla_image_class' => '', 'mla_image_alt' => '', 'mla_image_attributes' => '', 'mla_caption' => '', 'mla_alt_ids_value' => NULL, ) [07-Apr-2021 18:09:52 UTC] 5476 <strong>mla_debug is_archive()</strong> = false [07-Apr-2021 18:09:52 UTC] 5477 <strong>mla_debug is_search()</strong> = false [07-Apr-2021 18:09:52 UTC] 5652 <strong>mla_debug $wp_filter[posts_where]</strong> = Priority: 10 00000000746dd27f00000000056d8dcfposts_where_filter => WPML_Query_Filter->posts_where_filter() Priority: 2147483647 MLAShortcode_Support::mla_shortcode_query_posts_where_filter => MLAShortcode_Support::mla_shortcode_query_posts_where_filter() [07-Apr-2021 18:09:52 UTC] 5653 <strong>mla_debug $wp_filter[posts_orderby]</strong> = Priority: 10 00000000746d914400000000056d8dcfpostsOrderbyFilter => SabaiApps\Directories\Component\WordPressContent\Query->postsOrderbyFilter() Priority: 2147483647 MLAShortcode_Support::mla_shortcode_query_posts_orderby_filter => MLAShortcode_Support::mla_shortcode_query_posts_orderby_filter() [07-Apr-2021 18:09:52 UTC] 5840 <strong>mla_debug WHERE filter</strong> = ' AND ( wp9d750cc7d9_term_relationships.term_taxonomy_id IN (401) ) AND wp9d750cc7d9_posts.post_type = \'mladisabletaxjoin\' AND ((wp9d750cc7d9_posts.post_status = \'inherit\'))' [07-Apr-2021 18:09:52 UTC] 5877 <strong>mla_debug modified WHERE filter</strong> = ' AND ( wp9d750cc7d9_term_relationships.term_taxonomy_id IN (401) ) AND wp9d750cc7d9_posts.post_type = \'attachment\' AND ((wp9d750cc7d9_posts.post_status = \'inherit\'))' [07-Apr-2021 18:09:52 UTC] 5774 <strong>mla_debug JOIN filter</strong> = ' LEFT JOIN wp9d750cc7d9_term_relationships ON (wp9d750cc7d9_posts.ID = wp9d750cc7d9_term_relationships.object_id)' [07-Apr-2021 18:09:52 UTC] 5900 <strong>mla_debug ORDER BY filter, incoming</strong> = 'wp9d750cc7d9_posts.post_date DESC'<br>Replacement ORDER BY clause = 'wp9d750cc7d9_posts.post_date ASC' [07-Apr-2021 18:09:52 UTC] 5941 <strong>mla_debug posts_clauses filter</strong> = array ( 'where' => ' AND ( wp9d750cc7d9_term_relationships.term_taxonomy_id IN (401) ) AND wp9d750cc7d9_posts.post_type = \'attachment\' AND ((wp9d750cc7d9_posts.post_status = \'inherit\'))', 'groupby' => 'wp9d750cc7d9_posts.ID', 'join' => ' LEFT JOIN wp9d750cc7d9_term_relationships ON (wp9d750cc7d9_posts.ID = wp9d750cc7d9_term_relationships.object_id)', 'orderby' => 'wp9d750cc7d9_posts.post_date ASC', 'distinct' => '', 'fields' => 'wp9d750cc7d9_posts.*', 'limits' => '', ) [07-Apr-2021 18:09:52 UTC] 5959 <strong>mla_debug posts_clauses_request filter</strong> = array ( 'where' => ' AND ( wp9d750cc7d9_term_relationships.term_taxonomy_id IN (401) ) AND wp9d750cc7d9_posts.post_type = \'attachment\' AND ((wp9d750cc7d9_posts.post_status = \'inherit\'))', 'groupby' => 'wp9d750cc7d9_posts.ID', 'join' => ' LEFT JOIN wp9d750cc7d9_term_relationships ON (wp9d750cc7d9_posts.ID = wp9d750cc7d9_term_relationships.object_id)', 'orderby' => 'wp9d750cc7d9_posts.post_date ASC', 'distinct' => '', 'fields' => 'wp9d750cc7d9_posts.*', 'limits' => '', ) [07-Apr-2021 18:09:52 UTC] 5747 <strong>mla_debug query</strong> = array ( 'attachment_category' => 'gepejta46', 'post_type' => 'mladisabletaxjoin', 'post_status' => 'inherit', 'nopaging' => true, 'ignore_sticky_posts' => true, 'no_found_rows' => false, ) [07-Apr-2021 18:09:52 UTC] 5748 <strong>mla_debug request</strong> = 'SELECT wp9d750cc7d9_posts.* FROM wp9d750cc7d9_posts LEFT JOIN wp9d750cc7d9_term_relationships ON (wp9d750cc7d9_posts.ID = wp9d750cc7d9_term_relationships.object_id) WHERE 1=1 AND ( wp9d750cc7d9_term_relationships.term_taxonomy_id IN (401) ) AND wp9d750cc7d9_posts.post_type = \'attachment\' AND ((wp9d750cc7d9_posts.post_status = \'inherit\')) GROUP BY wp9d750cc7d9_posts.ID ORDER BY wp9d750cc7d9_posts.post_date ASC ' [07-Apr-2021 18:09:52 UTC] 5749 <strong>mla_debug query_vars</strong> = array ( 'attachment_category' => 'gepejta46', 'post_type' => 'mladisabletaxjoin', 'post_status' => 'inherit', 'nopaging' => true, 'ignore_sticky_posts' => true, 'no_found_rows' => false, 'error' => '', 'm' => '', 'p' => 0, 'post_parent' => '', 'subpost' => '', 'subpost_id' => '', 'attachment' => '', 'attachment_id' => 0, 'name' => '', 'pagename' => '', 'page_id' => 0, 'second' => '', 'minute' => '', 'hour' => '', 'day' => 0, 'monthnum' => 0, 'year' => 0, 'w' => 0, 'category_name' => '', 'tag' => '', 'cat' => '', 'tag_id' => '', 'author' => '', 'author_name' => '', 'feed' => '', 'tb' => '', 'paged' => 0, 'meta_key' => '', 'meta_value' => '', 'preview' => '', 's' => '', 'sentence' => '', 'title' => '', 'fields' => '', 'menu_order' => '', 'embed' => '', 'category__in' => array ( ), 'category__not_in' => array ( ), 'category__and' => array ( ), 'post__in' => array ( ), 'post__not_in' => array ( ), 'post_name__in' => array ( ), 'tag__in' => array ( ), 'tag__not_in' => array ( ), 'tag__and' => array ( ), 'tag_slug__in' => array ( ), 'tag_slug__and' => array ( ), 'post_parent__in' => array ( ), 'post_parent__not_in' => array ( ), 'author__in' => array ( ), 'author__not_in' => array ( ), 'suppress_filters' => false, 'cache_results' => true, 'update_post_term_cache' => true, 'lazy_load_term_meta' => true, 'update_post_meta_cache' => true, 'posts_per_page' => 10, 'comments_per_page' => '50', 'taxonomy' => 'attachment_category', 'term' => 'gepejta46', 'order' => 'DESC', ) [07-Apr-2021 18:09:52 UTC] 5750 <strong>mla_debug post_count</strong> = 1Thanks for following up on the other topic (which has been resolved) and for posting the results of your testing; I will have a more detailed look at the log.
I noticed
'lang' => 'es',in the log. Are you using WPML or Polylang to make the site multi-lingual? That would be a likely cause of possible taxonomy term issues.If you can give me the WordPress, MLA and WPML/Polylang version numbers I can try more specifically to reproduce your issue on my system. The settings on your Settings/Media Library Assistant Language tab would also be helpful. Thanks for any additional details you can provide.
Hi David, yes I’m using WPML, these are the versions:
WPML Multilingual CMS 4.4.10
WPML String Translation 3.1.8
WPML Translation Management 2.10.6
WPML Media 2.6.4Wordpress 5.7
Media Library Assistant 2.95
And here is a screenshot of the settings that i’m using on the language tab of Media Library Assistant.
Let me know if you need any more information, and thank you so much for your help.
Thanks for your update with the answers to my questions. I have updated my WPML test site to match your versions and run some quick tests. The log data you included above matches the results I get and looks fine. It selected one item for display – is that what you expected?
In your original post you wrote “the files from new categories that I create are not being displayed when using the shortcode“. To test that I created a new Att. Category ( gepejta46 ), translated it from English to French and Spanish using the WPML Taxonomy Translation table. I assigned the new category to one of my Media Library items in English and the term was also synchronized to the French and Spanish items. I created a new post with the shortcode you provided and the gallery display for the new term was correct. I translated the post to French and Spanish, updated the term slug in the shortcode and all three languages displayed correctly.
In short, I have not been able to reproduce your issue. I will need to know the steps you followed and the results you see in more detail to investigate further.
The best way to collaborate on resolving this issue will be by email; much easier than lengthening this thread. I can post a summary here when there is progress to report.
You can contact me at my web site to continue the dialog. Thanks for your patience and your help.
Hi David, sorry for the late response, thank you so much for investigating on the issue. I will send you an email asap.
Thank you for working with me by email to further investigate this issue. My analysis of the log files you provided have not yielded any details or examples of the issue you reported.
It has been two months since our last exchange. I am marking this topic resolved, but please update it or respond to my last email if you are still having problems with this issue. Thanks for your patience and your help.
The topic ‘Files from new categories not being displayed when using shortcode’ is closed to new replies.