uncatcrea / wp-appkit

WP-AppKit WordPress plugin (create mobile apps connected to WordPress)
http://uncategorized-creations.com/
194 stars 66 forks source link

Corrupted PhoneGap build export on some installs #382

Closed mleroi closed 4 years ago

mleroi commented 4 years ago

On some installs the following notice is echoed before PhoneGap build zip export, leading to an invalid zip file that can't be used in PhoneGap Build: Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in wp-appkit/lib/apps/build.php on line 151

We should indeed check if the buffer contains something before trying to clean it. Something like: if (ob_get_length()) ob_end_clean();