-
Notifications
You must be signed in to change notification settings - Fork 265
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
wp-content/plugins folder is not generated #730
Comments
This problem goes away for me with https://github.com/leonstafford/wp2static-addon-advanced-crawling enabled. |
Thanks John. I've downloaded the master code from the repo, and I've compiled with composer. Then I've installed in Wordpress with plugin menu > select local file. Now, I can see the pluging "WP2Static Add-on: Advanced Crawling Options" in the Wordpress plugin list, but not in the WP2Static > Addons, neither any options in other menus. Do I have to do something else? Because I've re-generated the static web and the folder "wp-content/plugins" still does not exist. Thanks! Regards. |
You definitely need to see it in the Addon list, and once you see it you'll need to Enable it. The code to add it to the list is very straightforward and runs on every page load, so it sounds like something fundamental is broken. Do you see any messages in your web server's error log? I've also attached a known-good build that may work for you: Maybe we can force the addon registration to run during plugin activation and error out if it somehow fails, so at least the problem will be immediately obvious. |
Thanks for your reply John. I use WP Multisite and I've discovered that the addon only installs it in the site base, but not in other sites. I've solved easily: in database, I insert the same register from table But this not solve the problem. After this I've generated the static site and the problem persists. Here my WP log:
Here we can see that the addons search the content in REPLICATED PATH: If you need more information, I am at your service. Thanks! Regards. |
Hi @leonstafford, I have some similar problem with some of my multisite environments. So far I have tracked down the error to this line of code: https://github.com/leonstafford/wp2static/blob/develop/src/DetectPluginAssets.php#L29 The option So @aramcap might have activated the cookie-notice plugin network-wide and then the DetectPluginAssets class will not collect the plugin's assets because the Best regards |
Many thanks, @stefanullinger, that sounds very helpful! Could you please confirm if you're using subdomain multisite or subdirectory? I'm relying on my Lokl project for most of my testing at the moment, which doesn't support multisite today, but may be able to quickly add it in either/both forms. That would be good for me to get more familiar with multisite stuff, else, I have to spin up a VM/VPS. I've started moving all detection stuff into https://github.com/leonstafford/WordPressURLDetector, so will get this multisite detection stuff into that library and start importing that into WP2Static soon. There's still a bit of work to do on that, though. If it's taking too long, I may be able to do the quick |
Hi @leonstafford, I've tried both multisite options now – using a subdomain multisite, and using a subdirectory multisite. Either way, WordPress will store network active plugins in the I will create a PR on your WordPressURLDetector repository now. Thanks for extracting all of this into a separate library by the way! Would be cool, if you could provide an update of WP2Static soon, as I have some multisite project running in production, and copying missing files manually slows down the deployment / maintenance of this project a bit. Best regards |
Hi. WP2Static generate all required assets except the folder "plugins".
This is the failed resource request:
This is my VM-test info:
Thanks!
The text was updated successfully, but these errors were encountered: