• Resolved BDDierks

    (@bddierks)


    PHP 7.1.2
    Fatal error: Uncaught Error: [] operator not supported for strings

    Error 1
    Symptom:
    Attempting to edit a group – admin page does not load the update forms. Halts on line 31, groups-edit.php.

    Issue:
    $meta_array is initialized as a string on line 30 – $meta_array = ”;

    Fix:
    Initialize the variable as an array – $meta_array = [];

    Error 2
    Symptom:
    Attempting to save an advert that is in a group, admin page fails to reload leaving a blank white screen.

    Issue:
    $group_array is initialized as a string in adrotate-manage-publisher.php – line 58
    $groups = $type = $group_array = ”;

    Fix:
    Initialize the variable as an array –
    $groups = $type = $group_array = [];

    I guess PHP has become much pickier about its variable declarations in its old age.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    PHP is becoming increasingly annoying about things like that (which is not bad perse, just annoying).

    Someone else already reported this a few days ago, your fix works, and something similar will be included in the next update.

    • This reply was modified 7 years, 9 months ago by Arnan de Gans.
    Thread Starter BDDierks

    (@bddierks)

    Outstanding! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Array variable declarations in 2 files cause errors (white screens)’ is closed to new replies.