database connection error with PHP 5.6 #356

Closed
opened 2026-10-04 23:53:43 +02:00 by adam · 1 comment
Owner

http://piwigo.org/forum/viewtopic.php?id=25729

functions_mysqli.inc.php, line 65

$dbname = null;

must be changed to :

$dbname = '';

... or else we get a fatal error "Warning: mysqli::mysqli(): (42000/1102): Incorrect database name '0Oõ»áÈ ' in /home/magicphorn/www/piwigo/include/dblayer/functions_mysqli.inc.php on line 68"

http://piwigo.org/forum/viewtopic.php?id=25729 functions_mysqli.inc.php, line 65 $dbname = null; must be changed to : $dbname = ''; ... or else we get a fatal error "Warning: mysqli::mysqli(): (42000/1102): Incorrect database name '0Oõ»áÈ ' in /home/magicphorn/www/piwigo/include/dblayer/functions_mysqli.inc.php on line 68" <!-- github-sync-id:110399375 -->
adam closed this issue 2026-10-04 23:53:43 +02:00
Author
Owner

It seems that some PHP 5.6.8 and 5.6.6 don't have the bug.

It seems that some PHP 5.6.8 and 5.6.6 don't have the bug. <!-- github-comment-id:148067066 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#356