Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getElementRelationsCached() TypeError #21

Closed
howells opened this issue Jun 16, 2022 · 1 comment
Closed

getElementRelationsCached() TypeError #21

howells opened this issue Jun 16, 2022 · 1 comment

Comments

@howells
Copy link

howells commented Jun 16, 2022

Hi - I'm getting lots of errors as per the following:

TypeError: internetztube\elementRelations\services\CacheService::getElementRelationsCached(): Argument #1 ($elementId) must be of type int, null given, called in /srv/app/*******/htdocs/vendor/internetztube/craft-element-relations/src/controllers/ElementRelationsController.php on line 23 and defined in /srv/app/mobkitchen-prod/htdocs/vendor/internetztube/craft-element-relations/src/services/CacheService.php:24
Stack trace:
#0 /srv/app/*******/htdocs/vendor/internetztube/craft-element-relations/src/controllers/ElementRelationsController.php(23):

Any ideas what might cause it, or do you need more details from me?

internetztube added a commit that referenced this issue Jun 16, 2022
…er::actionGetByElementId. `elementId` in is now always an int. (0 = null). #21
@internetztube
Copy link
Owner

Thanks for reporting! Should be fixed with 1.3.7 (Craft 3) and 2.0.0 (Craft 4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants