locked
mediawiki 1.35 upgrade changed image links RRS feed

  • Question

  • User1888206822 posted

    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.

    Example:

    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    http://192.168.191.6:8031/wiki/images/4/4f/NAR202_Dawson_Creek_945_1978-05-16.jpg

    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?

    Saturday, May 22, 2021 3:13 AM

All replies

  • User1888206822 posted

    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;

    Sunday, May 23, 2021 6:12 PM