Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter raystclair

    (@raystclair)

    RESOLVED!!!!

    SIX SODDING HOURS!!!

    So the fix is a combination of things …

    1. The .htaccess file in the root of your worpdress site containing the code above.

    2. The web.config file in the root of your wordpress site containing the code above.

    Now this is where it gets complex:-

    3. Its to do with IIS Permission and PHP.ini and inherited permissions – let me explain …

    When you upload a file to your wordpress sie PHP first of all copies it the TEMP folder defined by PHP.ini (usually c:\windows\temp or similar)

    Generally there are no write/modify permissions set on the temp folder.

    So when PHP then “moves” the file from the TEMP folder to your uploads folder (i.e. /wp-content/uploads) it moves it with no permissions on it.

    So to fix this …

    A) Ensure that you have points 1 & 2 correct

    B) OPen up PHP.ini and look for the line that looks like – “upload_tmp_dir=”C:\WINDOWS\Temp” (yours may specify a different directory)

    C) Now open windows Explorer and locate the folder specified in that line.

    D) Right click on that folder click “properties”

    E) then click the SECURITY TAB

    F) Now check if it has IIS_USRS showing in the “group or user names” section.

    F) If YES then

    i) highlight the IIS_USRS
    ii) clik the EdIT button
    iii) now select the IIS_USRS user again
    iv) in the permissions section check all the ALLOW tcikboxes
    v) Click APPLY
    vi) Then Click OK

    G) If NO (i.e there is no IIS_USRS then

    i) Click the EDIT Button
    ii) Click ADD
    iii) Type IIS_URSR into the field
    iv) Click CHECK NAMES and it should validate
    v) Click OK
    vi) NOW COMPLETE THE STEPS IN “F” above!

    This then adds the IIS_USRS group and sets the permissions for the OLD temp folder.

    H) Create a NEW folder OUTSIDE of your web folders (i.e. C:\MySites\UploadTemp\)

    I) Go back to the PHP.ini thats open in your text editor

    J) Change the line from “upload_tmp_dir=”C:\WINDOWS\Temp” to “upload_tmp_dir=”C:\MySites\UploadTemp\” (or whatever path and name you chose.

    K) Save the the changes to the PHP.ini

    L) Now open windows Explorer and locate your new folder

    M) REPEAT steps shown in “G” above then seps in “F” above (in that order)

    N) Now locate the /wp-contents/ folder in your wordpress site

    O) REPEAT steps shown in “G” above then seps in “F” above (in that order)

    OK – so that sorts the issue for any new files (PNG or JPG) that you upload and so this is the FIX.

    However we now have to deal with the OLD images as these still will not display.

    So …

    1. find the post or page with the old image thats not displaying

    2. Remove it from the page/post

    3. USE FTP to copy all the images back to your PC

    4. Delete all the images that are not displaying from the server

    5. Delete any references to the old images in the Media Library

    6. Set the PERMALINKS to default.

    7. Set the PERMALINKS to your CUSTOM PERMALINKS again

    8. Re-upload the images to the Media Library

    9. Add them back into your post/page

    10. Refresh … et Voila!

    All PNG and All other images now displaying beautifully in all pages and post WITH PRETTY PAGE URLS!!!

    This problem has killed me for the last few months and there has been no cohesive answer from anyone – WordPress blame your hosting (or in my case my dedicated server) the hosting companies blame Worpdress or PHP and you go round in circles.

    I am glad to have been able to “join the dots” of the myriad different threads of information that ARE out there into a single answer that I know works.

    I hope you all find this useful.

    Ray

    PS – Apologies for spelling/grammar errors – I type at 120 words a minute with 0% Accuracy!

    Thread Starter raystclair

    (@raystclair)

    C’mon … please someone help – another three hours and I am still no nearer an answer.

    PLEASE!

    Ray

    When you changed the permalinks did you get a message below the permalink area stating that it couldn’t write to your web.config file.

    If YES then you need to check your web.conig file and it should read something like this:-

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name=”wordpress” patternSyntax=”Wildcard”>
    <match url=”*” />
    <conditions>
    <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>

    If it doesn’t – then open it up in notepad and change it.

    This should cure your problem.

    Also check your Permalink Structure conforms those laid in the link provided by Alchymyth.

    Thread Starter raystclair

    (@raystclair)

    So much for WordPress being a good Opensource community.

    24 hours on and I am STILL no nearer to getting this sorted!

    I have done ALL of the following …

    1. Deleted my domain from my server
    2. Had the hosting company clean down all the files and folders
    3. Left it 24 hours
    4. created a new DB
    5. Completely reinstalled Wp 2.7.1 fresh
    6. ran install.php
    7. entered the details to create config.php

    then it fell over …

    http://www.raymondstclair.com/wp-admin/install.php?step=2

    and I get a message about WP already being installed – utter crap – I did it CLEAN even from installing the domain on the server and its saying it was installed before.

    If no-onwe here can offer some help then its time to move on and put WordPress down as a dogpile of rubbish! I’ll make sure I blog about it when I get my blog up and running again.

    Thread Starter raystclair

    (@raystclair)

    Yep did that … what next

Viewing 5 replies - 1 through 5 (of 5 total)