Image Tanscoder and storage.php

Hi, I setup a server for just friends and family, everything is working all permissions are fine apache 2.4 is fine and PHP 8 is fine. all audits are fine, fairly new installation, using UNA 13 RC1, server audit all "ok" Cron Jobs working, file and folder permissions are fine as well, I know it's an RC1 release, all modules auto updates on their own just yesterday, oembed\emeding works youtube etc.. only anything uploaded images and videos do not display

Dec 29 16:50:17 [5] /image_transcoder.php?o=bx_persons_thumb&h=10&dpx=1&t=1672332553 [bx_persons_thumb] ERROR: storeFileLocally_Storage failed, getting file from URL ../storage.php?o=bx_persons_pictures&f=wyvyr2vgvaybhjlblctkjaki9zjzyvgr.jpg) failed

When I look at the file on the server I see this wyvyr2vgvaybhjlblctkjaki9zjzyvgr instead of wyvyr2vgvaybhjlblctkjaki9zjzyvgr.jpg

It's not urgent I am just testing to see how UNA works and may use it once I see how everything works, so I can rebuild UNA site anytime as I have direct access to the server (Linux)

And to be honest I really don't need any transcoding for images or videos, as this is a very small deployment, but in the near future may go big

Any suggestions, again not important take your time

Regards,

Rawdata

  • 638
  • More
Replies (8)
    • To transcode an image or video UNA needs to fetch the original file, UNA tries to get it via URL from the server itself, however if your site can't be loaded from the server itself then it fails.

      It maybe different way to fix this, but in most cases it helps if you add the following line to /etc/hosts file:

      127.0.0.1 your-una.domain
      
      • Hi Alex T

        That's the only thing I have not tried, I will give that ago and report back

        Thank You

        • Sorry for the late reply  , your suggestion below worked out perfectly, can post images and videos without issue, however I had to disable MP4 transcoding for all my videos to post correctly without error, it might be my FFMPEG version and or the CPU I am using, only set this deployment up for testing when I upgrade to a better server I will spend more time on the transcoding bit, thank you for your time

          To transcode an image or video UNA needs to fetch the original file, UNA tries to get it via URL from the server itself, however if your site can't be loaded from the server itself then it fails.
          It maybe different way to fix this, but in most cases it helps if you add the following line to /etc/hosts file:
          127.0.0.1 your-una.domain
          
          • Hello, in which folder is this file located?

            • @dreamlove in particular which file are you referring to? we talked about host file and trancoding files?

              • du fichier hosts 

                • For Linux /etc/hosts <== this is the file for Windows based system usually C:\Windows\System32\drivers\etc\hosts <== this is the file

                  • Hello, i can't upload images here is my hosts...is it ok for you?

                    image_transcoder.php?o=sys_images_editor&h=1245&dpx=2&t=1682959894

                    Login or Join to comment.