wolferhua / phpquery

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

class phpQueryEvent not found #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if ($event) {
    phpQueryEvent::trigger($this->getDocumentID(), $event->type, array($event)
);
}

This condition, that starts at line 2359 of phpQueryObject.php, causes the
error. Just commented it out and now it seems to work fine. What is that for?

What version of the product are you using? On what operating system?
r202

Original issue reported on code.google.com by jpbco...@yahoo.com on 21 Oct 2008 at 3:25

GoogleCodeExporter commented 9 years ago
Just having the same error.
It seems to be that's because the class "phpQueryEvent" don't exist.
The right class should be "phpQueryEvents".

But replacing it I get this :
Fatal error:  Cannot use object of type DOMDocumentWrapper as array in
/x/phpQueryEvents.php on line 148

The script where the error occurs :
<php>
$form_element->find('[name="parent_nom"]')->val('Nom');
</php>

Original comment by nicolas....@gmail.com on 21 Oct 2008 at 8:12

GoogleCodeExporter commented 9 years ago
Fixed in r246.

Original comment by tobiasz....@gmail.com on 21 Oct 2008 at 10:04

GoogleCodeExporter commented 9 years ago
So I post a new defect for the second issue ^^.

Original comment by nicolas....@gmail.com on 21 Oct 2008 at 10:16