• Resolved marco1958

    (@marco1958)


    Warning: Invalid argument supplied for foreach() in simple-file-list/ee-simple-file-list.php on line 93

    Please check before use. Change the code code to:

    // Loop thru and set up
    if(is_array($eeSFL_Extensions) && count($eeSFL_Extensions)>0)
    foreach($eeSFL_Extensions as $key => $eeSFL_Extension) {

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mitchell Bennis

    (@eemitch)

    $eeSFL_Extensions is a hard-coded array. I’m not sure how it could be invalid unless there have been changes to the code.

    Thread Starter marco1958

    (@marco1958)

    Mitchell, can running the wp cli be the cause?

    Shall I force reinstall the plug-in and see if I can reproduce the error?

    If I’m the only one, our environment is most likely the cause. In can take a few minutes to debug (see what a trace reveals).

    Plugin Author Mitchell Bennis

    (@eemitch)

    I don’t think so. This error should not be possible. Please delete the plugin and re-download it.

    Thread Starter marco1958

    (@marco1958)

    Deactivated, deleted, installed 4.1.3.zip. This shows:

    There has been a critical error on your website.
    Please check your site admin email inbox for instructions.

    Error pops up again:

    $ wp user list
    Warning: Invalid argument supplied for foreach() in ee-simple-file-list.php on line 93
    +—-+————+————–+————–+————–+—————+
    | ID | user_login | display_name | user_email | user_registe | roles |
    | | | | | red | |

    Plugin Author Mitchell Bennis

    (@eemitch)

    It appears then that plugin is not command line compatible.

    Thread Starter marco1958

    (@marco1958)

    Ok thanks, I will advise the site owner to find an alternative plug-in.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fix PHP bug in variable check’ is closed to new replies.