Skip to content

Call to a member function find() on bool #9

@serg1uu

Description

@serg1uu

I'm using this package to parse 2 HTML pages which I suppose are identical in structure.

$firstPageHTML = 'https://controlc.com/bfa5ec9a'
$secondPageHTML = 'https://controlc.com/e8188d3e'

$parser = HtmlDomParser::str_get_html($secondPageHTML);

It seems that when I try to parse the second page HTML, HtmlDomParser's str_get_html method doesn't log anything. Eventually I get the following error:

Call to a member function find() on bool
$tableLength = count($parser->find('div[id="content"] table[class="tabelcalorii"] tr')) - 2;

What could be the issue here? $firstPageHTML works fine, using the latest version of the package

LE: increasing MAX_FILE_SIZE within simple_html_dom.php seems to fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions