WordPress Permissions Issue for Media Library / uploading

As you can see in wp-includes/script-loader.php, the exact message ‘An error occurred in the upload. Please try again later.’ is the default error message.

After looking further in wp-includes/js/plupload/handlers.js you can realize that something specific happened. You could debug this by setting a breakpoint to look up exact error code. See https://stackoverflow.com/a/13372025/2234089 for more information about browser javascript debugging.

Look in to your server error log for PHP errors.

Ensure you don’t have conflicts with other themes or plugins, try disabling them all and see if upload still fails.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)