Hello,
In a previous post I stated the "user delete photo" as activated and without PHP error after updating from Piwigo 13.8 to 14.0.
I deactivated it now, because the plugin "user delete photo" button is visible even if no user is logged in.
All I hope is that I am not the only one here getting all those errors with Piwigo 14.0.
Do you see these errors, too?
Offline
Does anyone else use this plugin?
Offline
Hi,
I try to see today
Offline
Hi :-)
I'm update plugin
Offline
Hi ddtddt,
The user delete photo plugin now works as it should.
Thank you very much for the update.
Offline
User Delete photo v 14.0.a no longer works after I upgraded to Piwigo 14.1.0.
I'm using php 8.2.7.
I can download it but when I try to acitivate it, I get this message ->>
"an error occurred".
I tried manual installation as well with the same error message.
Looks like Piwigo 14.1.0 broke it.
Offline
Or the plugin doesn't work with PHP 8.2, try with 8.1.
Offline
No, it doesn't work on my other installation that uses php 7.4. It stopped working after I installed Piwigo 14.1.0. It worked with 14.0.
Offline
Hi :-)
with
Piwigo 14.1.0
PHP: 8.3.0 (Show info) [2024-01-21 06:27:14]
plugin user delete photo works
Do you have an error in the browser console?
Offline
Yes, these is a fatal error.
<br />
<b>Fatal error</b>: Uncaught mysqli_sql_exception: Duplicate entry 'udp' for key 'PRIMARY' in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php:132
Stack trace:
#0 /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php(132): mysqli->query()
#1 /var/www/html/piwigo/plugins/user_delete_photo/maintain.class.php(29): pwg_query()
#2 /var/www/html/piwigo/admin/include/plugins.class.php(139): user_delete_photo_maintain->install()
#3 /var/www/html/piwigo/admin/include/plugins.class.php(191): plugins->perform_action()
#4 /var/www/html/piwigo/include/ws_functions/pwg.extensions.php(76): plugins->perform_action()
#5 /var/www/html/piwigo/include/ws_core.inc.php(600): ws_plugins_performAction()
#6 /var/www/html/piwigo/include/ws_protocols/rest_handler.php(41): PwgServer->invoke()
#7 /var/www/html/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest()
#8 /var/www/html/piwigo/ws.php(22): PwgServer->run()
#9 {main}
thrown in <b>/var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php</b> on line <b>132</b><br />
Offline
Hi :-)
in table *.plugins delete line user delete photo
Offline
Excuse my lack of skills with Piwigo, but exaclty where is that table located.
I went into the Piwigo plugins directory and deleted user_delete_photo, reinstalled and tried to reactivate it again resulting with the same error message.
Obviously, I'm not in the right directory.
Is that table in the mysql folder or the Piwigo directory?
Offline
Hi :-)
Connect to database no a file
Offline
Will do that, which is what I thought after browsing through the Piwigo, and mysql directories.
Thanks again for pointing me in the correct direction in fixing this issue.
Roger
Offline
The user delete photo plugin is not listed in the database plugins using the command
Select * from piwigo_plugins;
The command correctly shows all of the the current activated and working plugings that I have installed.
When I try to reinstall user_delete_photo, I continue to get the same error message "an error occurred".
<b>Fatal error</b>: Uncaught mysqli_sql_exception: Duplicate entry 'udp' for key 'PRIMARY' in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php:132
Stack trace:
#0 /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php(132): mysqli->query()
#1 /var/www/html/piwigo/plugins/user_delete_photo/maintain.class.php(29): pwg_query()
#2 /var/www/html/piwigo/admin/include/plugins.class.php(139): user_delete_photo_maintain->install()
#3 /var/www/html/piwigo/admin/include/plugins.class.php(191): plugins->perform_action()
#4 /var/www/html/piwigo/include/ws_functions/pwg.extensions.php(76): plugins->perform_action()
#5 /var/www/html/piwigo/include/ws_core.inc.php(600): ws_plugins_performAction()
#6 /var/www/html/piwigo/include/ws_protocols/rest_handler.php(41): PwgServer->invoke()
#7 /var/www/html/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest()
#8 /var/www/html/piwigo/ws.php(22): PwgServer->run()
#9 {main}
thrown in <b>/var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php</b> on line <b>132</b><br />
Offline