Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Xthreads another error
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #5
RE: Xthreads another error
I've had a look at this for a long time.

The line in question is

PHP Code:
$posthandler->verify_subject();

The most striking part is the mention of "stdClass".  I can't see how this would ever happen in a stock install.  If $posthandler wasn't set, then it should give a "call to a member function on a non-object" type error.
stdClass is a special PHP class, somewhat like the "default" class for objects without type.  I strongly doubt anyone would deliberately create an object as stdClass, rather, perhaps it is the result of typecasting somewhere - which itself is a bit of a weird thing to do...

Ignoring the above, the actual code has some conditions around it:

PHP Code:
1
2
3
4
5
6
7
	if($mybb->input['previewpost'] || $editpost) {
...
		if($editpost || empty($errors)) {
...
		} else {
...
					$posthandler->verify_subject();

Essentially, means that this is only accessible if previewing a post, and creating a new thread.
So it should be impossible to invoke that when trying to submit a new thread (unless you've somehow managed to set previewpost).

I can only think of this being caused by a (seemingly odd) plugin.


My Blog
(This post was last modified: 12-09-2010 04:24 PM by ZiNgA BuRgA.)
12-09-2010 04:24 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Xthreads another error - 1master1 - 11-30-2010, 07:53 AM
RE: Xthreads another error - ZiNgA BuRgA - 11-30-2010, 08:50 AM
RE: Xthreads another error - 1master1 - 12-01-2010, 03:18 AM
RE: Xthreads another error - RateU - 12-01-2010, 06:36 AM
RE: Xthreads another error - ZiNgA BuRgA - 12-09-2010 04:24 PM

 Standard Tools
Forum Jump: