Skip to content
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

Too few arguments to function YoastSeoForTypo3\YoastSeo\Backend #547

Open
2 tasks done
Batman777 opened this issue Jul 26, 2023 · 7 comments
Open
2 tasks done

Too few arguments to function YoastSeoForTypo3\YoastSeo\Backend #547

Batman777 opened this issue Jul 26, 2023 · 7 comments

Comments

@Batman777
Copy link

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Typo3 10.4.37
Updating from yoast_seo: 8.3.1 to 9.0.0
or
Updating from yoast_seo: 8.3.1 to 9.0.1

As soon as I select a page I get the following error.

Screenshots

Screenshot_1

Hoped 9.0.1 would have solved the issue.
But it seems to be something different.

@RinyVT
Copy link
Collaborator

RinyVT commented Jul 26, 2023

Hi @Batman777,

Are you sure you flushed all the caches, through the Maintenance module or through CLI?
This is a dependency injection issue and flushing the caches with the dropdown flush actions is not enough.

@Batman777
Copy link
Author

Sigh ... again a caching issue.
Thank you very much @RinyVT
This solved the issue!

@RinyVT
Copy link
Collaborator

RinyVT commented Jul 26, 2023

Great! Glad it solved the issue.

@RinyVT RinyVT closed this as completed Jul 26, 2023
@GitCybers
Copy link

I had the same problem. After flushing the caches with the adminmenu the typo3-backend and the frontend don't work anymore and I get this error on the white screen:
Fatal error: Class YoastSeoForTypo3\YoastSeo\DataProviders\OrphanedContentDataProvider contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (YoastSeoForTypo3\YoastSeo\DataProviders\OverviewDataProviderInterface::getData) in /kunden/84737_51427/webseiten/kgsfrankenforst2/typo3conf/ext/yoast_seo/Classes/DataProviders/OrphanedContentDataProvider.php on line 14

@RinyVT RinyVT reopened this Aug 10, 2023
@RinyVT
Copy link
Collaborator

RinyVT commented Aug 10, 2023

Hi @GitCybers,

Are you sure you are on the latest version?
Your error mentions a getData method but this method is nowhere to be found within the Classes/DataProviders directory.

The error also does not make sense because there is no abstract method within OrphanedContentDataProvider.
Which PHP version are you on?

@GitCybers
Copy link

I installed 9.0.1 and got the first error. After flushing in backend ajax arrors in backend. Then I installed 8.3.1 and then I got the php error.

@GitCybers
Copy link

After deleting the entry for the extension in PackageStates.php and deleting the extension the frontend and the backend work again. Then I installed the extension 9.0.1 again and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants