bordoni / fakerpress

A WordPress plugin that implements an easy way to create fake data inside WordPress.
http://fakerpress.com
Other
338 stars 54 forks source link

Silently fails when it fails creating post thumbnail #129

Closed jmcbee closed 5 years ago

jmcbee commented 6 years ago

Apparently, wp-content/uploads was not writable by the webserver but the plugin still kept on generating posts with the failed media insert. When I navigate to Media, I see a bunch of non-existent thumbnails. When I click on one, The URL points to a directory (e.g. http://wp.df/wp-content/uploads/2018/06).

I think this line should check for $upload['error'].

bordoni commented 5 years ago

Resolved with the latest version of FakerPress 0.5.0