Announcement

#1 2023-12-19 19:10:37

OpenPicture
Member
2023-12-19
44

[Plugin] user delete photo

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

 

#2 2023-12-20 15:52:51

OpenPicture
Member
2023-12-19
44

Re: [Plugin] user delete photo

Does anyone else use this plugin?

Offline

 

#3 2023-12-21 06:59:48

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7208

Re: [Plugin] user delete photo

Hi,

I try to see today


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#4 2023-12-21 11:14:57

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7208

Re: [Plugin] user delete photo

Hi :-)

I'm update plugin


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#5 2023-12-21 14:59:43

OpenPicture
Member
2023-12-19
44

Re: [Plugin] user delete photo

Hi ddtddt,

The user delete photo plugin now works as it should.

Thank you very much for the update.

Offline

 

#6 2024-01-20 20:42:35

dadsun
Member
2024-01-20
9

Re: [Plugin] user delete photo

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

 

#7 2024-01-21 02:58:01

erAck
Only trying to help
2015-09-06
2043

Re: [Plugin] user delete photo

Or the plugin doesn't work with PHP 8.2, try with 8.1.


Running Piwigo at https://erack.net/gallery/

Offline

 

#8 2024-01-21 03:54:04

dadsun
Member
2024-01-20
9

Re: [Plugin] user delete photo

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

 

#9 2024-01-21 07:28:46

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7208

Re: [Plugin] user delete photo

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?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#10 2024-01-21 17:39:41

dadsun
Member
2024-01-20
9

Re: [Plugin] user delete photo

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-&gt;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-&gt;install()
#3 /var/www/html/piwigo/admin/include/plugins.class.php(191): plugins-&gt;perform_action()
#4 /var/www/html/piwigo/include/ws_functions/pwg.extensions.php(76): plugins-&gt;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-&gt;invoke()
#7 /var/www/html/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler-&gt;handleRequest()
#8 /var/www/html/piwigo/ws.php(22): PwgServer-&gt;run()
#9 {main}
  thrown in <b>/var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php</b> on line <b>132</b><br />

Offline

 

#11 2024-01-21 18:02:28

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7208

Re: [Plugin] user delete photo

Hi :-)
in table *.plugins delete line user delete photo


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#12 2024-01-21 18:32:52

dadsun
Member
2024-01-20
9

Re: [Plugin] user delete photo

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

 

#13 2024-01-21 20:42:23

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7208

Re: [Plugin] user delete photo

Hi :-)

Connect to database no a file


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#14 2024-01-21 23:07:34

dadsun
Member
2024-01-20
9

Re: [Plugin] user delete photo

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

 

#15 2024-01-21 23:39:33

dadsun
Member
2024-01-20
9

Re: [Plugin] user delete photo

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-&gt;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-&gt;install()
#3 /var/www/html/piwigo/admin/include/plugins.class.php(191): plugins-&gt;perform_action()
#4 /var/www/html/piwigo/include/ws_functions/pwg.extensions.php(76): plugins-&gt;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-&gt;invoke()
#7 /var/www/html/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler-&gt;handleRequest()
#8 /var/www/html/piwigo/ws.php(22): PwgServer-&gt;run()
#9 {main}
  thrown in <b>/var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php</b> on line <b>132</b><br />

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact