Error with DocumentationProvider in my Theme

Hello everyone,

I have a problem with my theme. I took the “Atomic” theme and built my own theme from it. That was a long time ago, so I can’t remember the details right now.

Now that I have updated ConcreteCMS to version 9.2.6 (PHP: 8.2), I have a problem when I go to “Pages & Themes” in the settings. Then I get the error message:

Error
Class 
"Concrete\Core\Page\Theme\Documentation\MyThemeDocumentationProvider" 
not found

The call is in the file /application/themes/mytheme/page_theme.php in the function

public function getDocumentationProvider(): ?DocumentationProviderInterface {
        return new MyThemeDocumentationProvider($this);
}

Can this be solved without much programming? Or does it make more sense to throw everything away and redo it?

Does anyone have any tips for me?
Trickler

What happens if you just comment out that function completely?

1 Like

Ha, that works! :slight_smile: But is this a good solution?

Yes, it’s unlikely you need to have that getDocumentationProvider function implemented.

1 Like

I think atomic comes with a load of documentation and you can install is when you do a fresh install of concrete CMS.

I think this function relates to installing that documentation.

1 Like