TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Kohana + Wordpress without "Wordpress for Kohana" plugin (http://www.talkphp.com/general/5208-kohana-wordpress-without-wordpress-kohana-plugin.html)

Orc 01-04-2010 04:05 PM

Kohana + Wordpress without "Wordpress for Kohana" plugin
 
I need to get a Kohana project going but the wordpress part is delaying the project, and I need to know how to successfully implement a wordpress copy onto kohana, as a helper or module, without the use of the "Wordpress for Kohana" plugin.

If I directly add the blog header it gives me this error:
Code:

Fatal error: Call to undefined method stdClass::set_prefix() in wp/wp-settings.php on line 268
And stdClass isn't the actual assigned class when not implementing this in the Controller nor the View file.

:-!

Parvus 01-04-2010 06:39 PM

First question: Why couldn't you use the plugin ?
Second: Did you try to find out what 'wp/wp-settings.php on line 268' says and why it is a undefined method ?

delayedinsanity 01-04-2010 06:59 PM

I'd have to ask the same question - the plugin is made by the Kohana developers, so I'd feel pretty confident in the fact that it's probably the most suitable solution you will find.

You may have reasons we're unaware of though. The correct way to integrate Wordpress within another application is to call wp-load.php, not wp-blog-header.php - start there and see if you're having a similar issue.

Tails 06-28-2010 02:09 PM

See here: http://forum.kohanaframework.org/com...&page=1#Item_0


All times are GMT. The time now is 09:12 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0