Building the Franken-site: Cautious Success
Well, I figured out the problem I was experiencing in Part I - I had misconfigured the blocks for the region I was attempting to use, so that’s fixed. Using a chdir, my code now looked like this:
$_DIR = 'more';
chdir ($_DIR);
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
return theme('blocks', $region);
And it worked! At least, from a plain php page in my Wordpress directory it did. As soon as I built it into a quick-and-dirty Drupal plugin for Wordpress, it went all to heck.
Fatal error: Cannot redeclare timer_start() (previously
declared in /server/path/to/redmonk.net/wp-settings.php:57)
in /server/path/to/redmonk.net/more/includes/bootstrap.inc
on line 37
D’oh! Drupal and Wordpress were defining the same functions! To be expected, I suppose. I commented out the first few I found but kept running into more. Time to look for another solution.
» login to post comments
