For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1
  • 2

TOPIC: How to Cancel Home Page Redirection?

How to Cancel Home Page Redirection? 3 weeks 2 days ago #1

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
When I visited dev.webtrees.net/demo-dev/
There will be a 302 redirect to
dev.webtrees.net/demo-dev/tree/demo/

How can I cancel this 302 redirect?
When I visited dev.webtrees.net/demo-dev/, directly displayed the contents of the dev.webtrees.net/demo-dev/tree/demo/ page?
Thanks!
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
Last Edit: 3 weeks 2 days ago by xmlf.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 3 weeks 2 days ago #2

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1665
You can not. This is standard http protocol, browsers should obey.

Or to word it differently: what other page would you expect to be shown?
The redirect goes to the tree home of the default tree. There can be multiple trees in webtrees. So it redirects explicitly, which imho is a good thing.
Older versions also redirect, but to index.php?ged=default
In principle that is the same...
stamboom.BertKoor.nl runs on webtrees v1.7.13
Last Edit: 3 weeks 2 days ago by bertkoor.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 3 weeks 2 days ago #3

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
> When I visited dev.webtrees.net/demo-dev/ There will be a 302 redirect to dev.webtrees.net/demo-dev/tree/demo/

Only if you are not logged in.
If you are logged in, you will be redirected to tree/demo/my-page

This design is intentional. It forces users to view their "my-page".
This is where they will see any messages.

It is also used for some other functions.
For example, the link "my page" on the control panel forwards to "/", which then forwards to /tree/xxx/my-page.

> How can I cancel this 302 redirect?

I guess you want "/" to show the same as "/tree/xxxx"

This will create two pages with the same content (bad for SEO).

If you are the only user on your site, and you only have one public tree, then perhaps you can modify the code as follows:

Edit the file \app\Http\RequestHandlers\HomePage.php
Find the redirect to TreePage::class
Replace it with this.

$request = $request->withAttribute('tree', $tree);
$handler = app(\app\Http\RequestHandlers\TreePage::class);
return $handler->handle($request);

I have not tested this. It might not work...
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 3 weeks 2 days ago #4

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
Thank you very much!
I think it would be better to use a separate domain name for each public tree.Because the domain name is definitely associated with the family tree.When I use wang.com, I hope to directly visit wang's family tree.
When I use zhang.com, I hope to directly visit zhang's family tree.

It would be strange to open Zhang's genealogical tree using the URL wang.com/tree/zhang.
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 2 weeks 1 day ago #5

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
TreePage::class cannot be found in \app\Http\RequestHandlers\HomePage.php file
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 2 weeks 1 day ago #6

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
TreePage::class cannot be found in \app\Http\RequestHandlers\HomePage.php file

Replace \app\Http\RequestHandlers\TreePage::class
With \Fisharebest\Webtrees\Http\RequestHandlers\TreePage::class
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 2 weeks 1 day ago #7

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
TreePage::class still does not exist
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 5 days ago #8

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
Please help me.
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

How to Cancel Home Page Redirection? 1 week 5 days ago #9

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
This code is being renamed and reorganised regularly.

It will be "TreePage" soon ;-)


But for now, you need to call HomePageController::treePage($request).

Perhaps like this:

app(HomePageController::class)->treePage($request);
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 5 days ago #10

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
thank you very much.When the domain name is changed, the old domain name 301 is used to redirect to the new domain name. Then the home page will appear twice redirects, which is very unfriendly to search engines. So I want to cancel the homepage redirect.
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 4 days ago #11

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
Replace
return redirect(route('tree-page', ['tree' => $tree->name()]));
With
$request = $request->withAttribute('tree', $tree);
$handler = app(\Fisharebest\Webtrees\Http\Controllers\HomePageController::class)->treePage($request);
return $handler->handle($request);

Error:
Unresolvable dependency resolving [Parameter #0 [ <required> int $id ]] in class Fisharebest\Webtrees\Tree …/vendor/illuminate/container/Container.php:975
#0 …/vendor/illuminate/container/Container.php(913): Illuminate\Container\Container->unresolvablePrimitive(Object(ReflectionParameter))
#1 …/vendor/illuminate/container/Container.php(854): Illuminate\Container\Container->resolvePrimitive(Object(ReflectionParameter))
#2 …/vendor/illuminate/container/Container.php(816): Illuminate\Container\Container->resolveDependencies(Array)
#3 …/vendor/illuminate/container/Container.php(667): Illuminate\Container\Container->build('Fisharebest\\Web...')
#4 …/vendor/illuminate/container/Container.php(615): Illuminate\Container\Container->resolve('Fisharebest\\Web...', Array)
#5 …/vendor/illuminate/container/Container.php(927): Illuminate\Container\Container->make('Fisharebest\\Web...')
#6 …/vendor/illuminate/container/Container.php(855): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#7 …/vendor/illuminate/container/Container.php(816): Illuminate\Container\Container->resolveDependencies(Array)
#8 …/vendor/illuminate/container/Container.php(667): Illuminate\Container\Container->build('Fisharebest\\Web...')
#9 …/vendor/illuminate/container/Container.php(615): Illuminate\Container\Container->resolve('Fisharebest\\Web...', Array)
#10 …/app/Helpers/functions.php(45): Illuminate\Container\Container->make('Fisharebest\\Web...')
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
Last Edit: 1 week 4 days ago by xmlf.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #12

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
$handler = app(\Fisharebest\Webtrees\Http\Controllers\HomePageController::class)->treePage($request);
return $handler->handle($request);

The first line creates a response (not a handler). All you need is

return app(\Fisharebest\Webtrees\Http\Controllers\HomePageController::class)->treePage($request);
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #13

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
The same error message still exists.
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #14

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
The code works.

I tested it on my own site.

I guess your error is somewhere else.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #15

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
What should the complete code be? Let me check and compare.
Thank you!
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #16

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
$request = $request->withAttribute('tree', $tree);
return app(\Fisharebest\Webtrees\Http\Controllers\HomePageController::class)->treePage($request);
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #17

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
Is my code position wrong? ?
Attachments:
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #18

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
> Is my code position wrong? ?

No

> I guess your error is somewhere else.

Your error: Unresolvable dependency resolving [Parameter #0 [ <required> int $id ]]
You did not post enough of the stack-trace to identify this.
The next few lines will tell you where your error occurs.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #19

  • xmlf
  • xmlf's Avatar
  • Offline
  • New
  • Posts: 69
Unresolvable dependency resolving [Parameter #0 [ <required> int $id ]] in class Fisharebest\Webtrees\Tree …/vendor/illuminate/container/Container.php:975
#0 …/vendor/illuminate/container/Container.php(913): Illuminate\Container\Container->unresolvablePrimitive(Object(ReflectionParameter))
#1 …/vendor/illuminate/container/Container.php(854): Illuminate\Container\Container->resolvePrimitive(Object(ReflectionParameter))
#2 …/vendor/illuminate/container/Container.php(816): Illuminate\Container\Container->resolveDependencies(Array)
#3 …/vendor/illuminate/container/Container.php(667): Illuminate\Container\Container->build('Fisharebest\\Web...')
#4 …/vendor/illuminate/container/Container.php(615): Illuminate\Container\Container->resolve('Fisharebest\\Web...', Array)
#5 …/vendor/illuminate/container/Container.php(927): Illuminate\Container\Container->make('Fisharebest\\Web...')
#6 …/vendor/illuminate/container/Container.php(855): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#7 …/vendor/illuminate/container/Container.php(816): Illuminate\Container\Container->resolveDependencies(Array)
#8 …/vendor/illuminate/container/Container.php(667): Illuminate\Container\Container->build('Fisharebest\\Web...')
#9 …/vendor/illuminate/container/Container.php(615): Illuminate\Container\Container->resolve('Fisharebest\\Web...', Array)
#10 …/app/Helpers/functions.php(45): Illuminate\Container\Container->make('Fisharebest\\Web...')
#11 …/app/Module/HtmlBlockModule.php(96): app('Fisharebest\\Web...')
#12 …/resources/views/tree-page-block.phtml(7): Fisharebest\Webtrees\Module\HtmlBlockModule->getBlock(Object(Fisharebest\Webtrees\Tree), 39, 'tree')
#13 …/app/View.php(186): include('/home/wwwroot/j...')
#14 …/app/View.php(282): Fisharebest\Webtrees\View->render()
#15 …/app/Helpers/functions.php(217): Fisharebest\Webtrees\View::make('tree-page-block', Array)
#16 …/resources/views/tree-page.phtml(5): view('tree-page-block', Array)
#17 …/app/View.php(186): include('/home/wwwroot/j...')
#18 …/app/View.php(282): Fisharebest\Webtrees\View->render()
#19 …/app/Helpers/functions.php(217): Fisharebest\Webtrees\View::make('tree-page', Array)
#20 …/app/Http/ViewResponseTrait.php(51): view('tree-page', Array)
#21 …/app/Http/Controllers/HomePageController.php(309): Fisharebest\Webtrees\Http\Controllers\AbstractBaseController->viewResponse('tree-page', Array)
#22 …/app/Http/RequestHandlers/HomePage.php(75): Fisharebest\Webtrees\Http\Controllers\HomePageController->treePage(Object(Nyholm\Psr7\ServerRequest))
#23 …/app/Http/Middleware/WrapHandler.php(83): Fisharebest\Webtrees\Http\RequestHandlers\HomePage->handle(Object(Nyholm\Psr7\ServerRequest))
#24 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#25 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#26 …/app/Http/Middleware/Router.php(122): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest))
#27 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\Router->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#28 …/app/Http/Middleware/BootModules.php(62): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#29 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BootModules->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#30 …/app/Http/Middleware/LoadRoutes.php(76): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#31 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\LoadRoutes->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#32 …/app/Http/Middleware/UseTransaction.php(45): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#33 …/vendor/illuminate/database/Concerns/ManagesTransactions.php(29): Fisharebest\Webtrees\Http\Middleware\UseTransaction::Fisharebest\Webtrees\Http\Middleware\{closure}(Object(Illuminate\Database\MySqlConnection))
#34 …/app/Http/Middleware/UseTransaction.php(46): Illuminate\Database\Connection->transaction(Object(Closure), 3)
#35 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTransaction->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#36 …/app/Http/Middleware/CheckCsrf.php(70): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#37 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckCsrf->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#38 …/app/Http/Middleware/DoHousekeeping.php(83): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#39 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\DoHousekeeping->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#40 …/app/Http/Middleware/UseTheme.php(72): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#41 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseTheme->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#42 …/app/Http/Middleware/CheckForMaintenanceMode.php(51): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#43 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\CheckForMaintenanceMode->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#44 …/app/Http/Middleware/UseLocale.php(53): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#45 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseLocale->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#46 …/app/Http/Middleware/UseSession.php(62): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#47 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseSession->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#48 …/app/Http/Middleware/UseFilesystem.php(61): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#49 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseFilesystem->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#50 …/app/Http/Middleware/UseCache.php(47): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#51 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseCache->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#52 …/app/Http/Middleware/UpdateDatabaseSchema.php(58): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#53 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UpdateDatabaseSchema->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#54 …/app/Http/Middleware/UseDebugbar.php(67): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#55 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDebugbar->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#56 …/app/Http/Middleware/UseDatabase.php(88): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#57 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\UseDatabase->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#58 …/vendor/middlewares/client-ip/src/ClientIp.php(81): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#59 …/app/Http/Middleware/ClientIp.php(47): Middlewares\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#60 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ClientIp->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#61 …/app/Http/Middleware/HandleExceptions.php(76): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#62 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\HandleExceptions->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#63 …/app/Http/Middleware/BaseUrl.php(78): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#64 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\BaseUrl->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#65 …/app/Http/Middleware/ReadConfigIni.php(65): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#66 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\ReadConfigIni->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#67 …/app/Http/Middleware/EmitResponse.php(56): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#68 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\EmitResponse->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#69 …/app/Http/Middleware/PhpEnvironment.php(49): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#70 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\PhpEnvironment->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher))
#71 …/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))
#72 …/index.php(44): Middleland\Dispatcher->dispatch(Object(Nyholm\Psr7\ServerRequest))
#73 {main}
Wang Family Website of Suining County, China
https://www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
The administrator has disabled public write access.

How to Cancel Home Page Redirection? 1 week 3 days ago #20

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11610
The important line is
…/app/Module/HtmlBlockModule.php(96): app('Fisharebest\\Web...')


You have an HTML block in your home page.
The HTML block has a dependency on the Statistics class.
The Statistics class has dependencies that cannot be resolved.
It asks for a "Tree", but cannot find one.


The existing code has a temporary workaround.
It takes the tree from the URL, and adds it as a global variable. (Yuck!).
github.com/fisharebest/webtrees/blob/mas...ware/Router.php#L112
You could try to do the same.

If this does not help, then you must wait for the next release.


BTW - I was working on this last night and this morning.
Expect this code to change in the next few days.
The Statistics class needs to be redesigned to remove this dependency (and other dependencies).
The Date class also depends on this global tree variable.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Powered by Kunena Forum