WordPress.org

Ready to get started?Download WordPress

Forums

Transposh WordPress Translation
Fatal error: Cannot use object of type simple_html_dom_node as array in (3 posts)

  1. D J
    Member
    Posted 1 year ago #

    I get the following error

    Fatal error: Cannot use object of type simple_html_dom_node as array in /mounted-storage/hxx6/sxx0x/scxxxx/pornolatino.net/wp-content/plugins/transposh-translation-filter-for-wordpress/core/shd/simple_html_dom.php on line 616

    616	    // parse html content
    617	    protected function parse() {
    618	        if (($s = $this->copy_until_char('<'))==='')
    619	            return $this->read_tag();
    620
    621	        // text
    622	        $node = new simple_html_dom_node($this);
    623	        ++$this->cursor;
    624	        $node->_[HDOM_INFO_TEXT] = $s;
    625	        $this->link_nodes($node, false);
    626	        return true;
    627	    }

    I have a plugin that grabs videos from other sites i.e. youtube, now transposh seems to be conflicting with it. When the video plugin goes and try to grab videos the fatal error ocurs.

    The plugin is called phpmyvideoblog.

    http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/

  2. D J
    Member
    Posted 1 year ago #

    // prepare HTML data and init everything
    protected function prepare($str, $lowercase=true) {
    $this->clear();
    $this->doc = $str;
    $this->pos = 0;
    $this->cursor = 1;
    $this->noise = array();
    $this->nodes = array();
    $this->lowercase = $lowercase;
    $this->root = new simple_html_dom_node($this);
    $this->root->tag = 'root';
    $this->root->_[HDOM_INFO_BEGIN] = -1;
    $this->root->nodetype = HDOM_TYPE_ROOT;
    $this->parent = $this->root;
    // set the length of content
    $this->size = strlen($str);
    if ($this->size>0) $this->char = $this->doc[0];
    }

  3. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    It looks like you are referring a comment line, and this is an external component,

    Please try disabling other plugins, and working with the default theme in order to find any conflicts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic