• Resolved gessel

    (@gessel)


    I’m getting

    PHP Fatal error: Class ‘DOMDocument’ not found in /usr/local/www/data-dist/brt/gessel/wp-content/plugins/facebook-auto-publish/xyz-functions.php on line 144

    if (!function_exists("xyz_wp_fbap_attachment_metas")) {^M
            function xyz_wp_fbap_attachment_metas($attachment,$url)^M
            {^M
                    $name='';$description_li='';$content_img='';$utf="UTF-8";^M
                    $aprv_me_data=wp_remote_get($url,array('sslverify'=> (get_option('xyz_fbap_peer_verification')=='1') ? true : false));^M
                    if( is_array($aprv_me_data) ) {^M
                            $aprv_me_data = $aprv_me_data['body']; // use the content^M
                    }^M
                    else {^M
                            $aprv_me_data='';^M
                    }^M
                    ^M
                    $og_datas = new DOMDocument();^M
                    @$og_datas->loadHTML('<?xml encoding="UTF-8">'.$aprv_me_data);^M
                    $xpath = new DOMXPath($og_datas);^M
    /*              if(isset($attachment['name']))^M
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello gessel,
    You need to install the DOM extension.
    If any doubts ,please let us know.
    Thank you.

    Thread Starter gessel

    (@gessel)

    Thanks, that was the trick. On FreeBSD:
    # cd /usr/ports/lang/php56-extensions/ && make install clean
    Does the trick. Use # make config to choose which modules to install.

    • This reply was modified 7 years, 2 months ago by gessel. Reason: marking as resolved
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Class ‘DOMDocument’ not found, xyz-functions.php line 144’ is closed to new replies.