Friday, 28 February 2020
  7 Replies
  690 Visits
0
Votes
Undo
Hello,

I am using JEvents 3.4.50 on three different sites.
On one of them creating a new event in JEvents shows this error message:

<strong>Es ist ein Fehler aufgetreten!
0 Duplicate entry '434' for key 'PRIMARY'</strong>

Then the event is in the list of all events but the start date shows 1970-01-01 (end date is correct 2020-04-05)

I am not able to delete this event. The following error message is shown:

<strong>Warnung
870 -Es war nicht möglich diesen Event zu löschen</strong>

Can you help please!

Best regards
Kurt
5 years ago
·
#215339
0
Votes
Undo
For some reason it looks as though the auto-increment primary ID for one of your tables is incorrect.

In PhpMyAdmin can you check the following database query

SELECT AUTO_INCREMENT , (SELECT MAX(ev_id) FROM j33jq.onjqe_jevents_vevent) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'j33jq'
AND TABLE_NAME = 'onjqe_jevents_vevent'



SELECT AUTO_INCREMENT , (SELECT MAX(rp_id) FROM j33jq.onjqe_jevents_repetition) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'j33jq'
AND TABLE_NAME = 'onjqe_jevents_repetition'



SELECT AUTO_INCREMENT , (SELECT MAX(rr_id) FROM j33jq.onjqe_jevents_rrule) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'j33jq'
AND TABLE_NAME = 'onjqe_jevents_rrule'



SELECT AUTO_INCREMENT , (SELECT MAX(evdet_id) FROM j33jq.onjqe_jevents_vevdetail) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'j33jq'
AND TABLE_NAME = 'onjqe_jevents_vevdetail'


replace j33jq with your database name and onjqe_ with your joomla table prefix.

In each case the auto_increment value should be higher or equal to the max id field value.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

5 years ago
·
#215346
0
Votes
Undo
These are the queries and the results:


Query:
SELECT AUTO_INCREMENT , (SELECT MAX(ev_id) FROM 129_joomla.j25_jevents_vevent) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = '129_joomla'
AND TABLE_NAME = 'j25_jevents_vevent'

Result:
AUTO_INCREMENT (SELECT MAX(ev_id) FROM 129_joomla.j25_jevents_vevent)
252 251


Query:
SELECT AUTO_INCREMENT , (SELECT MAX(rp_id) FROM 129_joomla.j25_jevents_repetition) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = '129_joomla'
AND TABLE_NAME = 'j25_jevents_repetition'

Result:
AUTO_INCREMENT (SELECT MAX(rp_id) FROM 129_joomla.j25_jevents_repetition)
435 434


Query:
SELECT AUTO_INCREMENT , (SELECT MAX(rr_id) FROM 129_joomla.j25_jevents_rrule) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = '129_joomla'
AND TABLE_NAME = 'j25_jevents_rrule'

Result:
AUTO_INCREMENT (SELECT MAX(rr_id) FROM 129_joomla.j25_jevents_rrule)
252 251


Query:
SELECT AUTO_INCREMENT , (SELECT MAX(evdet_id) FROM 129_joomla.j25_jevents_vevdetail) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = '129_joomla'
AND TABLE_NAME = 'j25_jevents_vevdetail'

Result
AUTO_INCREMENT (SELECT MAX(evdet_id) FROM 129_joomla.j25_jevents_vevdetail)
253 252
5 years ago
·
#215348
0
Votes
Undo
these all look ok,

Try enabling Joomla debug mode which will give you more detail about the error and try creating/editing the event again

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

5 years ago
·
#215390
0
Votes
Undo
Hi together,

in my case is the table #__jevents_repetition not equal i have value on


SELECT AUTO_INCREMENT , (SELECT MAX(rp_id) FROM ###.###_jevents_repetition) FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = '###'
AND TABLE_NAME = '###_jevents_repetition'
201 228


can anybody help me to fix the auto_increment value
5 years ago
·
#215396
0
Votes
Undo
See https://www.mysqltutorial.org/mysql-reset-auto-increment and

ALTER TABLE table_name AUTO_INCREMENT = value;

Set the auto_increment value to 229 in your case

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

5 years ago
·
#215397
0
Votes
Undo
i have set the next correct auto_increment value in the operations tab in phpmyadmin for this specific table
5 years ago
·
#215483
0
Votes
Undo
I hope that resolved your issue?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.