• Resolved LordLiverpool

    (@lordliverpool)


    Hello Ruslan Mikhno!

    I love this plugin, it saved me so much time.

    Please update it to keep it alive!

    Thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Ruslan Mikhno

    (@mikhno)

    Hi, thank you for the feedback – really appreciate it!

    I’m going to check it next week & update it to the latest WP version.

    Thread Starter LordLiverpool

    (@lordliverpool)

    Well done! Thank you ??

    Can I make a suggestion please?

    I had to change the author on 1300 images. 25 images at a time, due to pagination in the WordPress media gallery.

    Is there a way to update all images for a particular author in one go?

    Thanks very much.

    Plugin Author Ruslan Mikhno

    (@mikhno)

    I think that should be relatively easy to do, sure – I will try to include this feature into this next update.

    Thread Starter LordLiverpool

    (@lordliverpool)

    Excellent stuff.

    Thanks very much! ??

    Plugin Author Ruslan Mikhno

    (@mikhno)

    Hi! I’ve just pushed an update – it should be working fine with the latest WP version & I’ve also added a small new feature, as requested.

    Now it’s possible to filter media by author, and change all media of that author to another author.

    To do this, simply select “Change Author” in the mass action dropdown in the Media Library (as usual), but do not select any media – instead, just click “Apply” without selecting anything. It will then prompt to filter media by author, and will allow to quickly change author for all media uploaded by that author.

    Thread Starter LordLiverpool

    (@lordliverpool)

    Thank you for the update, it’s really appreciated.

    I noticed a small bug:

    • If I don’t select any media.
    • Then choose “Change Author”.
    • Then click “Filter by Author” button.

    Then I get a critical error warning.

    Email isnt setup on this website, so I can’t check the site admin inbox.

    See images attached.

    Change Author
    Filter by Author
    Critical Error

    I’m sorry if I am making work for you.

    Thanks.

    Plugin Author Ruslan Mikhno

    (@mikhno)

    That’s strange – I’ve tested it several times with different users before publishing the new version. Sorry for this.

    I’ll try to check if I can find possible reason for this, but some kind of error message would be really useful.

    Plugin Author Ruslan Mikhno

    (@mikhno)

    I’ve tried to reproduce it a few times, but couldn’t – can you please check if there are any errors in the web server logs, or enable WP_DEBUG in wp-config and check if it displays any errors on page?

    Maybe the user has a lot of media files assigned, and it gets out of memory while trying to iterate over all of them to display preview? In this case, I could try to add some kind of a check \ limit there.

    Thread Starter LordLiverpool

    (@lordliverpool)

    I repeated my steps and then I checked the error log.

    I see this:

    2023-08-30 13:49:39 Error 145.224.69.87

    500GET?/wp-admin/options.php?page=bulk-change-media-author-edit-page&for=2 HTTP/1.0

    and this:

    2023-08-30 13:49:39 Warning 145.224.69.87

    AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “media” in /var/www/vhosts/[REDACTED]/httpdocs/wp-content/plugins/bulk-change-media-author/bulk-change-media-author.php on line 63PHP message: PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/vhosts/[REDACTED]/httpdocs/wp-content/plugins/bulk-change-media-author/bulk-change-media-author.php:66\nStack trace:\n#0 /var/www/vhosts/[REDACTED]/httpdocs/wp-includes/class-wp-hook.php(310): bulk_change_media_author_edit_page_callback()\n#1 /var/www/vhosts/[REDACTED]/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#2 /var/www/vhosts/[REDACTED]/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#3 /var/www/vhosts/[REDACTED]/httpdocs/wp-admin/admin.php(259): do_action()\n#4 /var/www/vhosts/[REDACTED]/httpdocs/wp-admin/options.php(19): require_once(‘…’)\n#5 {main}\n thrown in /var/www/vhosts/[REDACTED]/httpdocs/wp-content/plugins/bulk-change-media-author/bulk-change-media-author.php on line 66′, referer: https://[REDACTED]/wp-admin/options.php?page=bulk-change-media-author-edit-page&media=%5B%5D

    obviously, 145.224.69.87 is me!

    I don’t want to play around with any of my client’s live sites. none of my test sites have email setup.

    Is the error log enough for you to go on?

    Seems its line 63 in author.php

    Thanks

    Plugin Author Ruslan Mikhno

    (@mikhno)

    Yes, I think that should be enough – thank you! I’ll try to push a quick fix for this later today.

    Thread Starter LordLiverpool

    (@lordliverpool)

    No worries Ruslan, in your own time, thank you ??

    Plugin Author Ruslan Mikhno

    (@mikhno)

    I’ve added a fix, now it should work with PHP 8 too – could you please update the plugin & confirm?

    Thread Starter LordLiverpool

    (@lordliverpool)

    You have fixed the bug, it no longer crashes, well done!

    I can only seem to change the author of 10 images rather than all the images for a particular author.

    If I repeat the process it chooses the same 10 images rather than filtering all of them for that author.

    Thanks.

    Plugin Author Ruslan Mikhno

    (@mikhno)

    You’re right, it seems to use the default pagination limit of 10 there (although it should still be able to change the author & then get the next 10 images on the next attempt).

    I’ve added another small update (1.3.2), now it should be returning all media assigned to the author, not just 10. Hopefully, now it will work as intended!

    Please let me know if there will be any issues or whether it’s all good now.

    Thread Starter LordLiverpool

    (@lordliverpool)

    That’s working perfectly now Ruslan.

    Thank you very much.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Hello There!’ is closed to new replies.