You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently composer install gets the latest version of elemental for any version of v5 framework "silverstripe/framework": "^5", which creates issues if you are still running an older version of framework e.g. 5.0.0.
I only worked out after reading the release info that as I'm currently working on a v5.0.0 site, I should be using v5.0.4 of elemental. It's a straightforward fix as a Developer, however composer should really handle these dependancies so I don't have to think about it :)
How to reproduce
Install SIlverstripe 5.0.0 with elemental
Search in the CMS for a word that you know exists on a page
Error appears saying:
[Emergency] Uncaught BadMethodCallException: Object->__call(): the method 'eagerLoad' does not exist on 'SilverStripe\ORM\DataList'
GET /admin/pages?q%5BFilterClass%5D=DNADesign%5CElemental%5CControllers%5CElementSiteTreeFilterSearch&q%5BTerm%5D=test
Line 57 in /var/www/html/vendor/silverstripe/framework/src/Core/CustomMethods.php
Looks like #1069 was introduced, which means you need to be running v5.1 of the framework for this to not error.
Possible Solution
Tag elemental 5.0.* to framework v5.0.*
Recommend a review of elemental 5.1.* and 5.2.* to confirm if tagging to the appropriate framework version is necessary
Review ongoing tagging process so there is a consistent approach for the next tagged versions of elemental
Additional Context
No response
Validations
Check that there isn't already an issue that reports the same bug
Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)
Acceptance criteria
The dependency on dnadesign/silverstripe-elemental for silverstripe/framework is bumped to the lowest version that doesn't cause an error (only affects next minor release of this module)
Thanks for reporting this - we try to keep on top of those sorts of changes but looks like we dropped the ball on that one.
We won't be overriding existing tags, but we'll bump the dependency for the next minor release to help mitigate this somewhat.
Module version(s) affected
5.2.1
Description
Currently composer install gets the latest version of elemental for any version of v5 framework
"silverstripe/framework": "^5",
which creates issues if you are still running an older version of framework e.g. 5.0.0.I only worked out after reading the release info that as I'm currently working on a v5.0.0 site, I should be using v5.0.4 of elemental. It's a straightforward fix as a Developer, however composer should really handle these dependancies so I don't have to think about it :)
How to reproduce
click to see full error and stack trace
Looks like #1069 was introduced, which means you need to be running v5.1 of the framework for this to not error.
Possible Solution
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)Acceptance criteria
dnadesign/silverstripe-elemental
forsilverstripe/framework
is bumped to the lowest version that doesn't cause an error (only affects next minor release of this module)PR
The text was updated successfully, but these errors were encountered: