serp-spider / core

:spider: The PHP SERP Spider - A search engine scraper
https://serp-spider.github.io/
Other
90 stars 44 forks source link

Fatal error: Declaration of DOMElement::getAttribute(string $qualifiedName) must be compatible with Serps\Core\Dom\DomNodeInterface::getAttribute($name) #42

Open jumaris88 opened 3 years ago

jumaris88 commented 3 years ago

I got error Fatal error: Declaration of DOMElement::getAttribute(string $qualifiedName) must be compatible with Serps\Core\Dom\DomNodeInterface::getAttribute($name) in .../.../vendor/serps/core/src/Core/Dom/DomElement.php on line 0

subet commented 2 years ago

I have the same error message. Is there any solution?

poznet commented 1 year ago

same here

UnknownX74m commented 11 months ago

The error disappears if you start the script with php 7.4.

But then I have another problem - maybe someone can help: PHP Fatal error: Uncaught Serps\SearchEngine\Google\Exception\InvalidDOMException: Unable to check javascript status. Google DOM has possibly changed and an update may be required. in /www/htdocs/xxx/vendor/serps/search-engine-google/src/Page/GoogleSerp.php:129 Stack trace:

0 /www/htdocs/xxx/vendor/serps/search-engine-google/src/Page/GoogleSerp.php(40): Serps\SearchEngine\Google\Page\GoogleSerp->javascriptIsEvaluated()

1 /www/htdocs/xxx/_webseiten/avigio.de.crm/serp.php(24): Serps\SearchEngine\Google\Page\GoogleSerp->getNaturalResults()

2 {main}

thrown in /www/htdocs/xxx/vendor/serps/search-engine-google/src/Page/GoogleSerp.php on line 129