• Resolved ahpcservices

    (@ahpcservices)


    Hello,

    After upgrading to WordPress 6.0, the shortcode [wpdm_category] began having big issues on all the pages where I use it.

    It only shows one download on first row, at a random position (seemingly depending on shown category).

    Using PHP 8.0
    Wordpress 6.0
    Shortcode sample : [wpdm_category id="logos" title="1" desc="1" toolbar="1" paging="0" items_per_page="9999" template="link-template-bsthumnail" cols=4 colspad=2 colsphone=1]

    Fiddling with the shortcode attributes, or the displayed category never solved this.
    Only rolling back to WordPress 5.97 solved the display problems.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ahpcservices

    (@ahpcservices)

    I forgot: Download Manager Version 3.2.41

    Hi @ahpcservices

    Greetings and Welcome to the support forum.

    I have tested your provided shortcode with WordPress 6.0 in our test environment, and it appears that the shortcode is working fine.

    Please have a look at this reference screencast.

    There can be a conflict with another third-party plugin. Can you please enable/disable other plugins for checking?

    You may also switch the theme to another default WordPress theme, Twenty Twenty-One for checking.

    Feel free to reach back and report your findings.

    Best Regards

    Thread Starter ahpcservices

    (@ahpcservices)

    Hello @humayonk

    Thanks for taking the time to help me.

    After investigating a little more, it seems that the problem is less serious and a little more subtle than I thought.

    Actually, it’s not that some downloads are not shown, but that they’re inaccessible for download to administrators (my theme is hiding all downloads that are not available to the current user).

    There is still a bug, where one of them (not always the same one) is still accessible whereas all or none should be.

    It goes as follows:
    – Each of my downloads is explicitly made available to some user roles (via the “authorize access” box)
    – In WordPress 5, administrators seem to have implicit access to all downloads (they’re considered to have all roles I suppose)
    – In WordPress 6, it seems they don’t
    – But using the [wpdm_category] shortcode, admins always retain access to one of the displayed download posts (not always the first one)
    – If I explicitly add one of the authorized roles to an admin, then they have access to the downloads authorized to this role, plus a random one that is not

    So I have a temporary workaround by adding to all my admin accounts, all the roles that I’m using to setup download authorizations.

    Hi @ahpcservices

    Thank you for your reply.

    To understand the scenario better, it will be very cooperative if you record me reproducing your issue using a tool like this?

    It helps me to figure out the issue quickly and squash it immediately.

    Thank you

    Thread Starter ahpcservices

    (@ahpcservices)

    HI @humayonk

    While setting up a test environment to capture you a screencast, I discovered that the problem seems to come from the WPML plugin.

    So I’ll be investigating on that side…

    Thanks a lot.

    Hello @ahpcservices

    Glad to hear that you found the root cause.

    Feel free to reach back and report your findings.

    Have a good day.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WordPress 6.0 shortcode [wpdm_category] is broken’ is closed to new replies.