Announcement

#1 2024-08-15 20:56:39

ajax
Member
2024-07-25
5

Pictures NOT displayed (only file names as test)

Hello/Hi/Greetings,

I've created a new test installation of Piwigo on my own Windows computer.  XAMPP is providing required Apache & Database support.

Just created an Album and uploaded some jpg files to it.  However, I cannot get it to display pictures rather only the names of the files are displayed as text.  Hope there is some kind of explanation for what went wrong and how to correct the problem.

Piwigo 14.5.0 Check for upgrade
Installed on 5 August 2024, 1 week 3 days ago
Operating system: WINNT
PHP: 8.2.12 (Show info) [2024-08-15 20:47:29]
MySQL: 10.4.32-MariaDB [2024-08-15 14:47:29]
Cache size N/A   never calculated Refresh

Piwigo URL: http://*** Not online yet ***

Offline

 

#2 2024-08-16 21:10:45

ajax
Member
2024-07-25
5

Re: Pictures NOT displayed (only file names as test)

I did mean to say "text" instead of "test" in the title.

Thought it might provide some clarification to show the results I'm getting.  Here is an image of my display screen when trying to view an album.  I have checked and there are jpg files in the folder named "upload" that are the ones I think should be displayed.

Offline

 

#3 2024-08-21 09:55:16

whynotwi
Member
2023-06-05
5

Re: Pictures NOT displayed (only file names as test)

Hello,

i accounter the same problem. I already have two albums, which work fine. But if i add new fotos in my new album, i only see the placeholder in the gallary or the filename in the working area (batch manager). If i choose an existing album there, i can change the pictures, the order and so on.

In the folder on my hosted space i can see the pictures and open them. They are uploaded as desired. The access rights are set fine (the same as in the older albums), and in the database in table "images" i can't find any differences between the older pictures and the new ones. So i guess the problem has something to do with the upload (although there are shown now error messages when uploaded).
I tried to synchronize the information from the pictures and to re-upload the pictures, but the result is always the same.

Any ideas what the problem could be ? I use the current version 14.5.0.
I use several extensions, but as they are installed some time ago and the recent uploads always worked fine i don't think they are the reason for the problem.

regards
Stefan

Offline

 

#4 2024-08-21 13:01:15

Katryne
Member
2016-12-03
401

Re: Pictures NOT displayed (only file names as test)

Stefan, how are the files names spelled ? Give an example of file name for a photo that cannot be displayed.


https://album.chauvigne.info/ v.13.8.0 - https://balades.comoni.org/ v.14.5.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.1.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#5 2024-08-21 13:38:40

whynotwi
Member
2023-06-05
5

Re: Pictures NOT displayed (only file names as test)

Hej Katryne,

the names are simply taken from my mobil and the drone, and i didn't change the names. They are like img_20240721_155423_667.jpg. The names from the drone are even shorter, like dji_1234.jpg.

Offline

 

#6 2024-08-21 17:03:13

ajax
Member
2024-07-25
5

Re: Pictures NOT displayed (only file names as test)

I've undertaken a few more experiments and discovered something of interest.

First, I installed Piwigo on my hosting service, which uses something called Softaculous (?spelling) to do the installation.  It seems to work fine (as expected).  In that, no problem uploading photos to albums and having them displayed (as pictures).  Then I migrated this instance of Piwigo to my Windows computer used for testing with XAMPP.  The photos previously uploaded continued to be displayed (as pictures).  Next, uploaded some more pictures (i.e., on my Windows test computer) and the problem I previously experienced that triggered this post reappeared.  Note:  My Windows computer was doing this with XAMPP Version 8.2.12.

One reason for using my own computer for testing is that I can run different versions of XAMPP, several of which are readily available.  Therefore, I migrated this instance of Piwigo to XAMPP Version 7.4.33.  Bingo now it works correctly.

One more experiment consisted of taking the original Piwigo installation which was initially installed on my test computer using XAMPP 8.2.12 and moving it to XAMPP 7.4.33.  Without doing anything else it seems to work correctly.  In that, I haven't done any thorough testing but the album created and photos uploaded using XAMPP 8.2.12 now display correctly on XAMPP 7.4.33.

Cannot say what's going on here but it does seem that this is an XAMPP problem.  I will plan to post a topic on the XAMPP forum that references this finding.

Last edited by ajax (2024-08-21 17:11:17)

Offline

 

#7 2024-08-29 22:05:50

xavipena
Member
2024-08-29
1

Re: Pictures NOT displayed (only file names as test)

I've got same problem.

After updating version 14.5.0, when upoading a new album, pictures are not diplayed. An empty box instead the image.

If I take a look at the code in the browser, the image url seems to be malformed. This example for the thumbnail:

<img src="i.php?/upload/2024/08/29/20240829130204-20488a63-xs.jpg" width="320" height="240" alt="IMG 3656">

is this a version bug?

Offline

 

#8 2024-09-02 01:59:38

raupie
Member
2023-07-11
45

Re: Pictures NOT displayed (only file names as test)

Does it remain this way on every page load or do the images start to appear after a page refresh? If you click the missing photo does it to take you to the main photo page? Is it just displaying no photo on the main album view?

Last edited by raupie (2024-09-02 02:00:09)

Offline

 

#9 2024-09-04 01:56:54

raupie
Member
2023-07-11
45

Re: Pictures NOT displayed (only file names as test)

Oh. What about deleting the cache. In maintenance page regenerate it all.

"_data is for everything in cache, meaning you can delete its content and Piwigo will rebuild it when necessary"

If you are moving installations I would absolutely try this first.

Good luck.

Offline

 

#10 2024-09-10 22:04:49

whynotwi
Member
2023-06-05
5

Re: Pictures NOT displayed (only file names as test)

Hej,

i've done some investigation into this issue and found a solution, at least as a workaround.

The problem is the check for characters in the given path in "i.php" (its located in the root directory of piwigo). There's a line "preg_match($conf['sync_chars_regex'], $token) or ierror('Invalid chars in request', 400);". I just commented this line, so it is not executed. After that the upload worked fine and i could add and modify my photos.

The regex in field "sync_chars_rege" in variable $conf is created in "config_default.inc.php" in folder "include". There is the hint that this regex only supports ascii. In my pathes and pictures are only ascii-characters. So i'm not sure what the problem is. Maybe the "/", but in this case a lot of users should encounter this issue...

Nevertheless this solution works for me and i'm looking forward to new versions.

Hope that helps
regards
Stefan

Offline

 

#11 2024-09-11 02:00:55

erAck
Only trying to help
2015-09-06
2129

Re: Pictures NOT displayed (only file names as test)

Leaving that commented out is not such a good idea. Having worked around it means that the URL processed contains a path info or query string with unexpected characters not in $conf['sync_chars_regex'], which with the check removed will also hide errors and process malformed queries.

What actually is the URL (you may redact the server.domain part) of such failing album page and looking at the generated HTML source what is the <img src="..."> value of failing images?


Running Piwigo at https://erack.net/gallery/

Offline

 

#12 2024-09-21 23:50:28

vlad
Member
2016-07-28
5

Re: Pictures NOT displayed (only file names as test)

It seems I've got the same problem. Some albums in my gallery, like this http://fotky.kuzbici.cz/index.php?/category/385 for example show the thumbnails, but not the photos. The previously mentioned workaround of commenting out a line in i.php does not work for me.

Offline

 

#13 2024-09-22 06:37:04

Katryne
Member
2016-12-03
401

Re: Pictures NOT displayed (only file names as test)

Viad, I don't know if it can help, but when I right-click over the file name, then choose in the contextual menu "open in a new tab", I get this error message :

Forbidden
You don't have permission to access /domains/fotky.kuzbici.cz/galleries/Dovolene/2004_milovy/DSCF6045-web.jpg on this server.
Server unable to read htaccess file, denying access to be safe


https://album.chauvigne.info/ v.13.8.0 - https://balades.comoni.org/ v.14.5.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.1.29 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact