image in table view and detail view

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
jgregor
Posts: 12
Joined: 2020-01-13 04:44

image in table view and detail view

Post by jgregor » 2020-01-14 16:07

Hello everyone, I have a problem with my photos, instead of the miniature photo in table view, I only have a black edge. When I click on the photo, it will appear on the screen. Impossible to fix the problem ...... someone would you like a solution if you like?.thanks in advance.

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: image in table view and detail view

Post by pbottcher » 2020-01-14 20:02

Hi,

what setting did you put for the images in AppGini? Did it work already for you?
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

jgregor
Posts: 12
Joined: 2020-01-13 04:44

Re: image in table view and detail view

Post by jgregor » 2020-01-14 21:13

Setting are varchar 255 500 Kb thumnail size 50x50 and250x250 in detail view.
What I don't understand is that I always put the same values and everything was ok
I tried with several databases, same news and always the same problem. I don't know what's going on.

thank you for answering.

Alisson
Veteran Member
Posts: 81
Joined: 2017-02-25 20:32

Re: image in table view and detail view

Post by Alisson » 2020-01-18 17:33

In the Appgini software when creating a new field in the Media tab, there are two options: IMAGES and FILE UPLOAD, if you select IMAGES you'll see a thumbnail in the tableview but if you choose FILE UPLOAD you'll see only an icon.
upload.JPG
upload.JPG (16.05 KiB) Viewed 7563 times

jgregor
Posts: 12
Joined: 2020-01-13 04:44

Re: image in table view and detail view

Post by jgregor » 2020-01-19 20:16

Thank you for your answer, but that's what I always do and for some time the photos have not been displayed even on new applications: instead of the mini photos there are black squares and I can't find a solution to this prob
Snímka obrazovky (9).png
Snímka obrazovky (9).png (141.56 KiB) Viewed 7538 times
lem .Joseph

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 352
Joined: 2013-03-21 04:37

Re: image in table view and detail view

Post by peebee » 2020-01-20 01:02

From that screenshot, it looks like the thumbnails do not exist rather than not displaying correctly? If you "inspect element" in your console, what is the URL of the thumbnail and do you see any error in the console? URL should be something like below:
thumbnails.jpg
thumbnails.jpg (43.37 KiB) Viewed 7533 times
Also, have you tried the "Rebuild Thumbnails" utility in the Admin area of your app? Admin Area => Utilities => Rebuild Thumbnails. That's what it is designed for.
rebuild-thumbs.jpg
rebuild-thumbs.jpg (12.02 KiB) Viewed 7533 times

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: image in table view and detail view

Post by jsetzer » 2020-01-20 06:44

Hi,

I guess there will be file-not-found errors in the console tab of your browser's development tools. Can you please upload a screenshot of these errors so that we can see the url from which the browser requests the images.

Please check if the file thumbnail.php exists in root directory of your web application.

Best,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

jgregor
Posts: 12
Joined: 2020-01-13 04:44

Re: image in table view and detail view

Post by jgregor » 2020-01-20 20:58

Hello everyone. Sorry, I'm not an appgini specialist and I don't know which console it is. I just did a test app with few fields to simplify. The mini photos are not displayed. there is always this black square. When i click on it the photo is displayed which proves the photos are saved in the images folder. There is also the thumbnails file in the application files. I put the axp file + the php file generated by appgini + screenshots. I don't know if it will possible to fix the problem
Snímka obrazovky (13).png
Snímka obrazovky (13).png (26.19 KiB) Viewed 7323 times
Unfortunately we can not also put the apx file whose format is not authorized I do not know if it will be possible to fix the problem.
Thanks in advance
Attachments
Snímka obrazovky (11).jpg
Snímka obrazovky (11).jpg (43.03 KiB) Viewed 7323 times

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 352
Joined: 2013-03-21 04:37

Re: image in table view and detail view

Post by peebee » 2020-01-21 06:23

"Console" = we are referring to your web browser developer tools console. Perhaps try Google Chrome first.

To "inspect" the image thumbnail element in Google Chrome:
1. Open your Appgini application in Google Chrome and go to a table with the missing thumbnails
2. Right click your mouse directly over one of those "X" where the thumbnail should be
3. Select "Inspect" (or "Inspect Element") from the dropdown
4. Google Chrome Developer tools will open (on the Element tab) and it should hopefully have selected the thumbnail <img> element

What is the URL of that thumbnail image? Maybe post a screenshot if you're not sure how to read it?

While the developer tool panel is open, you should also see also the "Console" tab. Any page errors should be displayed in there (in red). You'll likely have 404 not found errors for the thumbnails. What exactly are those errors? Screenshot if necessary?

Quick tutorial on Chrome Inspect Element: https://www.youtube.com/watch?v=1l4xz1QQhew

Google Chrome DevTools info: https://developers.google.com/web/tools/chrome-devtools

jgregor
Posts: 12
Joined: 2020-01-13 04:44

Re: image in table view and detail view

Post by jgregor » 2020-01-21 09:22

Hi, peebee, on the console there are no error messages only warnings. I am attaching the translation.
Les images de la base de donnees doivent etre stockées dans le dossier images de l application ou dans le dossier ressources/images ?
Thank you. Joseph

HTML1300: Navigation occurred.
index.php (1.1)

CSS3121: The media query -ms-viewport is no longer used.

2HTML1300: Navigation occurred.
index.php (1.1)

CSS3121: The media query -ms-viewport is no longer used.

HTML1300: Navigation occurred.
table1_view.php (1.1)

CSS3121: The media query -ms-viewport is no longer used.

DOM7009: Unable to decode image at URL: http: //localhost/Dbtest/thumbnail.php? I = e0faf84c3c13814af.jpg & t = table1 & f = Photo & v = tv with MIME: image / jpeg.
thumbnail.php (1.1)

DOM7009: Unable to decode image at URL: http: //localhost/Dbtest/thumbnail.php? I = d6a5c63c076b3f712.jpg & t = table1 & f = Photo & v = tv with MIME: image / jpeg.
thumbnail.php (1.1)

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 352
Joined: 2013-03-21 04:37

Re: image in table view and detail view

Post by peebee » 2020-01-22 00:09

Firstly, did you use Google Chrome browser Developer Tools to debug or did you use Microsoft Edge? Have you tried your app in any browser other than Edge/IE? Do the thumbnails display correctly in other browsers?

Next, this: "Les images de la base de donnees doivent etre stockées dans le dossier images de l application ou dans le dossier ressources/images ?" appears to translate to this in English:
"The images of the database must be stored in the images folder of the application or in the resources / images folder?"

I have no idea where that message is coming from? I can't imagine that is a browser warning and it doesn't seem to be an Appgini default error either? I presume you didn't change the default folder to store images from /images? I also presume your uploaded images are being stored in the /images folder?

And finally this: "DOM7009: Unable to decode image at URL: http: //localhost/Dbtest/thumbnail.php? I = e0faf84c3c13814af.jpg & t = table1 & f = Photo & v = tv with MIME: image / jpeg.
thumbnail.php (1.1)"
That would appear to be the cause of the problem and why thumbnails are not displayed? The image is unable to be decoded and will not display.

As you are using wamp/localhost (and apparently Microsoft Edge), I would guess that your local settings/setup could possibly be the issue? Perhaps response headers blocking something? I would suggest you spend some time and Google ""DOM7009: Unable to decode image at URL:" and that may help solve the issue? Sorry, without having the app in front of me and more time to debug, I'm about out of suggestions.

jgregor
Posts: 12
Joined: 2020-01-13 04:44

Re: image in table view and detail view

Post by jgregor » 2020-01-22 07:33

Hello peebee, and thank you again for your interest. As incredible as it may seem, after long investigations I came to the conclusion that it could come from my appgini which generates a corrupt code. So I downloaded a more version recent appgini, I made a test application and I
I no longer have this problem. Everything works again as before (for the moment), which relieves me after almost two weeks
In any case thank you again. Joseph ;)

Post Reply