Title: PHP Parse error
Last modified: January 30, 2017

---

# PHP Parse error

 *  [shafk](https://wordpress.org/support/users/shafk/)
 * (@shafk)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-19/)
 * Just upgraded to v1.7.0 version of the plugin… But I now receive a blank page(
   on the frontend & administration area).
 * Looking at the error log files – I noticed the following:
 * PHP Parse error: syntax error, unexpected ‘[‘ in /home/sites/domain.com/public_html/
   wp-content/plugins/gravity-forms-list-field-select-drop-down/gravity-forms-list-
   field-drop-down.php on line 142: /home/sites/domain.com/public_html/index.php
 * Any ideas on this?
 * Thanks!

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

 *  [HwangC](https://wordpress.org/support/users/hwangc/)
 * (@hwangc)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-19/#post-8715701)
 * Had the same issue. Changed `$new_array = [];` to `$new_array = array();` in 
   the line 142. It’s because [] is not working in older versions of php.
 *  Thread Starter [shafk](https://wordpress.org/support/users/shafk/)
 * (@shafk)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-19/#post-8716271)
 * [@hwangc](https://wordpress.org/support/users/hwangc/) – Thanks. Yes I was running
   PHP 5.3.x
    Seems to be OK under 5.4.x
 * Many Thanks
 *  Plugin Author [ovann86](https://wordpress.org/support/users/ovann86/)
 * (@ovann86)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-19/#post-8717538)
 * Hey – sorry guys, i thought I tested down to 5.3 but clearly not.
 * I’ll push out an update with the fix from [@hwangc](https://wordpress.org/support/users/hwangc/)–
   but would still recommend keeping your PHP version as up to date as possible (
   php 7 has huge performance benefits).
    -  This reply was modified 9 years, 2 months ago by [ovann86](https://wordpress.org/support/users/ovann86/).

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

The topic ‘PHP Parse error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravity-forms-list-field-select-drop-
   down_cacfd5.svg)
 * [Drop Down Options in List Fields for Gravity Forms](https://wordpress.org/plugins/gravity-forms-list-field-select-drop-down/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-list-field-select-drop-down/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-list-field-select-drop-down/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-list-field-select-drop-down/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-list-field-select-drop-down/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-list-field-select-drop-down/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [ovann86](https://wordpress.org/support/users/ovann86/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-19/#post-8717538)
 * Status: not resolved