Uncaught mysqli_sql_exception (UPLOAD WITH DIGIKAM) #1533

Open
opened 2026-10-05 00:47:26 +02:00 by adam · 0 comments
Owner

Piwigo 13.0.0
Linux (debian)
PHP: 8.1.11
MySQL: 10.5.15-MariaDB-0

php error when uploading a photo with digikam when I have a special character (here the apostrophe) in the title of my photo : "Beauté d'automne (TEST)"
I specify that with the web form there is no problem.

[Fri Oct 14 09:23:00.827306 2022] [php:error] [pid 710552] [client CLIENT_IP:60431] PHP Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'automne (TEST)',\n date_creation= '2022-10-14 07:53:27'\n WHEREid = '...' at line 2 in /PIWIGO_DIR/include/dblayer/functions_mysqli.inc.php:132\nStack trace:\n#0 /PIWIGO_DIR/include/dblayer/functions_mysqli.inc.php(132): mysqli->query()\n#1 /PIWIGO_DIR/include/dblayer/functions_mysqli.inc.php(478): pwg_query()\n#2 /PIWIGO_DIR/include/ws_functions/pwg.images.php(1102): single_update()\n#3 /PIWIGO_DIR/include/ws_core.inc.php(600): ws_images_add()\n#4 /PIWIGO_DIR/include/ws_protocols/rest_handler.php(41): PwgServer->invoke()\n#5 /PIWIGO_DIR/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest()\n#6 /PIWIGO_DIR/ws.php(22): PwgServer->run()\n#7 {main}\n thrown in /PIWIGO_DIR/include/dblayer/functions_mysqli.inc.php on line 132

Here is an example of a photo that I can't upload : https://share.heraut.eu/f.php?h=1gGeSHGY&d=1:

Thank you and have a nice day.

Piwigo 13.0.0 Linux (debian) PHP: 8.1.11 MySQL: 10.5.15-MariaDB-0 php error when uploading a photo with digikam when I have a special character (here the apostrophe) in the title of my photo : "Beauté d'automne (TEST)" I specify that with the web form there is no problem. `[Fri Oct 14 09:23:00.827306 2022] [php:error] [pid 710552] [client CLIENT_IP:60431] PHP Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'automne (TEST)',\n `date_creation` = '2022-10-14 07:53:27'\n WHERE `id` = '...' at line 2 in /PIWIGO_DIR/include/dblayer/functions_mysqli.inc.php:132\nStack trace:\n#0 /PIWIGO_DIR/include/dblayer/functions_mysqli.inc.php(132): mysqli->query()\n#1 /PIWIGO_DIR/include/dblayer/functions_mysqli.inc.php(478): pwg_query()\n#2 /PIWIGO_DIR/include/ws_functions/pwg.images.php(1102): single_update()\n#3 /PIWIGO_DIR/include/ws_core.inc.php(600): ws_images_add()\n#4 /PIWIGO_DIR/include/ws_protocols/rest_handler.php(41): PwgServer->invoke()\n#5 /PIWIGO_DIR/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest()\n#6 /PIWIGO_DIR/ws.php(22): PwgServer->run()\n#7 {main}\n thrown in /PIWIGO_DIR/include/dblayer/functions_mysqli.inc.php on line 132` Here is an example of a photo that I can't upload : https://share.heraut.eu/f.php?h=1gGeSHGY&d=1: Thank you and have a nice day. <!-- github-sync-id:1408905743 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1533