• I have recently installed WordPress MU and it seems to work perfectly except for one issue. Whenever I try to upload a picture (might also be a problem for other types of uploads, but I’ve only tried pictures) it seems to upload normally and it even gets the size of the image, but the image itself won’t show and when I try opening the image in a new tab I only get an error page as if nothing is there.

    This problem is not only for posts, but also for the custom header and avatar for the buddypress plug-in.

    I have tried re-installing with no luck. However the normal version of wordpress works just fine.

    Any solutions?

Viewing 15 replies - 1 through 15 (of 50 total)
  • did you create a blogs.dir in wp-content?

    Thread Starter christorp

    (@christorp)

    The installation did that on it’s own, so it’s there yes.
    All the files I’ve uploaded are even there, but I can’t see any of them on the actual sites.

    You should upgrade to 3.0 to start. ??

    A link to your site will be really handy.

    Thread Starter christorp

    (@christorp)

    I do have 3.0.

    Nothing on the site will really help unless you’re a member and trying to upload a picture as avatar or if you’re able to post something. Maybe making a test blog there just to try it out. If you wanna try that.

    https://www.deephopes.com

    Did you create the blogs.dir folder under /wp-content/ ?

    Are you running IIS7? I have struggled with this but just solved it with a rewrite rule in the web.config. I’ll paste the whole lot it as there is a rule to help with pretty permalinks aswell:

    <rule name="Uploaded Files" stopProcessing="true">
                        <match url="^files/(.+)" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="wp-includes/ms-files.php?file={R:1}" />
                    </rule>

    This is my first post so if the code looks awfull sorry.

    Oh I didn’t paste the whole lot . woops sorry:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <defaultDocument>
                <files>
                    <clear />
                    <add value="index.php" />
                </files>
            </defaultDocument>
            <rewrite>
    		    <rules>
                    <rule name="Uploaded Files" stopProcessing="true">
                        <match url="^files/(.+)" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="wp-includes/ms-files.php?file={R:1}" />
                    </rule>
    		        <rule name="Main Rule" stopProcessing="true">
    		            <match url=".*" />
    		            <conditions logicalGrouping="MatchAll">
    		                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    		                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    		            </conditions>
    		            <action type="Rewrite" url="index.php" />
    		        </rule>
    		    </rules>
    		</rewrite>
        </system.webServer>
    </configuration>
    Thread Starter christorp

    (@christorp)

    Yes the blogs.dir is in /wp-content/.

    enjaytee: I’m not sure I understood any of that.

    @chris – he asked “Are you running IIS7?” and everything below that was specific to iis.

    Thread Starter christorp

    (@christorp)

    I got that, just aren’t sure what IIS7 is.

    A Windows server. ?? Instead of a Linux server.

    Thread Starter christorp

    (@christorp)

    Oh right. Well, it’s not on a local server. But the server runs unix. Anyway, how would it be a server problem? Uploading works perfectly on a normal WordPress install, just not the multiuser version.

    i’m having a similar issue. (or at least i think so ?? )

    i have a feeling that it has something to do with the new wp 3.0 (multisite) now using /wp-content/blogs.dir/ (etc) to host the images instead of a /wp-content/files/ (something or another) directory?

    like chris, i can see the images in my /wp-content/blogs.dir/(etc) folders via FTP, but on the site, they show up as broken images.

    i’ll admit, i don’t have a good handle on this since i only just got the wordpress MU site running a short while before 3.0 came out. ??

    Thread Starter christorp

    (@christorp)

    tray, that sounds exactly like the same issue so I’m sure you do. Could the problem be that while the upload is successful and such that when it comes to getting the image after upload it tries to get the image from /wp-content/files instead of /wp-content/blogs.dir/1/files and so on..?

    that’s what the rewrite rules in your htaccess file are for. ??

    they rewrite the actual URL (/wp-content/blogs.dir/1/files) into the one you see in the browser (/wp-content/files)

    Tell your webhost that the htaccess file isn’t being read properly.

Viewing 15 replies - 1 through 15 (of 50 total)
  • The topic ‘Image upload issue’ is closed to new replies.