Failing to integrate WP with CakePHP
I’m trying to integrate a WP blog inside a CakePHP website. So far I got both working together but now I want to share the user administration.
I want to let WP do the heavy lifting, so basically I want to adapt Cake to WP. I’m following this to be able to call some WP functions from Cake:
But it fails with this error:
Fatal error: Call to undefined method stdClass::set_prefix() in /Applications/XAMPP/xamppfiles/htdocs/tsd/app/webroot/blog/wp-settings.php on line 268
I’ve been doing some tests and this doesn’t happen if I try the same code from the tuto on a simple php page.
I’ve gone trough wp-settings and wp-db.php (line 268 is calling a function in $wpdb) and there isn’t anything obvious that might be causing this problem. Can’t find anything meaningful in Apache’s log either.
A search on Google for CakePHP integration didn’t bring anything related to this.
PHP version is 5.2.9 under Apache 2.2 on OSX.
Any help much appreciated.
- The topic ‘Failing to integrate WP with CakePHP’ is closed to new replies.