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

Module User event subscriptions: getSchemaOrgData is not set or not a callable #93

Closed rustykowski closed 1 year ago

rustykowski commented 1 year ago

PHP 8.1 Contao 4.13 contao-events_subscriptions: 2.13. – 2.16.

When I use the mentioned module, I get a critical error if the logged in user has subscribed to an event.

var/logs:

request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "getSchemaOrgData is not set or not a callable" at /.../vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php line 174

Additionally, I have a warning in debug mode regardless of whether I am subscribed to an event:

image
rustykowski commented 1 year ago

The issue is new since I upgraded from PHP 7.4 and Contao 4.9.

qzminski commented 1 year ago

Please update to 2.16.3 and it should fix the main problem. The PHP warnings on the screenshot may happen though, as I didn't have time yet to check all the warnings.

rustykowski commented 1 year ago

The problem is solved. Crazy how fast you fixed it! Thanks a lot!