[bbDev] Re: Include bb from WP

fel64 at loinhead.net fel64 at loinhead.net
Mon Jun 4 22:48:17 GMT 2007


If needed, yes. But the problem always occurred in the normal startup of
bbPress, not afterwards. It would never get further than the line
> require_once('path/to/bb-load.php');
in my code, always terminating with the error 'call on a member function
...'. Unless I globalised $bbdb in bb-settings.php or config.php.
Cheers,
Felix

> On Jun 4, 2007, at 10:17 AM, fel64 at loinhead.net wrote:
>> An issue of scope? Declaring global $bbdb before db.php is loaded
>> instead
>> also makes everything run smoothly. However I don't know why
>> loading WP
>> first should affect the scope or $bbdb anyway. Does anyone know?
>>
>> Anyway, solution: putting global $bbdb; in bb's config.php file.
>
> Are you globalizing $bbdb in the function you load bbPress from?
>
> Michael
>
> _______________________________________________
> bbDev mailing list
> bbDev at lists.bbpress.org
> http://lists.bbpress.org/mailman/listinfo/bbdev



More information about the bbDev mailing list