I had to switch from PHP 5.6 to PHP 7, and after the transition, this is the error:

Class 'phpQuery' not found

Code:

$body = $res->getBody(); $document = \phpQuery::newDocumentHTML($body); $price = $document->find($price_tag); $active = $document->find($tag_active); 

This is a parser, I would like to correct this error, otherwise you will have to roll back to 5.6, and this will rewrite one functional.

    1 answer 1

    Probably you have a package with phpQuerry was installed under the old version that stood at that time. Try installing the extension for the new version.

     atp-get install php7.0-xml