Open MarioOsswald opened 1 year ago
Even i have the same error
piwigo: 13.7.0 Ubuntu: 22.04.2 LTS PHP 8.1.2-1ubuntu2.11
Adding below error from the apache error.log file: modified error log to hide local system info
`PHP Fatal error: Uncaught mysqli_sql_exception: Duplicate entry 'MugShot' for key 'PRIMARY' in
thrown in
Update:
I was able to get the extension activated by below:
WA: manually delete the MugShot entry from the piwigo_config
table of the piwigo_db
Thanks @jresse ..
Use this to delete the entry manually. DELETE FROM piwigo_config Where param = 'MugShot';
Check line 82 of the file plugins/MugShot/include/helpers.php
If it reads
$configQuery = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("MugShot","","MugShot configuration values");';
Change to
$configQuery = 'REPLACE INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("MugShot","","MugShot configuration values");';
Fresh installation of piwigo 13.8.0 fails to activate MugShot. When I add a new plugin / search MugShot, piwigo offers to add version 2.0.3 from site https://de.piwigo.org/ext/extension_view.php?eid=910
Once added (message - successfully installed), it displays version 2.0.2 and appears on the list of available updates 2.0.2 -> 2.0.3. I updated (successfully), but it remains on version 2.0.2 an re-appears on the list.
I've found advice to fix the version number manually in piwigo/plugins/MugShot/main.inc.php (was still 2.0.2 there). OK so far, the updates available loop disapperared.
But I can't activate the MugShot plugin even with the correct version number. While trying, an error message appears with no further details.
Piwigo 13.8.0 Ubuntu 22.04 PHP: 8.1.21