Title: Parse error: syntax error, unexpected &#8216;[&#8216; &#8211; problem and solution.
Last modified: May 22, 2019

---

# Parse error: syntax error, unexpected ‘[‘ – problem and solution.

 *  [cool9](https://wordpress.org/support/users/cool9/)
 * (@cool9)
 * [7 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-problem-and-solution/)
 * On some versions of PHP, you may encounter a similar message when activating 
   a plugin that refers to a problem in line 126 of the eazy_flickity_slider_shortcode.
   php file.
 * The solution is simple. Just replacing line 126
 * $matches[$key] = [‘sliderid’ => $thisname, ‘width’ => $thiswidth, ‘height’ =>
   $thisheight];
 * with
 * $matches[$key] = array(‘sliderid’ => $thisname, ‘width’ => $thiswidth, ‘height’
   => $thisheight);
 * Have a nice day!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rob Scott](https://wordpress.org/support/users/r0bsc0tt/)
 * (@r0bsc0tt)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-problem-and-solution/#post-11793500)
 * Thanks for the fix and adding it to the support area!
    I will try to get the 
   plugin updated and added to the repo.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error, unexpected ‘[‘ – problem and solution.’ is
closed to new replies.

 * ![](https://ps.w.org/eazy-flickity-slider/assets/icon-256x256.png?rev=1413436)
 * [Eazy Flickity Slider](https://wordpress.org/plugins/eazy-flickity-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eazy-flickity-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eazy-flickity-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/eazy-flickity-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eazy-flickity-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eazy-flickity-slider/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rob Scott](https://wordpress.org/support/users/r0bsc0tt/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-problem-and-solution/#post-11793500)
 * Status: not a support question