Unable to create registration type in Drupal 9 due to deprecated QueryFactory code.
Attached patch allows creation of registration type. No functional tests performed.
Please review
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3157334-4.patch | 12.29 KB | andypost |
| #4 | interdiff.txt | 9.53 KB | andypost |
Comments
Comment #2
norwegian.blue commentedComment #3
suresh prabhu parkala commentedPlease review!
Comment #4
andypostProper patch based on #3135740-2: Drupal 9: config_export definition missing in annotation credits to @nzpling (no reason to mix annotations and EM=>ETM changes
It could use follow-up to clean-up doc-blocks more but as this files touched already I did fix
wrong rename
better to remove old constructor - fixed with this patch
Comment #5
mandclu commentedI experience a fatal error about the use of the missing entity.manager in Drupal 9 after installing RNG, and the patch in #4 resolved it for me.
Comment #6
chrisla commentedHad same issue with errors after install on Drupal 9 site using dev branch:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "access_check.rng.event_registrations_allowed" has a dependency on a non-existent service "entity.manager". in Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() (line 86 of /var/www/html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php).Patch in #4 made that error go away.
Now get:
Drupal\Core\Config\Schema\SchemaIncompleteException: Entity type 'Drupal\rng\Entity\RegistrantType' is missing 'config_export' definition in its annotation in Drupal\Core\Config\Entity\ConfigEntityBase->toArray() (line 252 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).Comment #7
chrisla commentedLooks like there is a patch here for the config issue, in case anyone finds this thread and not other one -- https://www.drupal.org/project/rng/issues/3135740
Comment #8
chrisla commentedNeeded these patches as well to get a D9 installation working to fix regarding error
Recoverable fatal error: Object of class Drupal\Core\Link could not be converted to string in Drupal\Core\Database\Statement->execute() (line 59 of /var/www/CMS/drupal8/web/core/lib/Drupal/Core/Database/Statement.php)https://www.drupal.org/project/rng/issues/3160117
https://www.drupal.org/project/rng/issues/3160120
Comment #9
anybodyAny plans for a new Drupal 9 compatible release @ new maintainers?
Comment #11
megachrizCommitted #4 with a few changes: replaced variable names
$entity_managerwith$entity_type_manager.Comment #12
anybodyWhao, cool to see you here @MegaChriz!
Thanks for the fixes!
We finally abandoned this module in our projects as it's still a very important tool for Drupal, but the current implementation caused a lot of headaches and problems in the past... Looking forward to what will happen here as you're on it now!
The project seemed pretty dead :)
Comment #13
megachrizHi @Anybody
I'm using this project on a client site (with custom modules depending on it), so trying to move it to D9 looks like to taking a much lesser amount of time than trying to replace RNG completely with something else.
But the Feeds project does remain my main focus. I suppose I cannot fix all the (major) RNG issues in the long run.
This week my goal is to get all tests of RNG passing, after that I can hopefully see where things are still broken then on the client site.
Comment #14
anybody@MegaChriz, thank you for your reply. Well yes, I guess then you're running into similar problems as we did... ;) Lot of frustration... :P
Also see this issue #3109592: Roadmap for 3.0.0 release.
I very much appreciate your time on this project even though we're not using it anymore. The Drupal community owes you a great debt of gratitude for all that.
Comment #15
megachriz@Anybody
Ow, that sounds like this going to be tougher than I had imagined. :( I had hoped it was mainly deprecation warnings and converting tests from simpletest to phpunit - and then maybe a few remaining small bugs to fix.
Well, I'll see how it goes this week (fingers crossed).
Comment #16
anybody@MegaChriz, whao you made some progress!!
I was just in a project where we used RNG before and found the following issues which were never merged, but required for us and are still on GitHub. Just if they're relevant in your case: