- Issue created by @liquidcms
- π¨π¦Canada liquidcms
looking in git and it seems that the maintainer has already added 8.1 support to an unpublished 1.0-dev version. Might be good if he were to do a release with this (which i guess i could as well).
- Status changed to Fixed
almost 2 years ago 7:49pm 17 April 2023 - Status changed to Needs work
almost 2 years ago 7:57pm 17 April 2023 - π¨π¦Canada liquidcms
hmm.. perhaps this is why the maintainer had not committed this:
Fatal error: Uncaught TypeError: Drupal\entity_clone\Plugin\Derivative\DynamicLocalTasks::__construct(): Argument #2 ($string_translation) must be of type Drupal\Core\StringTranslation\TranslationManager, Drupal\tranc\TrancTranslationManager given, called in E:\www\SSC\myssc\html\modules\contrib\entity_clone\src\Plugin\Derivative\DynamicLocalTasks.php on line 49 and defined in E:\www\SSC\myssc\html\modules\contrib\entity_clone\src\Plugin\Derivative\DynamicLocalTasks.php on line 38
- π¨π¦Canada Charlie ChX Negyesi πCanada
quiet note: you are a maintainer of the project :)
- π¨π¦Canada liquidcms
this small patch removes the issue with realpath; but not sure if this breaks something. wouldnt think it could.
this is against 1.0.1
- π¨π¦Canada Charlie ChX Negyesi πCanada
you could alternatively just stringcast it
- π¨π¦Canada liquidcms
re: #6 - yes, oddly enough i seem to be.
anyway, my patch works for us as far as i know.. but will test more later. I suspect my merging your patch for this and releasing 1.0.2 was not a great idea and this makes latest release broken. I guess i can remove it but you never commented on this so will leave it for now.
- π¨π¦Canada Charlie ChX Negyesi πCanada
Typehinting with a class is always wrong but since there is no single interface for the translation manager and union types only arrived in PHP8, well, here we are -- tranc itself does the same :/ I guess we could extend the core translation manager class for compatibility reasons which should be fine since we are overriding every method.
- π¨π¦Canada joseph.olstad
Patch for entity_clone that appears to solve the issue raised in #5.
- π¨π¦Canada joseph.olstad
Patch 12 is incomplete, I've improved it in patch #14
- π¨π¦Canada joseph.olstad
wow ya lots of gaffes in patch 14
this time try: 16
- π¨π¦Canada joseph.olstad
ok @chx, your patch is better, I will try that.
- Status changed to RTBC
over 1 year ago 5:12pm 23 November 2023 - π¨π¦Canada joseph.olstad
Patch 15 works and is the most reasonable solution, thank you so much @chx
-
chx β
committed e449e7e8 on 1.0.x authored by
Charlie ChX Negyesi β
Issue #3354693 by joseph.olstad, liquidcms, Charlie ChX Negyesi: Not...
-
chx β
committed e449e7e8 on 1.0.x authored by
Charlie ChX Negyesi β
- Status changed to Fixed
over 1 year ago 6:09pm 23 November 2023 - π¨π¦Canada Charlie ChX Negyesi πCanada
Committed #15 and a string cast.
- π¨π¦Canada joseph.olstad
Great work! :) Happy US thanks giving. We had ours in Canada last month in October.
Our summers have longer days so maybe explains why we have thanks giving sooner. Where I'm sitting our longest day with sunrise to sunset is over 17 hours in June/July. Where I grew up about 300 miles further north the nautical day is 24 hours for a few weeks, meaning the sun may be set but there's still enough light to navigate for 24 hours per day without needing a flashlight or lights.
Automatically closed - issue fixed for 2 weeks with no activity.