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

Fatal error: Call to a member function getElementsByTagName() #96

Closed
xblabs opened this issue Jun 22, 2015 · 2 comments
Closed

Fatal error: Call to a member function getElementsByTagName() #96

xblabs opened this issue Jun 22, 2015 · 2 comments
Assignees
Labels

Comments

@xblabs
Copy link

xblabs commented Jun 22, 2015

strict bool check fails in

in Native.php

protected function _document( $html ) {
...
if ( $Document === false ) {

DomDocument::loadHtml()'s doc states
@return bool true on success or false on failure. If called statically, returns a
* DOMDocument and issues E_STRICT

but for some cases it returns null. ( PHP 5.4.41 Linux Debian )

FIX:
if ( $Document === false || $Document === null ) {

or

if( $Document == null )
@felixgirault felixgirault self-assigned this Jun 22, 2015
@felixgirault
Copy link
Member

This should be OK now, I tagged a version 2.5.2 with the fix.
Thank you!

@xblabs
Copy link
Author

xblabs commented Jun 22, 2015

Thanks Felix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants