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

Class 'WP2StaticAdvancedCrawling\Controller' not found in wp-content/plugins/wp2static-addon-advanced-crawling-master/wp2static-addon-advanced-crawling.php:27 #19

Open
twardoch opened this issue Aug 23, 2021 · 4 comments

Comments

@twardoch
Copy link

twardoch commented Aug 23, 2021

With wp2static 7.1.6, when activating this addon, I get:

Fatal error: Uncaught Error: Class 'WP2StaticAdvancedCrawling\Controller' not found in wp-content/plugins/wp2static-addon-advanced-crawling-master/wp2static-addon-advanced-crawling.php:27 Stack trace: #0 wp-content/plugins/wp2static-addon-advanced-crawling-master/wp2static-addon-advanced-crawling.php(41): run_wp2static_addon_advanced_crawling() #1 wp-admin/includes/plugin.php(2286): include_once('') #2 wp-admin/plugins.php(191): plugin_sandbox_scrape('wp2static-addon...') #3 {main} thrown in wp-content/plugins/wp2static-addon-advanced-crawling-master/wp2static-addon-advanced-crawling.php on line 27

@leonstafford
Copy link
Contributor

Hi @twardoch, these GitHub repos require running composer install to use.

For easily installable zips, you can grab from https://wp2static.com/thanks-for-supporting

@twardoch
Copy link
Author

Yep, I realized they require compiling just short time ago :) I think I got "advanced crawling" working. Is the "advanced discovery" add-on abandoned? I’d love to be also able to specify some additional URLs to crawl and turn into static pages.

@twardoch
Copy link
Author

BTW, in the install.sh, it’d be safer to wrap all paths in quotes. I had a space in the path and the install failed. Sure, developers don’t use spaces, but... :)

@leonstafford
Copy link
Contributor

@twardoch the build zip script? Yep, agree! I usually add shellcheck test to my projects, haven't added that into this, it seems, else I think it would warn about unquoted paths. I can add it to the GitHub Actions in this repo.

I bleieve there's crawling within this addon, but this is mostly @john-shaffer's code and I'm not up to speed with it yet.

The older style WP2Static has crawling built in, you can grab latest source from https://github.com/leonstafford/static-html-output (recently patched some PHP8 errors)

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

2 participants