Upload with WIMP
-
Hi,
It’s my third night of trying to get a working WP in a WIMP platform (Windows XP – IIS 5.1 – Mysql 4.1 – Php 4.3.9)
Before telling about my current problem with uploading, I will summarize my experiences and working around so far:
1. Because I chose to use Mysql 4.1 my first problem was to connecto to the database. The solution was a password thing: I had to alter the password of admin with: mysql> set password for admin@localhost = old_password(‘pwd’);
2. Everytime I login the siteurl value (in wp_options table) was set to null, therefore all links were wrong. Solution: comment the lines 153-155 of wp-login.php:
//if ( dirname(‘https://’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’]) != get_settings(‘siteurl’) )
// update_option(‘siteurl’, dirname(‘https://’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’]) );
From there everything else seems to work fine, except for the upload functionality. At the beginning I was getting no single error but a succesful upload with size:0kb and no file on the upload directory. I’ve been playing with all sort of urls for the destination directory and nothing.
I’ve also give write permission to the upload file but nothing.
Looking carefully at the result text after uploading I first realized that the URI has a space in between the URI set in options and the name of the file.
I fixed that by updating the option_value direclty in the database.
Then I went to look upload.php. I realized that there was missing a ‘$’ in line 180 (aprox):
// Still couldn’t get it. Give up.
–> THIS $ WAS MISSING if (!$moved) {
die(sprintf(__(“Couldn’t upload your file to %s.”), $pathtofile));
} else {
chmod($pathtofile, 0666);
@unlink($img1);
}
After fixing the result now changed and I’m getting the following error:
Couldn’t upload your file to c:/Inetpub/wwwroot/wordpress/wp-content/file.gif
Now it’s almost midnight so no more brain able to work for more trials…
any idea? please HELP!
- The topic ‘Upload with WIMP’ is closed to new replies.