close Warning: Can't synchronize with repository "(default)" (/home/svn/repos/bb-plugins does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 19 years ago

#12 closed defect (fixed)

bbSync fails to globalize variables needed by bbPress

Reported by: mdawaffe Owned by: fel64
Priority: normal Component: bbsync
Keywords: Cc:

Description

In felsyncpost(), bbSync does:

require_once( $opshuns['bbpath'] );

That require is in the scope of the above function, and so some bbPress globals don't actually get globalized. This results in a fatal error when publishing posts.

It's possible bbPress can address some of this in core, but bbSync can fix itself for now by adding some variables to the global statement in felsyncpost().

function felsyncpost( $post_id ) {
   global $bbdb, $wpdb, $current_user, $bb_cache, $bb_roles;
   // ...
}

Change History (1)

comment:1 by fel64, 19 years ago

Resolution: → fixed
Status: new → closed

Cheers. Wouldn't have caught that without your help.

Note: See TracTickets for help on using tickets.