Support » Plugin: Export User Data » Error: Invalid argument supplied for foreach() on line 183

  • Resolved skyadd

    (@skyadd)


    This displayed on the first row of the exported table file:

    <b>Warning</b>: Invalid argument supplied for foreach() in <b>…\wp-content\plugins\export-user-data\export-user-data.php</b> on line <b>183</b>

    All data appears to have exported successfully. Any need for concern?

    http://wordpress.org/plugins/export-user-data/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Becky Melton

    (@beckymelton1949)

    Same here … Error message in the first 2 lines of the exported spreadsheet.
    Any solution for this?

    Plugin Author qstudio

    (@qlstudio)

    if ( $usermeta && is_array($usermeta) ) {
      foreach( $usermeta as $field ) {
        $usermeta_fields[] = $field;
      }
    }

    Line 183 expects $usermeta to include an array of values – I presume you selected no usermeta fields – this is a bug in the plugin, but this fix should sort it – FYI – I’ve not tested this yet.. but will and if it’s good, I’ll release an update.

    Q

    Plugin Author qstudio

    (@qlstudio)

    I could not replicate this error, however I’ve released an update to the plugin which should address the problem.

    I would also strongly advice that you set-up your wp_debugging to log to a file – as described here: http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error: Invalid argument supplied for foreach() on line 183’ is closed to new replies.