garretus / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

Call to a member function isSameNode() on a non-object in phpQuery.php #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. following snippet of code 
phpQuery::newDocument('<html><body></body></html>')
  ->load('http://localhost/index.html');
2.
3.

What is the expected output? What do you see instead?
I expected pq to load the html at the url provided as input..I got this 
error message instead. 

Fatal error: Call to a member function isSameNode() on a non-object in 
C:\phpQuery\phpQuery\phpQuery.php on line 187

What version of the product are you using? On what operating system?
phpQuery-0.9.5.304.zip  phpQuery 0.9.5 Beta4 (r304)   Featured  Nov 19  

Please provide any additional information below - On a separate note, I 
see that parameter _loadSelector is not defined in phpQueryObject.php

Original issue reported on code.google.com by birender...@gmail.com on 18 Dec 2008 at 3:55

GoogleCodeExporter commented 8 years ago
There's a fix in r325 which may solve this issue. Can you test it ?

Tested with following snippet:
phpQuery::newDocument('<html><body></body></html>')->find('body')->load($url);

Original comment by tobiasz....@gmail.com on 19 Dec 2008 at 12:03

GoogleCodeExporter commented 8 years ago
yep, that did it. Thank you!! This issue can be closed.

Original comment by birender...@gmail.com on 19 Dec 2008 at 7:06

GoogleCodeExporter commented 8 years ago

Original comment by tobiasz....@gmail.com on 20 Dec 2008 at 10:07