Title: Error activating plugin
Last modified: August 21, 2016

---

# Error activating plugin

 *  Resolved [valdirljr](https://wordpress.org/support/users/valdirljr/)
 * (@valdirljr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-activating-plugin-13/)
 * Appears a error on line 933 when activating plugin.
 * I have replaced and it and worked for me =)
 * OLD: $new_image_url = wp_get_attachment_image_src($post_id, $size)[0];
    NEW: 
   $new_image_url = wp_get_attachment_image_src($post_id, $size[0]);
 * It’s ok ?
 * THX
 * [https://wordpress.org/plugins/wp-image-utils/](https://wordpress.org/plugins/wp-image-utils/)

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

 *  Plugin Author [benohead](https://wordpress.org/support/users/benohead/)
 * (@benohead)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-activating-plugin-13/#post-5072882)
 * Actually, this will probably silent the error but the [0] outside of the call
   to wp_get_attachment_image_src is right. If it fails it just means that not all
   images have all configured thumbnail sizes.
 * So your fix will probably prevent the plugin from failing but will also break
   some of the functionality.
 * I’ve uploaded version 0.2.5 which better handles such scenarios.
 *  Thread Starter [valdirljr](https://wordpress.org/support/users/valdirljr/)
 * (@valdirljr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-activating-plugin-13/#post-5072891)
 * You’re really fast!
 * I’m testing this update. What’s change in 0.2.5 ?
    It’s not in changelog. I want
   to help translating the plugin for Portuguese Brazilian =)
 * THX
 *  Plugin Author [benohead](https://wordpress.org/support/users/benohead/)
 * (@benohead)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-activating-plugin-13/#post-5072899)
 * I’ve updated two places in the code where I assumed that a WordPress function
   would return a valid result and did not handle the case where it returned false.
 * Not sure why the change log is not available. The readme file does contain it
   but it’s not displayed… Hope it will be visible on the next update of the plugin.
 * Thanks alot for the offer to translate the plugin. I’ll prepare a .pot file so
   that I can send it to you for translation (hope I’ll finally be able to finish
   the French, German and Spanish translations I wanted to deliver with the next
   version). Please send me an email at henri (dot) benoit (at) gmail (dot) com 
   so that I can answer with the pot file.
 *  Thread Starter [valdirljr](https://wordpress.org/support/users/valdirljr/)
 * (@valdirljr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-activating-plugin-13/#post-5072952)
 * Henri,
 * I send a e-mail to you (Y)
 * THX

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

The topic ‘Error activating plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-image-utils.svg)
 * [WP Image Utils](https://wordpress.org/plugins/wp-image-utils/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-image-utils/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-image-utils/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-image-utils/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-image-utils/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-image-utils/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [valdirljr](https://wordpress.org/support/users/valdirljr/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/error-activating-plugin-13/#post-5072952)
 * Status: resolved