Media upload takes too long

Please check you file size first, if it’s too large or heavy wait. it will take time. by default WordPress upload file size limited to 2MB only, so you have to upload less than it or you have to increase the upload file size limit.

How to upload and add images to the existing post from the front-end with admin approval which is posted by other user

This is a way to add post images and other things. So put different check on it according to your need. <?php if( ‘POST’ == $_SERVER[‘REQUEST_METHOD’ ] && !empty( $_POST[‘action’ ] ) && $_POST[‘action’ ] == “new_post”) { if (isset ($_POST[‘post_title’])) { $post_title = $_POST[‘post_title’]; } $post = array( ‘post_title’ => $post_title, ‘post_content’ => $post_content, … Read more

media_handle_sideload() fails

The Problem was the @copy() in wp-includes/file.php class of wordpress. This will mask the real problem why the file could not copied (the rights on on htdocs was not ok). So the problem is fixed.

Limit max upload file size in front end submmission form

You have some ways to do that: In your functions.php or wp-config.php @ini_set( ‘upload_max_size’ , ’15M’ ); @ini_set( ‘post_max_size’, ’15M’); @ini_set( ‘max_execution_time’, ‘300’ ); In your .htaccess (if you use apache2) php_value upload_max_filesize 15M php_value post_max_size 15M php_value max_execution_time 300 php_value max_input_time 300 If you use nginx http { client_max_body_size 15m; } In your php.ini … Read more

Cannot upload themes. Error: “The uploaded file could not be moved to /var/www/wp-uploads/localhost/2011/10.”

From quick search of source for this error message, it is likely to be triggered by failed move_uploaded_file() function call, which is native PHP and not WordPress. Documentation says that it has some restrictions, related to safe_mode and open_basedir so that might be your issue. Since WP suppresses error output from this function with @ … Read more

http upload error as a subscribed user

The Subscriber user role does not have write permissions. http://codex.wordpress.org/Roles_and_Capabilities#Subscriber Perhaps you should give the user the Contributor role. Contributor delete_posts edit_posts read http://codex.wordpress.org/Roles_and_Capabilities#Contributor

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