-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Nova 4.0 - PHP Fatal error: Class KABBOUCHI\LogsTool\LogsTool contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laravel\Nova\Tool::menu) #43
Comments
Hi, I found in the upgrade documentation these comments, Nova Request |
The error with the menu method can be fixed by adding the following to the /**
* Build the menu that renders the navigation links for the tool.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function menu(Request $request)
{
return MenuSection::make('LogsTool')
->path('/logs')
->icon('server');
} However this doesn't fix the package, more work needs to be done to get it functional again, specfically on the Intertia and JS side of things it looks like |
@Kussie thank you so much! This is a good start, because now I can do a pull request and move past the most critical issue that causes the entire Nova to stop working. My VueJS and Inertia knowledge is not great but I'll follow the manuals and see how far I get. Thanks again, this was the initial hurdle I needed to cross. |
I did not see any response to this problem from the repository owner and concluded that the owner has no plans to support and update the package https://github.com/stepanenko3/nova-logs-tool.git
Pr a welcome |
@stepanenko3 why u don't open a PR? |
@KABBOUCHI I'll open a PR a bit later if you're ready to migrate to 4.0 |
its been 15 days. and still no PR? |
@anditsung, I don’t have time to change Namespaces back now If you have time for this, send me a PR and I will open the corresponding PR to this repository And of course, I’m still testing it in my Dev Server to do PR without bugs |
@KABBOUCHI already create a PR for nova4 from this branch |
@anditsung why didn’t you create a PR with changing Namespaces in my repository? |
the question is why do you have to change namespace from original repository? |
|
author already add help-wanted tag and maybe author haven't got new license for nova4. you can create a PR for the repo not hijacking. to test using original repo all you have to do is add the config to the composer
|
Yes, didn't get my v4 license yet I've released your PR thank you v2.0.0 |
Hi there!
Sorry about the long title, but dying to use the log tool with Nova 4.0 as it will open upgrading many sites and being on top of problems.
The error received is a blank Nova landing page and in the error log file:
I believe the abstract method is here
vendor/laravel/nova/src/Tool.php
:I would like to see if I can implement that abstract method but I'm not sure where! Any tips would help.
The docs are here:
https://nova.laravel.com/docs/4.0/upgrade.html#updating-custom-tool-cards-fields-filters
With luck one wouldn't need to do all the other VueJS stuff. Any clues?
The text was updated successfully, but these errors were encountered: