iGalerie

Vous n'êtes pas identifié(e).

Annonce

Un message d'erreur qui s'affiche ? Un mot de passe oublié ? L'ajout de fichier qui ne marche pas ?
Pensez d'abord à lire la FAQ, vous y trouverez probablement une solution à votre problème.

#1 Utilisation » Downgrade installation » 28-04-2024 06:35:18

Knut
Réponses : 0

Can I go from 3.0.23 to 3.0.22 by simply install version 3.0.22 over 3.0.23?
I have to many issues with 3.0.23 with my server.
Knut

#2 Re : Utilisation » Envoi de photos en échec? » 21-04-2024 05:59:02

Yes David,
The first from Chrome, the upload also stops in Edge.

I do not get the error when I replace files from admin.

one of the error messages in Edge

orm elements must have labels: Element has no title attribute Element has no placeholder attribute
<input type="file" id="upload_input_file" multiple="" accept="image/gif,image/jpeg,image/png,image/webp,video/mp4,video/webm" style="display: none;">
Open in Elements
REQUEST
https://www.varteig-historielag.no/VHiG … ser-upload
FURTHER READING
Learn more about this axe rule at Deque University
Learn why this is important and how to fix it on webhint.io

#3 Re : Utilisation » Envoi de photos en échec? » 20-04-2024 21:47:03

I have the same issue, the upload stop in most cases.
With F12 it looks like this
 screenshot F12 error on upload

This error text
form field element should have an id or name attribute
A form field element has neither an id nor a name attribute. This might prevent the browser from correctly autofilling the form.
To fix this issue, add a unique id or name attribute to a form field. This is not strictly needed, but still recommended even if you have an autocomplete attribute on the same element.
1 resource
Violating node
Learn more: The form input element

Knut

#4 Re : Utilisation » javascript in head.tpl.php » 07-04-2024 16:39:45

Hi David,
Thanks for the input.

I added the
nonce="<?php echo CSP_NONCE; ?>"

to my menu script lines to the head.tpl.php file in template/default/custom folder.
The scripts load correctly (I checked see the page source), but the menus did not show up.

The second method, I may have misunderstood the use the correct procedure:
I loaded this line in template/default/custom/head.tpl.php
<script type="text/javascript" src="<?php echo $tpl['gallery']['path']; ?>/js/custom.js"></script>

Then I made the script lines in to js/custom.js (in js root folder)
This does not load the script at all.
Knut

#5 Utilisation » javascript in head.tpl.php » 26-03-2024 21:46:57

Knut
Réponses : 3

I have successfully used the head.tpl.php file under Template/Default/Custom to run a separate JavaScript menu for a sister-website with  the album.
This has worked well until version igalerie 3.0.22. But in 3.0.23 I cannot get it to work. The menu does not show at all.
Suggestions appreciated.
Knut

#6 Re : Utilisation » Album speed » 26-03-2024 14:49:59

I have the ‘recent images’ turned on in the album.
When I click the flag for recent images which in the browser produce this code after the album address
?q=album/2/recent-images#top
Then the album page get dark nothing comes out. (I have dark mode in album).
This is flawless working on other server I use.
Suggestions appreciated, I looks like the server support can not find a solution.
Knut

Update:
This issue is a conflict with a javascript menu I used in the album. I removed the menu (not too important) then the last image flag is working properlly. This is server dependent. I get the menu workng on a second server under same conditions.

#7 Re : Utilisation » Album speed » 26-03-2024 14:38:27

Thanks David,
I have complained to the slow server and they claim to have increased the resourses. Then I get a approx 3 seconds delay which is a larage improvement from 13 seconds.
I run the diagnostick mode as you explained and got this output. (sorry for the prsentation, could not find a way to prsent det table here.
Item no 10 is the one delaying the website.
[img]#    Fil    Linje    SQL-forespørsel    Resultat    Antall linjer behandlet    Utførelsestid
1    includes/core/dblayer/sqlite.class.php    210    PRAGMA synchronous = OFF    SUKSESS    0    0,317 ms
2    includes/core/dblayer/sqlite.class.php    216    PRAGMA foreign_keys = ON    SUKSESS    0    0,006 ms
3    includes/core/Config.class.php    925    SELECT * FROM config    SUKSESS    ?    0,030 ms
4    includes/core/Auth.class.php    191    SELECT g.*,
u.*,
(strftime('%s', '2024-03-26 12:21:40') - strftime('%s', CASE WHEN user_lastvstdt IS NULL
THEN '2000-01-01 00:00:00'
ELSE user_lastvstdt END)) > 900 AS user_update
FROM sessions AS s,
sessions_users AS su,
groups AS g,
users AS u
WHERE u.user_id = su.user_id
AND su.session_id = s.session_id
AND u.group_id = g.group_id
AND user_status = '1'
AND session_token = ?
AND session_expire > '2024-03-26 12:21:40'    SUKSESS    ?    0,130 ms
5    includes/core/Auth.class.php    262    UPDATE users
SET user_lastvstdt = '2024-03-26 12:21:40',
user_lastvstip = ?
WHERE user_id = ?    SUKSESS    1    0,239 ms
6    includes/gallery/classes/Gallery.class.php    672    SELECT user_id,
user_avatar,
user_login,
user_nickname,
user_lastvstdt
FROM users
WHERE user_id != 2
AND user_status = '1'
AND (strftime('%s', '2024-03-26 12:21:40') - strftime('%s', user_lastvstdt)) < 300    SUKSESS    ?    0,047 ms
7    includes/gallery/classes/GalleryCategory.class.php    692    SELECT cat.*,
CASE WHEN cat.password_id IS NULL THEN 1 ELSE (SELECT 2
FROM sessions AS s
LEFT JOIN sessions_categories AS sc USING (session_id)
LEFT JOIN passwords AS p USING (cat_id)
WHERE cat.password_id = p.password_id
AND session_token = '857710765d3ccd0f1ad108d87dc6ca2b2f6daf0c'
AND session_expire > '2024-03-26 12:21:40') END AS password_auth,
CASE WHEN cat_filemtime IS NULL
THEN 'category' ELSE 'album'
END AS cat_type,
i.item_id,
i.item_type,
i.item_adddt,
i.item_path,
i.item_orientation
FROM categories AS cat
LEFT JOIN items AS i
ON cat.thumb_id = i.item_id
WHERE 1=1
AND cat.cat_id = ?
AND cat_status = '1'
AND cat_filemtime IS NOT NULL    SUKSESS    ?    0,144 ms
8    includes/gallery/classes/GalleryCategory.class.php    810    SELECT 1
FROM favorites AS f
LEFT JOIN items AS i USING (item_id)
LEFT JOIN categories AS cat USING (cat_id)
WHERE 1=1
AND (cat.password_id IS NULL OR (SELECT 2
FROM sessions AS s
LEFT JOIN sessions_categories AS sc USING (session_id)
LEFT JOIN passwords AS p USING (cat_id)
WHERE cat.password_id = p.password_id
AND session_token = '857710765d3ccd0f1ad108d87dc6ca2b2f6daf0c'
AND session_expire > '2024-03-26 12:21:40') = 2)
AND item_status = '1'
AND f.user_id = ?
AND f.item_id = i.item_id
AND item_path LIKE ? ESCAPE '\'
LIMIT 1    SUKSESS    ?    0,124 ms

9    includes/gallery/classes/GalleryCategory.class.php    1141    SELECT t.*,
COUNT(*) AS tag_items_count
FROM tags AS t
LEFT JOIN tags_items AS ti
ON t.tag_id = ti.tag_id
LEFT JOIN items AS i
ON ti.item_id = i.item_id
LEFT JOIN categories AS cat
ON i.cat_id = cat.cat_id
WHERE 1=1
AND (cat.password_id IS NULL OR (SELECT 2
FROM sessions AS s
LEFT JOIN sessions_categories AS sc USING (session_id)
LEFT JOIN passwords AS p USING (cat_id)
WHERE cat.password_id = p.password_id
AND session_token = '857710765d3ccd0f1ad108d87dc6ca2b2f6daf0c'
AND session_expire > '2024-03-26 12:21:40') = 2)
AND i.item_path LIKE ? ESCAPE '\'
AND item_status = '1'

GROUP BY t.tag_id
ORDER BY tag_items_count DESC, t.tag_id ASC
LIMIT 0,100    SUKSESS    ?    67,901 ms

10    includes/gallery/classes/GalleryItems.class.php    847    SELECT i.*,
cat.cat_parents,
u.user_avatar,
u.user_login,
u.user_nickname,
u.user_status
FROM items AS i

LEFT JOIN categories AS cat
ON i.cat_id = cat.cat_id
LEFT JOIN users AS u
ON i.user_id = u.user_id
WHERE item_status = '1' AND 1=1 AND (cat.password_id IS NULL OR (SELECT 2
FROM sessions AS s
LEFT JOIN sessions_categories AS sc USING (session_id)
LEFT JOIN passwords AS p USING (cat_id)
WHERE cat.password_id = p.password_id
AND session_token = '857710765d3ccd0f1ad108d87dc6ca2b2f6daf0c'
AND session_expire > '2024-03-26 12:21:40') = 2) AND i.cat_id = :cat_id
ORDER BY LOWER(item_path) ASC, LOWER(item_name) ASC, item_position ASC
LIMIT 5100,60    SUKSESS    ?    2808,155 ms

11    includes/core/Item.class.php    1212    SELECT item_id
FROM favorites
WHERE item_id IN (26727, 26704, 26710, 26723, 26726, 26701, 26712, 26722, 26702, 26697, 26700, 26699, 26720, 26696, 26714, 26718, 26721, 26725, 26707, 26708, 26711, 26703, 26715, 26724, 26709)
AND user_id = ?    SUKSESS    ?    0,123 ms

12    includes/gallery/classes/Gallery.class.php    1290    SELECT i.*,
cat.cat_parents,
u.user_avatar,
u.user_login,
u.user_nickname,
u.user_status,
(0) AS in_selection
FROM items AS i
LEFT JOIN categories AS cat
ON i.cat_id = cat.cat_id
LEFT JOIN users AS u
ON i.user_id = u.user_id
WHERE 1=1
AND (cat.password_id IS NULL OR (SELECT 2
FROM sessions AS s
LEFT JOIN sessions_categories AS sc USING (session_id)
LEFT JOIN passwords AS p USING (cat_id)
WHERE cat.password_id = p.password_id
AND session_token = '857710765d3ccd0f1ad108d87dc6ca2b2f6daf0c'
AND session_expire > '2024-03-26 12:21:43') = 2)
AND item_status = '1'
ORDER BY RANDOM()
LIMIT 1    SUKSESS    ?    17,885 ms
13    includes/core/Category.class.php    655    SELECT cat.cat_id,
cat.user_id,
cat.password_id,
cat_parents,
cat_name,
cat_url,
cat_filemtime,
cat_creatable,
cat_uploadable,
cat_status,
cat_a_subcats + cat_d_subcats AS cat_subcats,
cat_a_subalbs + cat_d_subalbs AS cat_subalbs,
cat_a_images,
cat_a_videos,
p.cat_id AS p_cat_id,
CASE WHEN cat.password_id IS NULL THEN 1 ELSE (SELECT 2
FROM sessions AS s
LEFT JOIN sessions_categories AS sc USING (session_id)
LEFT JOIN passwords AS p USING (cat_id)
WHERE cat.password_id = p.password_id
AND session_token = '857710765d3ccd0f1ad108d87dc6ca2b2f6daf0c'
AND session_expire > '2024-03-26 12:21:43') END AS password_auth,
CASE WHEN cat.cat_id > 1
THEN parent_id
ELSE 0
END AS parent_id,
CASE WHEN cat_filemtime IS NULL
THEN 'category'
ELSE 'album'
END AS cat_type
FROM categories AS cat
LEFT JOIN passwords AS p USING (password_id)
WHERE 1=1 AND cat_status = '1'
AND thumb_id != -1
AND (cat_a_images + cat_a_videos) > 0
ORDER BY LOWER(cat_name) ASC    SUKSESS    ?    0,157 ms
*                        2895,258 ms[/img]
Knut

#8 Utilisation » Album speed » 20-03-2024 17:24:42

Knut
Réponses : 3

I wonder if someone has same experience as I have now.

I have igalerie 3.0.22 with sqlite database. PHP version 8.1.17, SQLite version3.34.1
Database size 28 Mb

The igalereie has about 59 album. 2-3 of them large. One with 5100 pictures, the second large album with about 2500 pictures. All pictures with 1200 pixels, about 6-800 kb each photo. The database has 16100 items.

When I open the album with 5100 photos the response is quick. When I browse to the last photo, it takes 12-13 seconds. For the second large album with 2500 photos browsing to last photo takes 5-6 seconds.
The reponse corresponds with number of photos which make sence I guess.

This behavious is new, I have not noticed this delay before. Since the album has grown gradually over several years, I should have noticed this before.

I have done the maintenance actions in admin area with good reponse without issus. I have done a external check of the database sqlite file without finding problems.

Is this normal or do I have a bug?
Suggestions appreciated.
Knut

#9 Re : Utilisation » Video in slideshow mode » 10-02-2024 21:43:36

It is 2 iGalerie installations on the same server. With iGalerie 3.0.22, in both installations and with  php 8 SQLite 3.37 on thre server.
I  seem to have an issue in one of the iGalerie installations.

#10 Re : Utilisation » Video in slideshow mode » 09-02-2024 08:08:59

An update.
I have tested 2 albums on the 'failing'' server, both 3.022
One is working with video in slideshow, one does not.
I can not see the difference in the to installations. I have also checked the two installations css code customizations to be the same.

#11 Utilisation » Video in slideshow mode » 08-02-2024 22:03:29

Knut
Réponses : 4

I can not get slideshow to work if videos in the album for a server with PHP 8.3.21 and SQLite 3.37.2. I use SQLite as database and iGalerie 3.0.22.  The slideshow stops when loading and are 'blinking' forever.

On a server with PHP 7.4.33 and SQLite 3.39.4 I get no problem.

I have mp4 videos in the albums. They all work fine in 'normal' view on both. Only one video in an album is enough for the slideshow to fail on the 'failing' server.
Any idea appreciated!
Knut

#12 Re : Propositions » JPEG File Interchange Format jfif » 21-12-2023 16:50:38

wow, thanks David.
By the way, I very much liked the 3.0.22 version with slideshow new options.

#13 Propositions » JPEG File Interchange Format jfif » 24-11-2023 17:40:42

Knut
Réponses : 2

Are there any plans to make the iGalerie able to upload .jfif files in the future?
I get more of these type of files now.
Knut

#14 Utilisation » Search in file name/item_path » 22-11-2023 20:46:39

Knut
Réponses : 0

I looks like the search script does not include a search in the file name of the images. In the database it is in item_path in items.
I can not find a way to turn on in the album.
I use key-information in the file name and therefore want to include search for filename.
May be there is a script change possible?
Knut

#15 Re : Utilisation » head.tpl.php » 13-11-2023 19:22:16

Thank you David, this works perfectly.
Very much appreciated.
Knut

#16 Re : Utilisation » head.tpl.php » 13-11-2023 13:06:57

Thank you David,
As far as I can see this works great for album max with 1500 and for mobile menu appear or dissaperar. when I test this the this extermal menu stays on all the time.

My issue is I have a javascript exernal menu which is not album menu. I run this from head.tpl.php and I want this menu to disappear below a screen width value.
Knut

#17 Utilisation » head.tpl.php » 13-11-2023 11:41:21

Knut
Réponses : 4

Hi,
There is a great function in the album to run template/default/custom/head.tpl.php in album 'head' section.
I want to use this file to run the same menu-javascript as in our main website (https://www.varteig-historielag.no/Felles/index.html) incorporated with the album.
And it works well for large screens. But for mobile and below screen.width < 'some pixel value' I want the menu/javascript not to load.

I am not great with php and javascript language so I ask for help.
How to I run head.tpl_.php code so my javascript lines  are omitted/disregarded with screen.width below a set value like 1500 pixler.
I would appreciate input/suggestions from you.

Link to a bakcup album where the javascript menu works for large screens.
https://varteig-historielag.no/VHiGalerie3_/

My current head.tpl.php file in the backup album:
<!DOCTYPE html>
<html lang="nb">

<head>
  <meta charset="utf-8">
 
</head>

<body>
  <div>

<script type="text/javascript" src="https://www.varteig-historielag.no/MilonicH_FloatIGal/milonic_src.js"></script>
<script type="text/javascript" src="https://www.varteig-historielag.no/MilonicH_FloatIGal/mmenudom.js"></script>
<script type="text/javascript" src="https://www.varteig-historielag.no/MilonicH_FloatIGal/menu_data.js"></script>
<SCRIPT language=Javascript src="https://www.varteig-historielag.no/MilonicSiteIndex/mm_siteIndex.js" type=text/javascript></SCRIPT>
<noscript><a href="https://www.varteig-historielag.no/">JavaScript DHTML Menu Powered by Milonic</a></noscript>
<noscript><a href=https://www.varteig-historielag.no/>JavaScript DHTML menu is only visible when JavaScript is enabled</a></noscript>

</div>

</body>

</html>
Knut

#18 Propositions » Download files with album data as metadata in files » 10-11-2023 21:28:50

Knut
Réponses : 0

Any plans to make it possible to download the album files (zip) including the album data 'description', 'keywords', 'copuwright' ...as metadata in the zip files overwriting the metadata in the files?
If the files are without metadata originally, but you added data through the album, the album data get lost during download as far a I understand.
Would be a great album advantage.
Knut

#19 Re : Utilisation » Maintenance of the album » 01-11-2023 10:05:36

I have upgraded the one server with PHP version 7.4.33 to 8.1.24. But I still have the issue with 'check of statistics'. Advice welcomed.

#20 Re : Utilisation » Maintenance of the album » 31-10-2023 21:27:51

I might have found the issue.
I get the problem when I use a server with PHP version 7.4.33 and sqlite 3.7.17
I have not the problem on another server with PHP version 8.2.12 and sqlite 3.37.2
Knut

#21 Utilisation » Maintenance of the album » 31-10-2023 09:28:24

Knut
Réponses : 3

I have an error message when I use 'vèrifier les statistiques' -'Check the statistics' in the album. I can not find any other issue or error message from the system and the album works fine.
When I use 'Nettoyer la base de donnèes' - 'Clean the database' I get no error message.
I have checked the isql.db using database tool SQLite Studio using 'vacuum' and 'integrity' check which indicate no problem.
Anything I can do to find out why the album gives me error message?
Knut

#22 Re : Installation » English language support in iGallerie 3.0.0 » 28-10-2023 10:02:41

Hi wearwolfie
I believe the language subfolder in 'locale' needs to be named en only in small letters not en_GB. At least this is how my album works. You also need a text.php and lang.php changed in this folder. Lang.php can have a more longer text explaining the language. Text.php are all the translations from French.

#23 Re : Propositions » Traduire iGalerie » 26-10-2023 22:00:28

This i very promising, thanks David.
I have over the years made Norwegian and English translation file in parallell. This works fine in most cases, but not all corners of the album. More than 1000 translation lines now.

#24 Re : Installation » upgrade from 3.0.18 to 3.0.19-21 failing » 25-10-2023 12:24:05

I managed to rebuild the sqlite.db file to a database without issues.

I exported the version igalerie 17 file to a new database file using a sql export file.
The sql file was imported to a new database and used to upgrade to version 21 and this worked.
Knut

#25 Re : Installation » upgrade from 3.0.18 to 3.0.19-21 failing » 24-10-2023 10:32:07

Yes I did.
I noticed when I check the copy of the db-file after update to version .21 that there is a new table (Selection) added to the database.
The problem db-file has then only 50 % record available when I browse data in SQLite Studio. And when I do a 'vacuum' command to check the file I get an error saying database diskimage is malformed.
error message
[10:15:45] Error while executing SQL query on database 'sqliteProblem': database disk image is malformed

When I do an integrity check on the running copy of my db (before upgrade) I get this output from SQLite Studio which I may be need to correct.
*** in database main ***
On tree page 10074 cell 3: invalid page number 218103808
On tree page 10043 cell 50: 2nd reference to page 14885
Page 6911 is never used
Page 13319 is never used
There seem to be an issue her. I am not sure how to correct and see the problem in SQLite Studio.


I have even tried DBbrowser for SQLite software and ran the before upgrade db file
Execution finished without errors.
Result: 1 rows returned in 743ms
At line 1:
PRAGMA integrity_check;

and

Execution finished without errors.
Result: 0 rows returned in 956ms
At line 1:
PRAGMA foreign_key_check;

So this software does not find issues in the not upgraded db.

If I run the 'problem db file' on the same software I get
no issues with interity check
but for foreign_key_check I get this
Execution finished with errors.
Result: database disk image is malformed
At line 1:
PRAGMA foreign_key_check;

I data  view mode for table items I get 'loading' or now view of records after line 7310

Thanks for giving me feedback on my problem
Knut

Pied de page des forums

Propulsé par FluxBB