What can be the problem?

Discussion in 'WordPress' started by xtazi35, Nov 27, 2009.

  1. #1
    I installed my wordpress blog from windows server to linux server. Took the backup of the database and template files and then dumped it on the linux server. The website is running fine but the problem is when i try to upload any picture it shows this error:

    Warning: move_uploaded_file(/var/www//wp-content/woo_custom/299-the_men.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/wp-content/themes/snapshot/functions/admin-custom.php on line 209
    
    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php5cGOAf' to '/var/www//wp-content/woo_custom/299-the_men.jpg' in /var/www/wp-content/themes/snapshot/functions/admin-custom.php on line 209
    
    Warning: move_uploaded_file(/var/www//wp-content/woo_custom/watch.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/wp-content/themes/snapshot/functions/admin-custom.php on line 209
    
    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php5cGOAf' to '/var/www//wp-content/woo_custom/watch.jpg' in /var/www/wp-content/themes/snapshot/functions/admin-custom.php on line 209
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/wp-content/themes/snapshot/functions/admin-custom.php:209) in /var/www/wp-includes/pluggable.php on line 865
    Code (markup):
    temp file permission is set to 777 but still this is happening. Also my blog tag/category is not showing up against the posts.

    Anyone can shed some light on this? I am almost feeling like pulling my hair.

    thanks :)
     
    xtazi35, Nov 27, 2009 IP
  2. Wp-Mod.Com

    Wp-Mod.Com Peon

    Messages:
    381
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    about this error , there is white space above and below the php command , removing that will remove the error and about remaining errors are you trying to upload via wordpress admin panel using plugin or direct via control panel provided by your host . and did you just move all wordpress files directly from one server to another , i'd recommend that you backup database via mysql and template files also then install a fresh wordpress and then try this may work
     
    Wp-Mod.Com, Nov 27, 2009 IP