• Seems the plugin isn’t properly handling -scaled suffixed images, introduced by WP recently.

    I’m renaming an image named like this: name1.jpg to this: name.jpg

    but in the db there’s an image already named like: name-scaled.jpg because name.jpg is/was larger than a given threshold and WP renames it automatically.

    That produces the following error:

    PHP Fatal error: Uncaught Error: An iterator cannot be used with foreach by reference in /wp-content/plugins/phoenix-media-rename/class-media-rename.php:471

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author crossi72

    (@crossi72)

    Hi @alx359,
    I’ll check the issue and let you know as soon as I’ll have a fix.

    Thank you for reporting the issue.
    C.

    Plugin Author crossi72

    (@crossi72)

    Hi @alx359,
    I can’t replicate your issue, but I made some changes to the code to better support the new big image management introduced by WordPress, can I send you a new version of Phoenix Media Rename to test on your server?

    C.

    Thread Starter alx359

    (@alx359)

    That’s great. Yes, of course. Please sent to alx359 @ gmail. Thanks!

    Plugin Author crossi72

    (@crossi72)

    Hi @alx359,
    I just released version 2.2.0 that change the management of -scaled suffixed images, let me know if if find other issues.

    I’m not satisfied of this fix, if you have some suggestion to improve it, I’ll be glad to try.

    C.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No proper handling of -scaled suffixed images’ is closed to new replies.