Open Samurai336 opened 2 years ago
I can't help with a solution, but would like to add a plea for this to be fixed as I don't want to have to revert to Webtrees 2.0.
+1 for a possible fix
I would like to plea as well as this would be really good so not to have to revert to Webtrees 2.0. I'm an engineer but have no familiarity with php unfortunately...
would also like to use plugin in wt 2.1
Latest version working in Webtrees 2.16. Issue can be closed.
https://github.com/PeWu/topola-webtrees/blob/7b5badc54516478c8a922669b1e7df75d25ffc08/src/Module.php#L237
This function was marked for deprecation in the main project two years ago.
It looks like it should be replaced with the
export
function in theGedcomExportService
class inapp/Services/GedcomExportService.php
of webtrees.I have not done any php nor am I super familiar with the webtrees code base so I'm not sure entirely sure how to test this fix myself, or I would of tried it first.
below is the stack trace that I used to come to the above conclusion.
<b>Class 'Fisharebest\Webtrees\Functions\FunctionsExport' not found …/modules_v4/topola/src/Module.php:237</b> #0 …/app/Http/RequestHandlers/ModuleAction.php(85): LilaElephant\Webtrees\Topola\Module->getGedcomAction() #1 …/app/Http/Middleware/RequestHandler.php(54): Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction->handle() #2 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RequestHandler->process() #3 …/app/Module/HitCountFooterModule.php(154): Middleland\Dispatcher->handle() #4 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Module\HitCountFooterModule->process() #5 …/app/Http/Middleware/CheckCsrf.php(76): Middleland\Dispatcher->handle() #6 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process() #7 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #8 …/app/Webtrees.php(265): Middleland\Dispatcher->dispatch() #9 …/app/Http/Middleware/Router.php(153): Fisharebest\Webtrees\Webtrees::dispatch() #10 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process() #11 …/app/Http/Middleware/BootModules.php(60): Middleland\Dispatcher->handle() #12 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process() #13 …/app/Http/Middleware/RegisterGedcomTags.php(54): Middleland\Dispatcher->handle() #14 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RegisterGedcomTags->process() #15 …/app/Http/Middleware/LoadRoutes.php(75): Middleland\Dispatcher->handle() #16 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process() #17 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle() #18 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware\{closure}() #19 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction() #20 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process() #21 …/app/Http/Middleware/DoHousekeeping.php(73): Middleland\Dispatcher->handle() #22 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process() #23 …/app/Http/Middleware/UseTheme.php(69): Middleland\Dispatcher->handle() #24 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process() #25 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle() #26 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process() #27 …/app/Http/Middleware/UseLanguage.php(71): Middleland\Dispatcher->handle() #28 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLanguage->process() #29 …/app/Http/Middleware/UseSession.php(78): Middleland\Dispatcher->handle() #30 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process() #31 …/app/Http/Middleware/UpdateDatabaseSchema.php(57): Middleland\Dispatcher->handle() #32 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process() #33 …/app/Http/Middleware/UseDatabase.php(118): Middleland\Dispatcher->handle() #34 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process() #35 …/app/Http/Middleware/BadBotBlocker.php(233): Middleland\Dispatcher->handle() #36 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BadBotBlocker->process() #37 …/app/Http/Middleware/CompressResponse.php(73): Middleland\Dispatcher->handle() #38 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CompressResponse->process() #39 …/app/Http/Middleware/ContentLength.php(40): Middleland\Dispatcher->handle() #40 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ContentLength->process() #41 …/vendor/middlewares/client-ip/src/ClientIp.php(65): Middleland\Dispatcher->handle() #42 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process() #43 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process() #44 …/app/Http/Middleware/HandleExceptions.php(90): Middleland\Dispatcher->handle() #45 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process() #46 …/app/Http/Middleware/BaseUrl.php(78): Middleland\Dispatcher->handle() #47 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process() #48 …/app/Http/Middleware/ReadConfigIni.php(68): Middleland\Dispatcher->handle() #49 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process() #50 …/app/Http/Middleware/SecurityHeaders.php(48): Middleland\Dispatcher->handle() #51 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\SecurityHeaders->process() #52 …/app/Http/Middleware/EmitResponse.php(57): Middleland\Dispatcher->handle() #53 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process() #54 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle() #55 …/app/Webtrees.php(265): Middleland\Dispatcher->dispatch() #56 …/app/Webtrees.php(252): Fisharebest\Webtrees\Webtrees::dispatch() #57 …/index.php(51): Fisharebest\Webtrees\Webtrees->httpRequest() #58 {main}