Comments (4)
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 <piwigo-install-path>/include/dblayer/functions_mysqli.inc.php:139 Stack trace: #0 <piwigo-install-path>/include/dblayer/functions_mysqli.inc.php(139): mysqli->query() #1 <piwigo-install-path>/plugins/MugShot/include/helpers.php(84): pwg_query() #2 <piwigo-install-path>/plugins/MugShot/maintain.inc.php(40): create_facetag_table() #3 <piwigo-install-path>/plugins/MugShot/maintain.inc.php(65): MugShot_maintain->install() #4 <piwigo-install-path>/admin/include/plugins.class.php(202): MugShot_maintain->activate() #5 <piwigo-install-path>/include/ws_functions/pwg.extensions.php(76): plugins->perform_action() #6 <piwigo-install-path>/include/ws_core.inc.php(600): ws_plugins_performAction() #7 <piwigo-install-path>/include/ws_protocols/rest_handler.php(41): PwgServer->invoke() #8 <piwigo-install-path>/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest() #9 <piwigo-install-path>/ws.php(22): PwgServer->run() #10 {main} thrown in <piwigo-install-path>/include/dblayer/functions_mysqli.inc.php on line 139, referer: http://<ipaddress>/photos/admin.php?page=plugins&plugin=MugShot&pwg_token=1ecf01c9207585c1d9616d971224868f&action=activate&filter=deactivated
from mugshot.
Update:
- When the MugShot extension is tried to be activated, it does an insert operation on the CONFIG_TABLE
- But the installation of the piwigo already has an entry of MugShot in the CONFIG_TABLE and the sql insert operation fails resulting in the failure to activate the extension
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
from mugshot.
Thanks @jresse ..
Use this to delete the entry manually.
DELETE FROM piwigo_config Where param = 'MugShot';
from 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");';
from mugshot.
Related Issues (20)
- update to support piwigo 11 HOT 4
- Less opinionated button text HOT 1
- uninstalling plugin removes training images
- when the plugin is installed automatically create the taggers group HOT 1
- make it so tagging feature can be "always on" HOT 1
- Upgraded from MugShot 1.x to 2.0.2 and Piwigo 10 (minor issues) HOT 3
- Browser Autocomplete overlaps with MugShot's Autocomplete HOT 6
- Add support for Piwigo 12 HOT 1
- Screen elements jump up when activating tagging
- The SAVE/DONE button prevents selecting faces in the top/left corner HOT 2
- Deleting a mugshot from an image breaks other images
- I'm creating this issue to discuss impending facial detection and identification support HOT 1
- Error in main.inc.php
- v2.0.3 Fails to Load in Piwigo v12 (stays at v2.0.2) HOT 2
- error syntax HOT 1
- Allow tagging the same person multiple times
- MugShot Plugin Errror HOT 4
- PHP Fatal error when deactivating/reactivating plugin HOT 2
- Needs SUPER or 'create trigger' not avail on some vendors (e.g. Dreamhost Shared)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mugshot.