PEAK XOOPS - Fatall warning =( in englishin japanese

Fatall warning =(

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/8/27 17:07
tuxsoul  ʼ   Posts: 11
Hi update my website for testing to xoops 2.0.15 but after install xhld i get this messages:

Quote:
Fatal error: Call to a member function on a non-object in /var/www/xoops/class/xoopsform/form.php on line 193

I have the 3.05 xhld version in xoops 2.0.15
Some bug ?

greetings
sorry my english is poor
Votes:8 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/8/28 6:32
GIJOE  Ǥ   Posts: 4110
It looks some kind of incompatibilities.
I have to check 2.0.15
Votes:8 Average:10.00
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2006/8/30 6:28
GIJOE  Ǥ   Posts: 4110
It looks an original bug of xoopsform.

In class/xoopsform/form.php

$this->_elements can be a string instead of object.

refer method addElements() and XoopsThemeForm::insertBreak().

Thus, it must be ...
	function &getElements($recurse = false){
		if (!$recurse) {
			return $this->_elements;
		} else {
			$ret = array();
			$count = count($this->_elements);
			for ($i = 0; $i < $count; $i++) {
				if ( ! is_object( $this->_elements[$i] ) ) {
					$ret[] = $this->_elements[$i];
				} else if (!$this->_elements[$i]->isContainer()) {
					$ret[] =& $this->_elements[$i];
				} else {
					$elements =& $this->_elements[$i]->getElements(true);
					$count2 = count($elements);
					for ($j = 0; $j < $count2; $j++) {
						$ret[] =& $elements[$j];
					}
					unset($elements);
				}
			}
			return $ret;
		}
	}

This report should be sent to skalpa.
(modified from is_string() to ! is_object()
Votes:38 Average:8.42

question Re: Fatall warning =(

msg# 1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2006/8/31 15:00
tuxsoul  ʼ   Posts: 11
, ok, thank's for all

sorry my english is bad
Votes:11 Average:10.00

question Re: Fatall warning =(

msg# 1.1.1.2
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/1 16:43
tempel33  ʼ   Posts: 2
Many thanks, GIJOE, this bug was also preventing the use of regcodes&formulize on Xoops 2.0.15. All looks fine now.
Votes:0 Average:0.00

question Re: Fatall warning =(

msg# 1.1.1.2.1
Previous post - Next post | Parent - No child | Posted on 2006/9/1 18:55
GIJOE  Ǥ   Posts: 4110
It makes me happy
Votes:0 Average:0.00

question Re: Fatall warning =(

msg# 1.1.1.3
Previous post - Next post | Parent - Children.1 | Posted on 2006/9/2 1:27
DuGris  ʼ   Posts: 4
another solution which seems more reliable and which will take all the possibilities

function &getElements($recurse = false){
	if (!$recurse) {
		return $this->_elements;
	} else {
		$ret = array();
		$count = count($this->_elements);
		for ($i = 0; $i < $count; $i++) {
			if ( is_object( $this->_elements[$i] ) ) {
				if (!$this->_elements[$i]->isContainer()) {
					$ret[] =& $this->_elements[$i];
				} else {
					$elements =& $this->_elements[$i]->getElements(true);
					$count2 = count($elements);
					for ($j = 0; $j < $count2; $j++) {
						$ret[] =& $elements[$j];
					}
					unset($elements);
				}
			}
		}
		return $ret;
	}
}
Votes:2 Average:0.00

question Re: Fatall warning =(

msg# 1.1.1.3.1
Previous post - Next post | Parent - No child | Posted on 2006/9/2 5:28
GIJOE  Ǥ   Posts: 4110
Thank you for suggestion.
I've fixed.
Votes:1 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!