• 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)
  • 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

    (@shafk)

    @hwangc – Thanks. Yes I was running PHP 5.3.x
    Seems to be OK under 5.4.x

    Many Thanks

    Plugin Author ovann86

    (@ovann86)

    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 – but would still recommend keeping your PHP version as up to date as possible (php 7 has huge performance benefits).

    • This reply was modified 7 years, 10 months ago by ovann86.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Parse error’ is closed to new replies.