After QueryList collects part of it, it will report an error phpQuery::newDocumentFile ($file) first

it seems that the document is not loaded.

how do you deal with such a problem?

[Exception]
Document with ID "8291f24461d0e759b6440677585a7ce7" isn"t loaded. Use phpQuery::newDocument ($html) or phpQuery::newDocumentFile ($file) first.

execute the script again

May.06,2022

this kind of error is generally caused by a large number of QueryList object calls in the script, and the memory footprint of resources is not released in time, resulting in memory overflow. The solution is to reuse the same QueryList object as much as possible and release the memory footprint of resources in time:

  • error demonstration
  

Oh, this querylist, you will find that even if you have given $ql- > destruct () everywhere, you will still report this error. No solution

Menu