Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Fatal error: Cannot use object of type xthreads_db_binary_value as array in...
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Fatal error: Cannot use object of type xthreads_db_binary_value as array in...
Thanks for finding that.

Try editing inc/plugins/xthreads.php, find:

PHP Code:
		$md5hash = $xta['md5hash'];
		if(isset($md5hash{15}) && !isset($md5hash{16})) {
			$md5hash = bin2hex($md5hash);
		} elseif(!isset($md5hash{31}) || isset($md5hash{32}))
			$md5hash = '';

replace with

PHP Code:
1
2
3
4
5
6
7
		$md5hash = $xta['md5hash'];
		if(is_object($md5hash)) // assume xthreads_db_binary_value
			$md5hash = bin2hex($md5hash->__toString());
		elseif(isset($md5hash{15}) && !isset($md5hash{16}))
			$md5hash = bin2hex($md5hash);
		elseif(!isset($md5hash{31}) || isset($md5hash{32}))
			$md5hash = '';


See if that fixes it.


My Blog
08-22-2014 09:45 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Fatal error: Cannot use object of type xthreads_db_binary_value as array in... - ZiNgA BuRgA - 08-22-2014 09:45 AM

 Standard Tools
Forum Jump: