Title: Plugin do not activate
Last modified: October 9, 2017

---

# Plugin do not activate

 *  Resolved [rottolina](https://wordpress.org/support/users/rottolina/)
 * (@rottolina)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-do-not-activate/)
 * when I try to activate:
    Plugin could not be activated because it triggered a
   fatal error. Parse error: syntax error, unexpected ‘[‘ in /var/www/www.avg.it/
   dev/public/wp-content/plugins/woo-variations-table/woo-variations-table.php on
   line 204
 * It seems it doesn’t like the “[0]”
    if I try to delete it (!) a new error rise
   at line 227 always brackets… [$i]
 * any help really appreciated!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-do-not-activate%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Alaa Rihan](https://wordpress.org/support/users/alaa-rihan/)
 * (@alaa-rihan)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-do-not-activate/#post-9578821)
 * Hi,
 * it seems your server use an old version of PHP
 * Try replace this in woo-variations-table/woo-variations-table.php line 204:
    `
   $productImageURL = wp_get_attachment_image_src(get_post_thumbnail_id( $product-
   >get_id() ), $thumb_name)[0];`
 * with this:
 *     ```
       $productImageURL = wp_get_attachment_image_src(get_post_thumbnail_id( $product->get_id() ),  $thumb_name);
       if (is_array($productImageURL) && count($productImageURL)){
         $productImageURL = $productImageURL[0];
       }
       ```
   
 * tell me if it worked or not please.
 *  Plugin Author [Alaa Rihan](https://wordpress.org/support/users/alaa-rihan/)
 * (@alaa-rihan)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-do-not-activate/#post-9586362)
 * Closing until I get answer from you.
 *  Thread Starter [rottolina](https://wordpress.org/support/users/rottolina/)
 * (@rottolina)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-do-not-activate/#post-9602873)
 * Thank you Alaa,
 * this fixed for line 204 but
 * Parse error: syntax error, unexpected ‘[‘ in /var/www/www.avg.it/dev/public/wp-
   content/plugins/woo-variations-table/woo-variations-table.php on line 231
 * line 231: $term = get_term_by(‘slug’, array_values($name)[$i], $key);
 * it really seems a problem on arrays!
 * let me know & thank you!

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

The topic ‘Plugin do not activate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-variations-table_eef0f2.svg)
 * [Woo Variations Table](https://wordpress.org/plugins/woo-variations-table/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-variations-table/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-variations-table/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-variations-table/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-variations-table/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-variations-table/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [rottolina](https://wordpress.org/support/users/rottolina/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-do-not-activate/#post-9602873)
 * Status: resolved