Error: Invalid argument supplied for…
-
This error appears in the csv exported file:
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/xxx/public_html/xxx/wp-content/plugins/wp-users-exporter/A_UserExporter.class.php</b> on line <b>92</b><br />
Line 92 is
foreach ($user as $key => $value) { $user->$key = str_replace('||BR||', '\n', $value); }
I changed it into this and the error is gone.
if (is_array($user)) { foreach ($user as $key => $value) { $user->$key = str_replace('||BR||', '\n', $value); } }
https://www.ads-software.com/extend/plugins/wp-users-exporter/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Error: Invalid argument supplied for…’ is closed to new replies.