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 Re : Bugs » Operation failed because an error occurred » 16-08-2025 00:13:40

>Which iGalerie version do you have?

Latest version.

>do you have the possibility to use MySQL instead?

Yes. I've never done a SQLite-to-MySQL conversion before, but I'll give it a try when I get time.

Thanks smile

#2 Re : Bugs » Operation failed because an error occurred » 21-07-2025 10:48:14

I cannot do what you do: create and then delete a user from the admin backoffice. Trying to delete the user results in the error, with nothing logged as an incident.

I was suspecting it may be because the server is running PHP 8.3. I dropped it back to PHP 7.4 but no change.

#3 Re : Bugs » Operation failed because an error occurred » 19-07-2025 17:04:56

Forgot to mention, the " Operation failed because an error occurred"  referenced when trying to delete a user does not produce an Incident in the admin interface.

#4 Re : Bugs » Operation failed because an error occurred » 18-07-2025 01:30:55

Thanks, but it seems to be more than that. For example, if I use admin to reset the password of a user, and then log out and try to log in using that name, manually entering the name and password (not replying on autofil), it will say the username/password it not correct. Is it trying to compare my login with a cookie instead of server-based validation?

Also, from within the admin backend, I cannot delete users, replying with "Operation failed because an error occurred". Corrupted SQLitte db file?  IDK.  My plan is to migrate this to MariaDB or PostGreSQL (if supported) but I would like to understand what is happening here first.

I use Chromium on a computer running NixOS Plasma desktop, but I don't think that should cause this.

Many thanks for creating and supporting this project. FOSS dev in galleries is not what it used to be. Most are very out of date, no longer actively supported, or will not do what I need: allow users to create accounts and their own albums where they can upload, edit, and delete images. Support for videos is also a nice bonus.

#5 Bugs » Operation failed because an error occurred » 16-07-2025 20:00:58

Peter Martin
Réponses : 8

Above error whenever I try to activate / deactivate / delete users. Also does not seem to be remembering password changes, displaying "Incorrect information" when trying to login with a newly changed password. 

https://www.woodcentral.com/gallery/


Server
Server type: LiteSpeed
Operating System: Linux 4.18.0-477.10.1.lve.el8.x86_64 x86_64
Server time: 2025-07-16 19:59:14 +02:00 (Europe/Luxembourg)
Database
Type: SQLite
Version: 3.45.2
Database size : 1.46 MB
PHP
Version: 8.3.20
Interface: litespeed
GD
GD Version : 2.3.3
FreeType Support : activated
AVIF Support : activated
GIF Read Support : activated
GIF Create Support : activated
JPEG Support : activated
PNG Support : activated
WebP Support : activated
PHP directives
allow_url_fopen : On
disable_classes : /
disable_functions : /
display_errors : Off
file_uploads : On
max_execution_time : 60
max_input_vars : 4000
memory_limit : 512M
open_basedir : /
post_max_size : 64M
upload_max_filesize : 64M
zlib.output_compression : Off
PHP extensions
curl : loaded
exif : loaded
fileinfo : loaded
gd : loaded
iconv : loaded
mbstring : loaded
pcre : loaded
PDO : loaded
pdo_mysql : loaded
pdo_pgsql : not loaded
pdo_sqlite : loaded
SimpleXML : loaded
zip : loaded
zlib : loaded
PHP functions
chmod : activated
get_loaded_extensions : activated
fsockopen : activated
ini_get : activated
ini_set : activated
ignore_user_abort : activated
imagealphablending : activated
imagecolorallocatealpha : activated
imagecolortransparent : activated
imagecreatefromavif : activated
imagecreatefromgif : activated
imagecreatefromjpeg : activated
imagecreatefrompng : activated
imagecreatefromwebp : activated
imagesavealpha : activated
imagetypes : activated
mail : activated
mime_content_type : activated
php_uname : activated
rmdir : activated
set_time_limit : activated

#6 Re : Bugs » Modals do not work on my v3.0.23 install » 30-03-2024 22:41:01

Thanks David. It was from the Cloudflare CDN and solved by turning off its Rocket Loader feature.

Still having issues, apparently related to new CSP. Is this the right syntax to use in config.php?

define('CONF_HTTP_CSP_HOSTS', 'https://addtoany.com/ https://static.addtoany.com/ https://www.abol.us/ https://cdnjs.cloudflare.com/ https://www.cloudflare.com/ https://www.woodcentral.com/');

This relates to the fixed icons in the lower-right corner.

https://www.woodcentral.com/igalerie/

Added nonce to the scripts that are located in the page footer (see source code view). All now working except the green BACK icon and red CLOSE icon, and I cannot figure out why. My JavaScript skills are average at best, and I am just now learning how Content Security Policies work.

No incidents reported.

NU HTML checker
https://validator.w3.org/nu/?doc=https: … galerie%2F

#7 Bugs » Modals do not work on my v3.0.23 install » 28-03-2024 14:26:50

Peter Martin
Réponses : 3

https://www.dissens.us/i/ <== v3.0.23 (does not work, no incidences reported)
https://www.woodcentral.com/gallery/ <== v3.0.22 (work OK)

Clicking any link that uses a modal (login, edit, slideshow, etc.) does not work. In another thread, you mentioned v3.0.23 uses Content Security Policies. Where are the CSP policies defined? I suspect the JavaScript is not loading.

#8 Re : Utilisation » javascript in head.tpl.php » 27-03-2024 22:51:42

Might this be related to why the slideshow stopped working after I upgraded? Ditto for the modals (login, edit icon, etc.).

#9 Bugs » diaporama.css » 26-03-2024 09:30:07

Peter Martin
Réponses : 0

Not a bug but a suggestion, please move to more appropriate forum if needed. The slideshow PLAY and STOP do not display correctly, as I have integrated iGalerie into a platform using a CSS framework (W3-CSS) which apparently interferes and causes the text to not line up with the background circle.

This modification fixes this by applying flexbox properties (justify-content and align-items) to horizontally and vertically center the content inside the circle.

/* Message du mode automatique. */
#diaporama_auto_message {
  position: absolute;
  top: 53px;
  left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  padding: 10px;
  font-size: 200%;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #2E2E2E;
  text-align: center;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  box-shadow: 0 0 20px #2E2E2E;
}

Pied de page des forums

Propulsé par FluxBB