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 'WP2Static\Request' not found in Crawler.php #18

Open
wallali opened this issue Aug 9, 2021 · 4 comments
Open

Class 'WP2Static\Request' not found in Crawler.php #18

wallali opened this issue Aug 9, 2021 · 4 comments

Comments

@wallali
Copy link

wallali commented Aug 9, 2021

If I enable this extension and hit Generate Site I get an exception. Tried to debug it and it occurs in Crawler.php,
line 42 : $this->request = new \WP2Static\Request();

'WP2Static\Request' not found

PHP Version 7.4.21

callstack:

WP2StaticAdvancedCrawling\Crawler->__construct (/public_html/wp-content/plugins/wp2static-addon-advanced-crawling/src/Crawler.php:42)
WP2StaticAdvancedCrawling\Crawler::wp2staticCrawl (/public_html/wp-content/plugins/wp2static-addon-advanced-crawling/src/Crawler.php:79)
WP_Hook->apply_filters (/public_html/wp-includes/class-wp-hook.php:303)
WP_Hook->do_action (/public_html/wp-includes/class-wp-hook.php:327)
do_action (/public_html/wp-includes/plugin.php:470)
WP2Static\Controller::wp2staticCrawl (/public_html/wp-content/plugins/wp2static/src/Controller.php:755)
WP2Static\Controller::wp2staticHeadless (/public_html/wp-content/plugins/wp2static/src/Controller.php:636)
WP2Static\Controller::wp2staticRun (/public_html/wp-content/plugins/wp2static/src/Controller.php:745)
WP_Hook->apply_filters (/public_html/wp-includes/class-wp-hook.php:301)
WP_Hook->do_action (/public_html/wp-includes/class-wp-hook.php:327)
do_action (/public_html/wp-includes/plugin.php:470)
{main} (/public_html/wp-admin/admin-ajax.php:187)
@leonstafford
Copy link
Contributor

Hi @wallali - I believe this addon is not up to date with the latest WP2Static repo. @john-shaffer is still using it with a specific version, if he can chime in with which one.

@john-shaffer
Copy link
Contributor

It should work with WP2Static 7.1.6.

@Zyles
Copy link

Zyles commented Nov 28, 2021

Same problem with WP2Static 7.2.0-dev

@nxplace
Copy link

nxplace commented Apr 21, 2023

Same problem

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

5 participants