codefog / contao-events_subscriptions

Contao extension that allows members of your website to subscribe to the events
MIT License
10 stars 5 forks source link

Webside throwing error "event ID ... not exist" #86

Closed Ernestopheles closed 2 years ago

Ernestopheles commented 2 years ago

Calling the homepage I get this error since 1 day: [2022-08-21T19:22:30.161931+02:00] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The event ID "802" does not exist" at .../contao/vendor/codefog/contao-events_subscriptions/src/Codefog/EventsSubscriptions/EventConfig.php line 245 {"exception":"[object] (InvalidArgumentException(code: 0): The event ID \"802\" does not exist at .../contao/vendor/codefog/contao-events_subscriptions/src/Codefog/EventsSubscriptions/EventConfig.php:245)"} [] After refreshing the browser window the homepage is shown correctly.

This repeating error includes an increasing event ID (ID will be inceased by 3 each time). These ervent IDs do not exist in the database.

What I changed: Update to Contao 4.13.8 and moved some events to a different calendar

qzminski commented 2 years ago

Do you use any custom templates in your Contao setup?

Ernestopheles commented 2 years ago

Mate theme

Ernestopheles commented 2 years ago

Thanky for your hint; clicking on "synchronize theme files" in my backend solved the issue.

Ernestopheles commented 2 years ago

Too early being closed, error still existing...

Ernestopheles commented 2 years ago

leaving ical Import unchecked prevents the error, so solution will possibly ly somewhere with ical import

qzminski commented 2 years ago

This error is likely specific to your setup, 3rd party extensions and/or your custom code.

Ernestopheles commented 2 years ago

Well, I said what I changed , above. So I would exclude setup, 3rd party extensions and custom code. The event ID is increased by 3 and there are 3 events being imported - maybe this gives a hint?

Ernestopheles commented 2 years ago

Not happy you closed this

qzminski commented 2 years ago

There is no ical import feature in the extension… or am I missing something?

Kahmoon commented 2 years ago

There is no iCal feature at all in this extension!?

Maybe u are using another calendar module (calndar-extended)?

Ernestopheles commented 2 years ago

see error message, please: contao-events_subscriptions I am using contao-ical-php8-bundle as well

Kahmoon commented 2 years ago

Then maybe this causes the error. Can you temporarly delete this extension (without updating database)? Im using event_subscriptions + oneup/contao-ical-export and its fine.

But there is no ical import feature from contao-event-subscriptions

Ernestopheles commented 2 years ago

Yes, thats my thinking as well, did have other problems caused by them I will try what you said, thanks a lot.

Ernestopheles commented 2 years ago

Having contao-php8-ical-bundle deinstalled the error does not appear any more, as expected.

Ernestopheles commented 2 years ago

Habe oneup/contao-ical-export installiert, aber das funktioniert scheinbar noch nicht, da die DB-Änderung scheinbar nicht durchgeführt wird, da die Drops aus der Deinstallation der anderen extension zuerst abgearbeitet werden müssten, vermutlich. Ausserdem brauche ich auch einen ical import.

Kahmoon commented 2 years ago

Then you have to open an issue an contao-php8-ical-bundle (https://github.com/Craffft/contao-calendar-ical-bundle/issues)

It would be helpfull if you reproduce this error in debug mode to get the stack trace error .

Ernestopheles commented 2 years ago

Then you have to open an issue an contao-php8-ical-bundle (https://github.com/Craffft/contao-calendar-ical-bundle/issues) This is unfortunately not possible...

It would be helpfull if you reproduce this error in debug mode to get the stack trace error . You are right, sorry, I decided to leave the ical extension behind, too late...