We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

mediawiki 1.35 upgrade changed image linksRSS

1 reply

Last post May 23, 2021 06:12 PM by STEMApps

  • mediawiki 1.35 upgrade changed image links

    May 22, 2021 03:13 AM|STEMApps|LINK

    All but 3 of my 26 images have links to non-existent folders inside my image folder. All the images "missing" are in the /wiki/image "root" but the links point to sub folders that don't exist.

    Running 1.35.2 on IIS10, Windows 2019 Server Standard

    PHP 7.4.19, MySQL 8.0.25

    PHP extensions enabled: php_exif.dll, php_fileinfo,dll, php_intl.dll, php_mbstring.dll, php_mysqli.dll, php_openssl.dll

    Upgrade sequence:

    Copied new files on top of old files. Deleted old folders not in the 1.35.2 distribution

    Ran update successfully. Connected to site but got an error page indicating my 1.27.4 localsetting.php wouldn't work. Deleted localsetting.php, re-entered all the correct information and wiki started.


    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    Detailed Error Information: Module    IIS Web Core

    Notification    MapRequestHandler

    Handler    StaticFile

    Error Code    0x80070002

    Requested URL

    Physical Path    C:\inetpub\wwwroot\NARDPI\Wiki\images\4\4f\NAR202_Dawson_Creek_945_1978-05-16.jpg

    (Note: file is located in \images\ and in \images\thumb\ but there is no folder \images\4\4\)

    Logon Method    Anonymous

    Logon User    Anonymous

    So where do this process go wrong and is there a fix?

  • Re: mediawiki 1.35 upgrade changed image links

    May 23, 2021 06:12 PM|STEMApps|LINK

    I was missing this line in my upgraded LocalSettings.php files:

    ## If you want to use image uploads under safe mode,
    ## create the directories images/archive, images/thumb and
    ## images/temp, and make them all writable. Then uncomment
    ## this, if it's not already uncommented:
    $wgHashedUploadDirectory = false;