I am attempting to "Import" the Wordpress core into an own script to make use of the functionality for example wordpress_query etc. I have produced an script inside a subdirectory (own framework) and wish to extend it by wordpress, but each time the script throws a mistake:

Fatal error: Call to some member function add_rewrite_tag() on the non-object in .../wordpress/wordpress-includes/taxonomy.php online 333

for example (after i take away the add_action( 'init', 'create_initial_taxonomies', )):

Fatal error: Call to some member function add_rewrite_tag() on the non-object in .../wordpress/wordpress-includes/publish.php online 1006

The non-object may be the $wordpress_rewrite-object. I have echo'ed something and determined that first $wordpress_rewrite applies and also at the following call not. I have transformed nothing in the Wordpress core files.

I attempt to incorporate the core by calling:

    require_once(BASE_PATH . 'wp-load.php');

Has anybody ideas for me personally?

thanks