#109 find() error in second element of a loop

open
nobody
None
5
2012-10-10
2012-07-13
Anonymous
No

I have a simple array with urls and a foreach loop.
Every round call a function with a new Dom and the end of the function I use clear() and unset().
In the first round run succesfully, works fine.
But in the second round the first find() die with the following error:
Fatal error: Call to a member function find() on a non-object in simple_html_dom.php on line 880

Any idea?

Discussion


  • Anonymous
    2012-07-13

    script file

     
    Last edit: Anonymous 2013-11-21
    Attachments
  • nickl-
    nickl-
    2012-09-10

    This is a duplicate of Nigel's problem, https://sourceforge.net/tracker/?func=detail&aid=3542055&group_id=218559&atid=1044037

    Please see my response there and continue with the discussions there.

    Also provide more details, is it always the same URLS what versions, OS, etc etc. The more information you provide the easier it is to help =)