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

Errors when trying to access revisions in channels that have Preparse field(s) Craft 5.6.4 #103

Open
bseigel opened this issue Feb 21, 2025 · 0 comments

Comments

@bseigel
Copy link

bseigel commented Feb 21, 2025

I was seeing errors when trying to access revisions. Craft Support said this error is coming from Preparse.

InvalidArgumentException
The current node list is empty.

  1. in /home/domains/cenic.org/craft/vendor/symfony/dom-crawler/Crawler.phpat line 602
    593594595596597598599600601602603604605606607608609610611 * @throws \InvalidArgumentException When current node is empty
    */
    public function html(?string $default = null): string
    {
    if (!$this->nodes) {
    if (null !== $default) {
    return $default;
    }

         throw new \InvalidArgumentException('The current node list is empty.');
     }
    
     $node = $this->getNode(0);
     $owner = $node->ownerDocument;
    
     if ($this->html5Parser && '<!DOCTYPE html>' === $owner->saveXML($owner->childNodes[0])) {
         $owner = $this->html5Parser;
     }
    

Image

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

1 participant