Tags:
create new tag
view all tags

SID-02430: No graphics shown, ALT text visible instead

Status: Answered Answered TWiki version: 6.1.0 Perl version: v5.30.1
Category: CategoryInstallation Server OS: Artix Linux 5.5.3-artix1-1 Last update: 6 years ago

Hello,

I installed TWiki and imported a backup of a previous version (installed on a different computer).

Strange: Everywhere where a graphic should be (e.g. icons of the skin's menu) no graphic is shown but its ALT-text.

I checked how the page TwikiDocGraphics is rendered. Same problem. No graphics. The graphics exist in pub/TWikiDocGraphics. I checked their permissions: User http can trespass the entire directory tree and the graphics belong to http with a permission of 644. Fine.

I checked "configure" and found no problematic parameters.

Definitely not my first TWiki installation but I am lost, please give me a hint ...

Best regards, %BR%Detlef.

-- Detlef Marxsen - 2020-02-21

Discussion and Answer

Note that graphics etc. are served by the web server without ever going through TWiki code: In most cases this points to a mismatch between web server and TWiki configurations. The relevant lines are:

Alias /pub "/var/www/twiki/pub" in your Apache config

$TWiki::cfg{PubDir} = '/home/httpd/twiki/pub'; and $TWiki::cfg{PubUrlPath} = '/twiki/pub'; in TWiki's LocalSite.cfg

TWiki's PubDir must match the second path of Apache's Alias in Apache's configuration, and PubUrlPath must match the first path. In my example neither matches.

Some more tools and ideas:

  • If you hover over one of the images (or alt texts), then a right mouse-click should open a context menu which allows you to see the URL given to the web server (including host and port). You'll also see those in the Apache error log.
  • If you add LogLevel debug to your Apache log file, then Apache will also write the file path where it expected the file to be to the log file.

-- Harald Jörg - 2020-02-22

... took me some time to come back to this topic.

There was indeed a misconfiguration as you described above. It works now. For others who run into the same problem: After fixing the configuration you have to restart the Apache service.

Thanks a lot for your hints!

Detlef.

-- Detlef Marxsen - 2020-04-01

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title No graphics shown, ALT text visible instead
SupportCategory CategoryInstallation
TWiki version 6.1.0
Server OS Artix Linux 5.5.3-artix1-1
Web server Apache/2.4.41
Perl version v5.30.1
Browser & version Firefox 72.0.2
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2020-04-01 - DetlefMarxsen
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.