I’ve tried asking on the Mediawiki Support Desk but haven’t gotten any help.

EDIT: It looks like the issue with images comes from using Short URLs. After uploading the image through the Upload File section I get a 404 error but if I add /index.php?title= to the url I can visit the uploaded files. Not sure how to fix this though

So basically my issue is mediawiki thinks the links to my files are /File:filename.png but they’re actually at index.php?title=File:filename.png

  • ostsjoe@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    We need more info on your permissions. 755 would mean anyone can read files there, but only the owner can write. If the owner isn’t the same user that mediawiki is running as, then uploads won’t work.

    • Nix@merv.newsOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      What info do you need? The error seems to be due to the Short Urls feature. If I go to the Upload File section and upload a file it redirects to the file but gives a 404 message but when I go to the list of uploaded files I can see all the files have actually uploaded.

      • ostsjoe@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        For a quick test you could set it to 777, if that fixes it, check which user new files are being assigned to, adjust permissions back down accordingly.

        • Nix@merv.newsOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 year ago

          I tried it, I still can upload files to the server when I go to Upload Files section but it redirect to the 404 I think due to the Short Urls. The images still upload to the server fine but its a hassle because it always looks like it fails. I don’t know how to fix the Short Urls issue though

          and if i try to upload an image from the Upload Image section when editing the wiki it gives me the old HTTP 500 error.

          the problem is that it thinks the files are located at /view/File:filename.png

          but they’re really located at index.php?title=File:filename.png

  • bela@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Are you sure you are editing the correct php.ini file? I think apache uses a separate one than your command line php.

    I’m afraid I can’t be of much more help, but I thought I’d mention this.

    • Nix@merv.newsOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Oh I didn’t know there was two but I just checked the webserver php.ini file and that has file_uploads = On as well and still no luck