I’ve looked in the Mautic forum for information on fixing a problem with my Mautic instance. My v2 API documentation isn’t showing right. I couldn’t find anything there on how to solve the issue.
I’m not sure if there’s an occ command to fix this? I watched a video on YouTube that indicated that the API documentation is supposed to appear there in accordian style presentation, but instead the interface appears to be broken.
Where would I post this problem/find a solution to this problem or even find out about how this OpenAPI documentation route is supposed to work internally (dev_docs)?
In the browser developer console, I am getting 404 errors for the fixed assets. I don’t know where the physical files are located to check the file permissions
Following from Slack (thanks for posting here!) I would check the browser console - it looks like your CSS and whatnot are not being loaded. See if there’s any errors there, which might help track down what’s going on. Also try things like a hard refresh on the browser etc just to check it’s not something wonky there.
Well, that did install the assets, however they are visible under public/bundles/.. instead of bundles/.. which still causes the page to display without loading the assets.
Do we also need to have mod_rewrite for public to / in the .htaccess?
If you’re using OpenLightSpeed (and other admin panels) it’s getting more complex.
This question might become an OLS question now.
I recommend the command line way. It’s not fancy, but at least you’d know how you setup your server and make it match Mautic.
In the standard composer setup, the correct root folder for your vhost is:
docroot
Anything else (OLS specific) might not work properly or needs to be adjusted “the ols way”.
I don’t have a docroot folder in my hierarchy. This install of Mautic has been upgraded one version at a time all the way from version 3. I have been using this instance for many years.
I did a test to see if I could make the DocumentRoot /public, but that didn’t work. The way I documented above was the only way I could get the API documentation screen to work properly after I completed the `bin/console asset:install` command you recommended.
If I should be backing up certain files, directories, and the Mautic 7 database, reinstalling and restoring those files, I would need help knowing what to do, but for now, this was my work around that both; allows the main Mautic 7 instance to load properly, and allows the API ui to load the assets it’s supposed to.