Versioning issue causes crash 3.2.4 & 3.2.5

Please report bugs here!

Moderator: Thorsten

Post Reply
Andy C
Posts: 1
Joined: Fri Feb 09, 2024 12:57 pm

Versioning issue causes crash 3.2.4 & 3.2.5

Post by Andy C »

Hi, my first post here.
I have FAQ versioning turned on, currently 3.2.5, although same error in previous version.
If I edit a FAQ and select a previous version, then save the FAQ, I get the error below.
Video of the error https://app.screencast.com/vn4pZPDWIRBcH
Error -
# **phpMyFAQ Fatal error**
Uncaught exception: 'mysqli_sql_exception'
Message: 'Duplicate entry '2-en-1001-16' for key 'PRIMARY''
Stack trace:
#0 /home/sites/31b/b/b9a5461387/public_html/documents/src/phpMyFAQ/Database/Mysqli.php(308): mysqli->query('\n IN...')
#1 /home/sites/31b/b/b9a5461387/public_html/documents/src/phpMyFAQ/Revision.php(55): phpMyFAQ\Database\Mysqli->query('\n IN...')
#2 /home/sites/31b/b/b9a5461387/public_html/documents/admin/record.save.php(119): phpMyFAQ\Revision->create(2, 'en')
#3 /home/sites/31b/b/b9a5461387/public_html/documents/admin/index.php(358): require('/home/sites/31b...')
#4 {main}
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Versioning issue causes crash 3.2.4 & 3.2.5

Post by Thorsten »

Hi,

thanks, I just fixed it: https://github.com/thorsten/phpMyFAQ/issues/2843

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply